AWS organizations: Document scan_result_condition vulnerability criteria for EC2 image policies
Summary
Adds a new scan_result_condition filter block (maximum_severity_label, max_days_since_last_finding_scan, max_days_since_*_fix_available) to the EC2 image policy syntax, clarifies criterion matching semantics, and adds a criteria_6 example restricting allowed image providers to amazon.
Security assessment
The change documents a policy control that gates EC2 instance launches on Amazon Inspector vulnerability scan results (acceptable severity label and time limits for available fixes), which is preventive security configuration documentation. It does not reference a specific CVE or incident, so severity is medium.
Evidence
+ * `"scan_result_condition"` (optional): A set of vulnerability conditions, based on Amazon Inspector scan results, that an image must satisfy. An image passes only if it satisfies every condition that you specify in the block.
Diff
diff --git a/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.md b/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.md index 0a9dafb..de987d5 100644 --- a//organizations/latest/userguide/orgs_manage_policies_ec2_syntax.md +++ b//organizations/latest/userguide/orgs_manage_policies_ec2_syntax.md @@ -298,0 +299,21 @@ The following are the available fields for this attribute: + }, + "criteria_6": { + "allowed_image_providers": { + "@@assign": [ + "amazon" + ] + }, + "scan_result_condition": { + "maximum_severity_label": { + "@@assign": "high" + }, + "max_days_since_last_finding_scan": { + "@@assign": 30 + }, + "max_days_since_critical_fix_available": { + "@@assign": 0 + }, + "max_days_since_high_fix_available": { + "@@assign": 7 + } + } @@ -313 +334 @@ The following are the available fields for this attribute: - * `"image_criteria"` (optional): A list of criteria. Supports up to 10 criteria with the name from criteria_1 to criteria_10. Each criterion can contain one or more of the following filters: + * `"image_criteria"` (optional): A list of criteria. Supports up to 10 criteria with the name from criteria_1 to criteria_10. All filters within a single criterion must match for an image to satisfy that criterion. An image is allowed if it satisfies any one criterion. Each criterion can contain one or more of the following filters: @@ -340,0 +362,18 @@ Fields within each filter: + * `"scan_result_condition"` (optional): A set of vulnerability conditions, based on Amazon Inspector scan results, that an image must satisfy. An image passes only if it satisfies every condition that you specify in the block. + +Fields within the block: + + * `"maximum_severity_label"` (optional): The highest Amazon Inspector finding severity that is acceptable on the image. Valid values: `informational`, `low`, `medium`, `high`, and `critical`. + + * `"max_days_since_last_finding_scan"` (optional): The maximum number of days that have elapsed since the image was last scanned for vulnerabilities. Valid range: 0–2147483647. + + * `"max_days_since_informational_fix_available"` (optional): The maximum number of days since Amazon Inspector reported a fix as available for an informational-severity finding on the image. Valid range: 0–2147483647. + + * `"max_days_since_low_fix_available"` (optional): The maximum number of days since Amazon Inspector reported a fix as available for a low-severity finding on the image. Valid range: 0–2147483647. + + * `"max_days_since_medium_fix_available"` (optional): The maximum number of days since Amazon Inspector reported a fix as available for a medium-severity finding on the image. Valid range: 0–2147483647. + + * `"max_days_since_high_fix_available"` (optional): The maximum number of days since Amazon Inspector reported a fix as available for a high-severity finding on the image. Valid range: 0–2147483647. + + * `"max_days_since_critical_fix_available"` (optional): The maximum number of days since Amazon Inspector reported a fix as available for a critical-severity finding on the image. Valid range: 0–2147483647. +