A source-cited reference library 399 modules · 19 subdomains · 5 domains
Research Library
The U.S. Food and Drug Administration
Photo: The U.S. Food and Drug Administration, Public domain, via Wikimedia Commons

Cybersecurity / Defense and Hardening

Patching Your Windows EC2 Instances Using AWS Systems Manager Patch Manager

CybersecurityDefense and Hardening855 words4 min readSource: aws.amazon.com

Patching your Windows EC2 instances using AWS Systems Manager Patch Manager refers to the automated process of scanning, evaluating, and applying operating system and application updates to managed instances through the AWS Systems Manager service. This functionality enables centralized control over patch deployment across fleets of Amazon EC2 instances running Windows or Linux operating systems, using defined policies, grouping mechanisms, and scheduling tools to ensure consistent and timely update application while minimizing operational disruption.

How It Works

Patch Manager operates by evaluating instances against a patch baseline that defines which updates are approved or rejected for installation. The service scans managed instances to identify missing patches, compares them against the baseline rules, and optionally installs approved updates. Users can initiate patching operations either on-demand or through scheduled maintenance windows. The process relies on the AWS Systems Manager Agent (SSM Agent) installed on each instance to communicate with the service, receive patch directives, and report compliance status. Patch Manager supports both scan-only and scan-and-install modes, allowing administrators to assess patch status before deployment. The service integrates with Amazon EC2 tags to dynamically identify target instances, enabling policy-driven patching without manual instance selection. Compliance data is aggregated and visible in the Systems Manager console under inventory and compliance sections, providing visibility into patch status across the environment.

Term Type/Component
AWS Systems Manager Patch Manager Automated process for scanning, evaluating, and applying OS and application updates
Patch Baseline Defines approved/rejected updates based on OS, product, classification, severity
Auto-approval Rules Conditions for automatic patch approval after a defined delay period
Patch Group Logical grouping of instances via EC2 tag key "Patch Group"
Maintenance Window Scheduling infrastructure with cron-based schedule, duration, and cutoff
AWS-RunPatchBaseline Document Executes patching operations with parameters like operation type, concurrency, error thresholds
SSM Agent Required on instances to communicate with Patch Manager service
Compliance Reporting Aggregated patch status visible in Systems Manager console under inventory and compliance sections

Variants and Components

Patch Manager comprises several configurable components that define its behavior. A patch baseline contains approval and rejection rules based on operating system, product name, classification, and severity. Auto-approval rules within a baseline specify conditions under which patches are automatically approved after a defined delay period measured in days from release. Patch groups serve as logical groupings of instances, defined by the EC2 tag key "Patch Group", to which a specific baseline is associated. Maintenance Windows provide scheduling infrastructure, consisting of a cron-based schedule, duration in hours, and a cutoff value that prevents new task initiation near the end of the window. Tasks within a Maintenance Window are defined by the AWS-RunPatchBaseline document, which executes patching operations and includes parameters such as operation type (Scan or Install), concurrency limits, error thresholds, task priority, and required IAM role permissions. The system supports multiple baselines and patch groups to enable differentiated patching strategies across environments such as development, test, and production.

Standards and Algorithms

Patch Manager follows predefined evaluation logic for determining patch applicability. A patch baseline uses a rule engine that matches patches against filters based on attributes such as MSRC_SEVERITY, CLASSIFICATION, PRODUCT, and PATCH_SET. Auto-approval rules apply a temporal delay: a patch released on a given date becomes eligible for installation only after the specified number of days has elapsed. The default patch baseline automatically approves patches classified as Critical or Security updates with a severity of Critical or Important, seven days after release. When multiple baselines exist, the system evaluates patch group associations to determine which baseline applies to a given instance. Maintenance Windows use a cron expression format for scheduling, supporting recurring intervals such as weekly or monthly executions. Task execution order is governed by the priority parameter, with lower numbers indicating higher precedence. Concurrency and error threshold settings control the scale and fault tolerance of patching operations, allowing either absolute counts or percentages of the target set to define limits on parallel execution and failure tolerance.

Limitations and Failure Modes

Patch Manager effectiveness depends on the presence and health of the SSM Agent on target instances; instances without the agent or with agent communication failures cannot be patched or reported. Patch baselines do not supersede superseded patches unless explicitly configured, potentially leaving outdated updates in the approval queue. The service does not guarantee immediate patch availability upon Microsoft release due to the built-in approval delay, which may expose instances to vulnerabilities during the waiting period. Maintenance Windows cannot execute tasks if the scheduled time falls outside the defined duration or if the cutoff prevents task initiation. Tag-based targeting requires consistent and accurate application of the Patch Group tag across instances; mis-tagged or untagged instances are excluded from patching operations. Compliance reporting relies on inventory data collection, which may experience delays or gaps if inventory collection is not properly configured or if instances fail to report. The system does not support patching of applications outside the operating system scope unless those applications are registered as part of the patch metadata within the baseline, which is limited to Microsoft-distributed updates for Windows instances. Additionally, the AWS-RunPatchBaseline document does not support third-party patch repositories or non-Microsoft update sources without custom configuration beyond the standard baseline framework.

Source

Adapted for this library from the original article at https://aws.amazon.com/blogs/mt/patching-your-windows-ec2-instances-using-aws-systems-manager-patch-manager/ — see the publisher's site for the authoritative version. (retrieved October 2026).