CLOUD CONCEPT

Patch Management

Patch management is the controlled process of identifying, testing, deploying, and verifying software updates to reduce vulnerabilities and maintain reliable systems.

Cloud Concepts Hub →

What is Patch Management

Patch management keeps operating systems, applications, and dependencies updated through repeatable policies and deployment workflows. In cloud environments, responsibility depends on the service model: providers patch infrastructure they operate, while customers patch the software layers they control. Effective patching combines automation with risk-based prioritization, availability safeguards, and continuous validation.

Patch management is a lifecycle, not simply the act of installing updates. Engineers inventory software, identify applicable fixes, assess urgency, test compatibility, deploy approved updates, and verify the resulting state. Security patches address known vulnerabilities, while other patches can resolve reliability defects. A practical policy defines remediation deadlines, maintenance schedules, approval rules, exception handling, and the evidence required to demonstrate completion.

In the cloud shared responsibility model, patching is a shared control applied to different layers, rather than a task that both parties perform on the same components. AWS patches the physical infrastructure and virtualization layers that it operates. For an Amazon EC2 instance, the customer is responsible for patching the guest operating system and customer-installed applications. With managed services, AWS operates and patches more of the stack, but customers still manage applicable maintenance settings, supported versions, and their own code and dependencies. Using a managed service does not eliminate every customer update obligation.

Start with an accurate inventory and ownership model. Classify workloads by operating system, environment, business criticality, exposure, and maintenance requirements. Prioritize vulnerabilities using exploitability, active exploitation, asset importance, and network reachability rather than severity scores alone. An internet-facing server with an actively exploited vulnerability may require an emergency rollout, while a lower-risk update can follow a normal testing cycle. Exceptions should have an owner, an expiration date, and compensating controls.

Automation translates policy into repeatable execution. For example, an operations team can use AWS Systems Manager Patch Manager to scan managed EC2 instances against patch baselines and install approved patches on a schedule. Baselines determine which updates are approved; they are not substitutes for application compatibility testing. Successful execution also depends on supported operating systems, healthy management agents, suitable permissions, and connectivity to management endpoints and package repositories. An unreachable or unmanaged instance must not be mistaken for a compliant instance.

Deploy updates progressively through development, staging, and production. Limit concurrency and stop or investigate when failures exceed defined thresholds. For a load-balanced application, drain and patch a subset of instances while preserving enough healthy capacity. Some updates require a reboot or service restart before the fix becomes effective, so a successful installation command alone does not prove remediation. Prepare backups or replacement capacity and a recovery plan; uninstalling a patch is not always supported or safe.

Immutable deployment is an alternative to modifying running servers. Build and test a patched machine image or container image, deploy replacement workloads, and retire the old versions. Updating an image does not patch instances or containers already running from it. Container users remain responsible for updating image contents and application dependencies, even when the provider manages the underlying compute hosts. Ensure scaling configurations reference the approved image so newly launched capacity does not reintroduce vulnerable software.

Continuous validation closes the loop. Patch compliance reports show whether resources satisfy an approval baseline, while vulnerability scanning identifies known weaknesses within its supported coverage. Amazon Inspector can identify vulnerabilities on supported workloads, but it does not install their patches. After remediation, repeat scans, confirm relevant restarts, run application health checks, and investigate remaining findings. A resource can satisfy its patch baseline yet still contain a vulnerability outside that baseline or scanning scope. Preserve deployment results, exceptions, and validation evidence to support audits and detect drift.

Key aspects of Patch Management

Effective patch management combines clear ownership, risk-based policy, automated deployment, availability controls, and continuous verification.

Layer-specific responsibility

Assign patch ownership according to who controls each software layer. Customers patch EC2 guest operating systems and installed software, while AWS patches the underlying infrastructure it operates.

Risk-based patch policy

Define approved updates, remediation deadlines, and exception procedures. Prioritize actively exploited vulnerabilities and exposed critical workloads rather than relying only on severity ratings.

Automated, repeatable deployment

Use inventory, resource targeting, schedules, and controlled execution to deploy updates consistently. Monitor agent health, permissions, and repository access so failed or missing assessments do not create false confidence.

Availability and recovery safeguards

Test updates before broad deployment and use staged rollouts with concurrency limits. Account for restarts, spare capacity, backups, and recovery options before changing production systems.

In-place and immutable remediation

Choose between updating running resources and replacing them with newly built, patched images. Keep deployment templates and image references current to prevent vulnerable versions from returning during scaling or recovery.

Continuous verification and evidence

Combine patch compliance checks, vulnerability reassessment, and workload health tests. Retain results and time-limited exceptions because successful installation does not by itself establish security or application correctness.

Cloud services for Patch Management

Systems Manager provides patch assessment and installation for managed nodes, while Amazon Inspector supplies vulnerability findings that help prioritize work and validate remediation within supported coverage. EC2 Image Builder supports an alternative workflow: build and test updated images, then replace workloads through deployment automation. AWS Config can evaluate patch compliance using Systems Manager data and flag resources requiring attention. Together, these services support a feedback loop from discovery through remediation to evidence, but engineers must still define ownership, approval policies, rollout safeguards, application tests, and exception handling.

AWS Systems Manager image AWS Systems Manager

Patch Manager, a capability of AWS Systems Manager, scans managed nodes for patch compliance and installs approved patches using patch baselines. Patch policies and Maintenance Windows support scheduled execution, while managed-node connectivity, permissions, and package-repository access remain operational prerequisites.

Open AWS Systems Manager →
Amazon Inspector image Amazon Inspector

Amazon Inspector identifies software vulnerabilities in supported EC2 instances, container images in Amazon ECR, and Lambda functions within its enabled scanning coverage. Use findings to prioritize remediation and reassess exposure afterward; Inspector does not deploy patches.

Open Amazon Inspector →
EC2 Image Builder

EC2 Image Builder automates the creation, testing, and distribution of machine images and container images, including update steps configured in build workflows. Deploying those images through a separate rollout process supports immutable patching; existing workloads remain unchanged until replaced.

Open EC2 Image Builder →
AWS Config image AWS Config

AWS Config can evaluate managed-instance patch compliance using a managed rule that relies on Systems Manager compliance information. This supports compliance tracking and remediation workflows but does not independently scan for vulnerabilities or install updates.

Open AWS Config →