Published
How to Validate EC2 Vulnerability Remediation Evidence with Inspector and Patch Manager
Correlate Amazon Inspector findings, Systems Manager patch runs, scan coverage, and package evidence to verify EC2 vulnerability closure across AWS accounts.
A vulnerability can disappear from a dashboard without proof that the affected EC2 instance was patched. Amazon Inspector closes findings after remediation, but it also closes findings when a resource is deleted, terminated, or no longer eligible for scanning. Systems Manager Patch Manager can report a node as compliant while evaluating only the updates approved by its assigned patch baseline. Treating either status as a complete closure record loses the distinction between a repaired system, an unscanned system, and an asset that no longer exists.
This guide defines a reproducible evidence workflow for EC2 package vulnerabilities: capture the Inspector finding, identify the account and Region, collect Systems Manager patch execution and compliance state, verify later Inspector scan coverage, reconcile affected packages, and retain a reviewer decision. It is a proposed engineering implementation, not an AWS, NIST, or FedRAMP-mandated architecture.
Define the closure claim and its evidence boundary
The question for each finding is whether the vulnerable condition stopped existing on the same in-scope resource, and which independently checkable records support that conclusion. A remediation ticket marked Done answers a different question: a workflow task was completed. A successful Patch Manager command shows that an operation ran, not necessarily that the specific Inspector finding is resolved. An Inspector CLOSED status is useful but ambiguous without resource lifecycle and scan evidence.
Use a composite identity: AWS account ID, Region, resource ID, Inspector finding ARN, vulnerability ID, and affected package name/version where available. The finding ARN anchors the source record; the other fields allow cross-system joins and repeated observations. When an instance is replaced, preserve both original and replacement IDs and the deployment/change reference. Never silently reuse the old instance’s patch proof for the new one.
Inventory AWS accounts, Regions, and scan coverage
Start with an authoritative inventory of in-scope production AWS accounts, enabled Regions, and EC2 instances. Collect Inspector findings and Inspector coverage at the appropriate account/Region scope, then gather Systems Manager data from the corresponding account and Region. An Inspector delegated administrator may provide organization visibility, but your workflow still needs to demonstrate that every intended account and Region is represented and that each relevant instance is eligible for scanning.
- Record an export manifest containing run ID, UTC start/end times, caller identity, partition, account ID, Region, API version, filters, pagination completion, and object checksum.
- Call Inspector ListCoverage for the EC2 resource population. Preserve resource ID, lastScannedAt, scan mode and scan status where returned; compare with the independently declared EC2 inventory.
- Call Inspector ListFindings for the relevant states and resource IDs. Traverse each nextToken page and save unmodified results before aggregating counts.
- For SSM-managed instances, use DescribeInstancePatchStates. Preserve operation timestamps and operation type, baseline ID, snapshot ID, and counts of missing, failed, and pending-reboot patches.
- Assign separate accountable owners for scan enrollment, patch operations, evidence collectors, and review decisions. An owner or coverage gap must remain visible as a missing prerequisite.
Capture finding history before it expires
Inspector retains active findings until remediation, subject to service lifecycle behavior. AWS documents that findings attached to deleted, terminated, or ineligible resources are removed after three days; findings closed for other reasons are removed after thirty days. A remediated finding may reopen within seven days if the condition returns. Consequently, a console export generated months after a change cannot be treated as the original closure evidence.
Persist raw finding observations on a recurring cadence, with a versioned record of each state change. Collection every few hours is an engineering design choice, not a guaranteed Inspector refresh interval. A durable ledger should keep first-seen and last-seen timestamps, original vulnerability and package details, original and normalized statuses, source object checksum, and collector run ID. When an API request fails, retain the failure and mark the affected scope incomplete rather than representing absent findings as zero risk.
When a CLOSED observation appears, link it to the last ACTIVE snapshot and the relevant post-change inventory. A finding last seen ACTIVE and then simply missing from an incomplete export is not verified as patched. Similarly, a SUPPRESSED finding is not a successful remediation; it needs a separate exception review and expiration decision.
Interpret Systems Manager patch records precisely
Patch Manager compliance is relative to a patch baseline: it measures patches approved under the baseline rules. AWS explicitly notes that baseline compliance does not mean the node is necessarily secure. Patch reports are point-in-time snapshots generated by successful patching operations, and a later scan can replace older compliance information. Capture the exact operation and its associated baseline before a newer scan changes the report.
For each managed node, collect DescribeInstancePatchStates fields including Operation, OperationStartTime, OperationEndTime, BaselineId, SnapshotId, MissingCount, FailedCount, SecurityNonCompliantCount, CriticalNonCompliantCount, and InstalledPendingRebootCount. These are node-level counters, not an assertion that one particular CVE is fixed. Where the correlation is disputed, capture patch-level details or a single-node report, then reconcile the relevant package or patch identifier against the affected-package information from Inspector.
A Scan is not an Install. An Install that succeeded is not proof that the correct version is running. Check the targeted instance, patch baseline, execution log, errors, affected package, and reboot disposition. AWS documents INSTALLED_PENDING_REBOOT as a noncompliant state, although the value does not itself prove that a reboot is required. Do not assume an operating-system patch baseline covers every application-level dependency or that numeric patch counters map directly to Inspector finding counts.
Require a post-change Inspector observation
Inspector evaluates EC2 package vulnerabilities from software inventory collected through its supported agent-based or agentless scanning paths. The scanning method, resource eligibility, and timing affect whether a new assessment reflects the change. Compare ListCoverage.lastScannedAt to the end of the patch execution. A pre-change scan cannot verify a post-change fix, even if Patch Manager has already produced compliant output.
The closure gate should require current scan eligibility, a scan observation after the remediation, and updated Inspector finding evidence showing that the original vulnerability is no longer active on the same resource and relevant package. Evaluate scan status and status reason instead of relying on a timestamp alone. A stale or ineligible instance belongs in COVERAGE_GAP or NEEDS_RESCAN, not VERIFIED_REMEDIATED.
Account for collection and evaluation delays. Do not promise immediate closure on installation. Establish a reasonable verification deadline as an operational policy, collect again after that deadline, and escalate stale results to the scan owner. If the finding reopens, preserve the original closure decision and attach the new observation as a recurrence rather than deleting the earlier record.
Build the evidence join and decision ledger
An implementation sequence is: Inspector finding snapshot -> resource and account identity -> authorized change reference -> SSM patch execution and baseline -> later Inspector coverage snapshot -> finding state -> reviewer decision -> controlled evidence retention. Every arrow requires a matching key or documented manual correlation. Neither a dashboard count nor a ticket comment is an adequate substitute for source records.
- Finding: source ARN, account, Region, EC2 instance ID, CVE, affected package, installed version, fix-available indication, severity, and observation timestamps.
- Execution: change/ticket ID, operator or automation identity, maintenance window or command reference, start/end times, baseline ID, snapshot ID, result and reboot disposition.
- Validation: updated scan coverage and status, latest finding state, patch-level or version corroboration where available, and a declared observation window.
- Decision: VERIFIED_REMEDIATED, CLOSED_RESOURCE_RETIRED, COVERAGE_GAP, NEEDS_RESCAN, PATCH_FAILED, EXCEPTION_REVIEW, or MANUAL_REVIEW. These are local design labels, not AWS statuses.
- Provenance: source JSON, SHA-256 checksums, collector code revision, run ID, UTC timestamps, reviewer identity, review time, storage location and retention policy.
Append observations instead of replacing prior evidence. Corrections should create a new record version with a reason and pointer to the superseded version. Separate collection write privileges from reviewer approval and deletion permissions. An access-controlled, versioned store can support reproducibility, but any immutability or retention guarantee must be validated against the actual storage configuration.
Test error paths deliberately
Use a permitted nonproduction instance and a known, supported patch baseline to validate the workflow. Capture the pre-change Inspector finding and coverage, apply a supported patch under a documented change, retain execution output, then obtain a later coverage record and Inspector finding observation. The test demonstrates the correlation logic for a supported vulnerability; it is not evidence that every Inspector CVE can be remediated through Patch Manager.
- SUPPRESSED finding: route to exception review; do not classify as patched.
- Successful patch run with ACTIVE finding: check package versions, patch scope, reboot state, scanner freshness and advisory mappings.
- CLOSED finding from termination or exclusion: retain decommissioning or exclusion evidence, not in-place patch proof.
- No scan after change: record NEEDS_RESCAN regardless of Patch Manager’s missing-patch count.
- Baseline change between operations: preserve both baseline contexts; avoid comparing unrelated compliance counts.
- API throttling, partial pagination, missing Region or access denied: mark collection incomplete and retain the failed scope and retry evidence.
- Reopened vulnerability: link the new finding observation to the prior closure record and assign recurrence review.
Operational acceptance checklist
- All intended accounts, Regions and EC2 resources are included, with documented scan eligibility and collection ownership.
- Both findings and coverage use complete pagination, and raw source exports have capture timestamps and checksums.
- The original finding and the patch execution refer to the same instance, or the replacement/retirement relationship is documented.
- Patch baseline, execution outcome, per-package corroboration, and reboot state have reviewable references.
- The validation scan is later than the remediation and shows usable coverage for the resource.
- Exceptions, stale scans, suppressed findings, and asset retirement remain distinguishable from successful in-place remediation.
- Review decisions and source records can be reproduced without relying on the current console state.
Control and authorization boundaries
For a regulated environment, this evidence workflow can support vulnerability management and continuous monitoring implementation work, and the resulting records can be mapped to the organization’s NIST SP 800-53 control assessment objectives. The mapping and implementation still need control-owner review. This collector does not itself establish compliance, satisfy an independent assessment, grant an authorization to operate, or certify a FedRAMP or FISMA system.
A defensible closure statement is specific: on a dated observation, an in-scope EC2 resource had an Inspector vulnerability; an authorized change and matching patch operation occurred; a later eligible scan evaluated that resource; the vulnerability was no longer active; and the underlying evidence and exceptions were retained. If any link is missing, report exactly what has not yet been verified.
Related resources
- FedRAMP 2026 Vulnerability Reporting Kit
- NIST SP 800-53 Controls Field Kit
- AWS Config Recorder Coverage Audit
Sources
Continue reading
- How to Audit AWS Security Hub CSPM Suppression Rules Without Losing Risk Visibility
Validate AWS Security Hub CSPM suppression rules across accounts and Regions, reconcile suppressed findings with approvals, and retain review evidence.
- How to Validate AWS CloudTrail Coverage Across a Multi-Account Organization
A practical method for validating CloudTrail coverage across AWS Organizations, Regions, event selectors, delivery health, and log integrity.
- How to Audit GuardDuty Organization Coverage Across AWS Accounts and Regions
Validate Amazon GuardDuty coverage across AWS Organizations accounts and Regions with a read-only detector audit, onboarding tests, and traceable security evidence.
Written by
Tymur Chmeruk
Cloud Security & Infrastructure Engineer · Baltimore–Washington Metro · [email protected]