Dev.to Security 🔐 Cybersecurity 👁 0 📖 7 min read

AMI Lineage: When an Agent Upgrade Cannot Reach the Exposure

AMI lineage, not the SSM Agent version, decides whether a Windows instance still carries the exposure behind CVE-2026-134069. AWS bulletin 2026-197-AWS, published November 23, 2026, describes an issue in Amazon SSM Agent

AMI Lineage: When an Agent Upgrade Cannot Reach the Exposure

AMI lineage decides remediation: an agent upgrade does not remove a shared SSM Agent key, Vault deletion is unsupported, and AWS recommends replacement from a newer AMI

AMI lineage, not the SSM Agent version, decides whether a Windows instance still carries the exposure behind CVE-2026-134069. AWS bulletin 2026-197-AWS, published November 23, 2026, describes an issue in Amazon SSM Agent "on AWS-provided Windows Server AMIs released before 2026-09-09, where instances launched from the same AMI shared one instance registration key." The fixed agent, 3.3.5226.0, ships in AMIs released on or after that date. For existing instances, AWS is direct: "Instances launched from these AMIs remain affected after an in-place agent upgrade."

The Alpine sshd bypass showed that a package on disk, a running daemon and a rebuilt image are separate states, and that a version number only proves an action ran. There, every state could still be closed on the running host. Here, AWS states that an in-place agent upgrade leaves the shared key in place, and it recommends replacing the instances. When a shared secret is baked into an AMI at launch, the remediation unit is the instance, and its source AMI lineage identifies whether replacement is necessary.

Scope: AWS-provided Windows Server AMIs, as the bulletin defines them. Neither primary source mentions exploitation, and this post claims none.

What AWS's Bulletin and Advisory Establish

Two primary sources cover the issue: AWS's bulletin and the GitHub security advisory GHSA-rfpp-9v45-jjv4 in the aws/amazon-ssm-agent repository. They agree on the versions, the AMI cutoff and the fix, and both state that deleting the agent's Vault "is not a supported remediation." They word the access condition differently.

AWS bulletin 2026-197-AWS GHSA-rfpp-9v45-jjv4
Affected SSM Agent < 3.3.5226.0 on AWS Windows Server AMIs released before 2026-09-09 Same versions and cutoff
The shared key "instances launched from the same AMI shared one instance registration key" "under certain circumstances, Windows instances launched from the same AWS-provided Windows Server AMI released before 2026-09-09 share the same Amazon SSM Agent registration key"
Who obtains what "a local user without administrative privileges might be able to obtain the instance's Default Host Management Configuration role credentials" "A local non-administrative user on a DHMC-managed instance could obtain the instance's DHMC role credentials"
Scope of those credentials NOT STATED "by default only allow limited Systems Manager actions"

The bulletin says "might be able to"; the advisory says "could," and adds "under certain circumstances" without defining them. This post keeps both wordings and does not reconcile them.

Affected Is Not Exposed

Remediating compute you operate yourself is day-2 work in modern infrastructure and IaC architecture, and the first decision is which population you are counting. The bulletin defines two.

Population Defined by Source
Affected Launched from an AWS-provided Windows Server AMI released before 2026-09-09 Bulletin
Exposed Affected, managed through Default Host Management Configuration (DHMC), with a local user lacking administrative privileges Bulletin
Not established Other conditions; images built on an affected AMI NOT STATED

AMI lineage sorts instances into the affected set. It does not make any of them exploitable; the DHMC and local-user conditions define exposure.

The last row matters most for enterprises that launch from their own golden images. The bulletin speaks of "instances launched from these AMIs," meaning AWS-provided ones. Whether an image built on an affected AWS AMI carries the shared key is NOT STATED, and this post assumes neither answer.

Affected and exposed populations for CVE-2026-134069: pre-2026-09-09 AMI, then DHMC management, then a local non-admin user; derived images unresolved

Why an Agent Upgrade Does Not Remove It

Three cases on this site put the remediation in three different places. They are not equivalent.

Case Where the exposure lives What closes it What the sources say about in-place action
Alpine sshd bypass Running sshd, accounts, configuration Upgrade or reconfigure, then restart sshd Closes it on the running host
Managed compute kernel flaw Kernel in the platform revision or AMI Move to the patched revision, which fixes the code-level flaw Compute is replaced on the provider's lifecycle and your settings
SSM Agent shared key Key shared by instances from the same AMI Replace from an AMI released on or after 2026-09-09 (AWS recommendation) Agent upgrade leaves the key; Vault deletion is unsupported; other in-place actions NOT STATED

In managed compute patching, the revision a workload runs is evidence that it is remediated. That rule holds for the code-level flaw that post covers. SSM is different: AWS states that an in-place agent upgrade leaves the shared registration key in place, and deleting the agent's Vault is not a supported remediation. AWS recommends replacing the affected instances. The remediation evidence therefore has to follow the instance's source AMI, not its current agent version. As with a revocation unit a vendor sets, AWS's recommended unit is wider than the defect: it is the whole instance, not the agent.

AMI Lineage Is the Remediation Evidence

The question for each instance is its AMI lineage: which AMI it came from, and whether that AMI was released before September 9, 2026. The agent version cannot answer it. As analysis, not a demonstrated case: a report keyed to agent version would show 3.3.5226.0 on an affected instance upgraded in place, which AWS states remains affected.

AMI lineage is also evidence with a retention window. AWS's Windows AMI documentation states that AWS Windows AMIs "are publicly available for three months after they are released," that "Within 10 days after the release of new AMIs, AWS changes access for AMIs that are more than three months old to make them private," and that after that "you may no longer retrieve it by any method." New Windows AMIs ship within five business days of Microsoft's Patch Tuesday.

Rack2Cloud analysis, derived from that cadence, not a date AWS has published: every affected AMI is more than three months old by December 9. December's Patch Tuesday is December 8, so the next release and the ten-day privatization window after it fall in the second half of December. Affected AMIs released earlier in the year may already be private.

That makes evidence preservation part of the remediation, not an inventory convenience. Once the source AMI is private, an organization that kept no record of its AMI lineage may no longer be able to reconstruct its own exposure history. Recovery decisions depend on the same thing: what a recovery decision can rule out is set by the evidence kept before the incident. AMI lineage applies that principle to remediation, and AWS's retention rule puts a date on it.

A proposed method, from Rack2Cloud, not an AWS procedure:

01 — CAPTURE AMI LINEAGE WHILE THE AMI STILL RESOLVES

For each Windows instance, record the source AMI ID, the AMI name and evidence of its release date in launch templates, IaC state or a CMDB. An AMI ID alone does not prove the release date.

02 — MARK THE AFFECTED SET

Instances launched from an AWS-provided Windows Server AMI released before 2026-09-09. Instances from images built on an affected AMI are recorded as unresolved, not as clean.

03 — MARK THE EXPOSURE CONDITIONS

DHMC management and local users without administrative privileges. Check the instance, not only the account setting: per AWS, an instance profile allowing ssm:UpdateInstanceInformation takes precedence, and that instance does not use DHMC.

04 — REPLACE, AND RECORD THE REPLACEMENT'S LINEAGE

The record that closes an affected instance is its replacement's source AMI, released on or after 2026-09-09.

What the DHMC Credentials Carry

AWS documents that DHMC "creates and applies a default IAM role to make sure that Systems Manager has permissions to manage all instances in the AWS account and AWS Region where it's activated," and points to the managed policy AmazonSSMManagedEC2InstanceDefaultPolicy as the policy it uses. That policy, at version 2, allows Systems Manager agent actions (documents, associations, inventory, compliance and instance information), ssmmessages channel actions and ec2messages actions. It grants nothing in any other AWS service.

That bounds the documented default, not a given account. Administrators can add policies to the default role or use a custom role, and AWS states that changes to the chosen role apply to all managed EC2 instances in the Region and account. What the role carries in a particular account is NOT STATED, so read the role in force. Under the documented default policy, nothing in the sources supports a lateral-movement claim, and this post makes none.

What This Post Does Not Establish

Not assessed: exploitation, instance counts, circumstances beyond the bulletin's conditions, and what a role permits in a particular account. Not established: whether images built on an affected AWS AMI carry the key, and whether any in-place action other than the two AWS names would remove it. Instance launch time is not used as lineage evidence; no primary source read here supports it. The agent-version report is analysis. This post records an exception to the managed compute patching post's evidence rule, not a correction.

Architect's Verdict

On these instances, an agent upgrade does nothing about the shared key. AMI lineage decides whether an instance needs replacing, and replacement is the remediation AWS recommends.

The real problem is the assumption that remediation is something done to a running system. Usually it is. This exposure arrived with the image and stays with the instance, so the evidence has to match the thing that carries it. A version number describes the agent. Only the source AMI describes the instance.

That evidence does not wait. AWS makes old Windows AMIs private after three months, and a private AMI may not be retrievable at all. If the exposure came in with the image, the proof has to come from the image, recorded before AWS can no longer give it to you.

Additional Resources

Originally published at rack2cloud.com

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.