Home › Intelligence › Brief
BREACH BRIEF🟠 High ThreatIntel

Public AWS AMIs Pose Supply‑Chain Threats: Malicious “whoAMI” Images Can Compromise EC2 Workloads

A malicious public AMI masquerading as a trusted image can be selected by CI/CD pipelines, leading to compromised EC2 instances and downstream Golden AMIs. The risk highlights the need for provenance validation and continuous monitoring to satisfy audit‑ready supply‑chain controls.

LiveThreat™ Intelligence · 📅 November 19, 2026· 📰 blog.qualys.com
🟠
Severity
High
TI
Type
ThreatIntel
🎯
Confidence
High
🏢
Affected
1 sector(s)
✅
Actions
4 recommended
📰
Source
blog.qualys.com

Public AWS AMIs Pose Supply‑Chain Threats: Malicious “whoAMI” Images Can Compromise EC2 Workloads

What Happened — The Qualys blog explains that anyone can publish a public Amazon Machine Image (AMI) and that attackers are already exploiting this openness. Datadog Security Labs disclosed the “whoAMI” attack, where malicious images are given names that mimic trusted vendor images; CI/CD pipelines that select AMIs by name alone can inadvertently launch compromised instances. Because AMIs are often used as the base for Golden AMIs, a single poisoned image can propagate across accounts, regions, and workloads, introducing malware, vulnerable software, hard‑coded credentials, or insecure configurations at scale.

A developer or CI/CD pipeline that looks up an Amazon Machine Image (AMI) by a familiar name can inadvertently pull a malicious copy if it does not verify the image’s owner, according to research from Datadog Security Labs. The “whoAMI” attack demonstrates that attackers can publish public AMIs whose names and descriptions mimic trusted vendor images, causing automated workflows to select the counterfeit image and launch compromised EC2 instances. Datadog notes that “image‑selection mistakes can introduce a supply‑chain compromise before an application even starts running.”

Public AMIs are freely available to any AWS customer in a given region, whereas private AMIs are shared only with authorized accounts. While public images accelerate deployment by providing ready‑made operating systems and software stacks, they also expose organizations to a range of threats. Risks include outdated operating systems, vulnerable software packages, embedded malware or cryptominers, hard‑coded credentials, accidental exposure of internal images, and outright impersonation through misleading names. All of these stem from insufficient validation of image provenance and weak governance throughout the AMI lifecycle.

The attack analysis outlines three primary danger zones. First, malicious public AMIs may contain directly embedded malware that executes on instance launch, establishing persistence, contacting command‑and‑control servers, or mining cryptocurrency. Second, misconfigured images—though not intentionally hostile—can carry unpatched software, exposed SSH private keys, insecure authentication settings, or unnecessary services that broaden the attack surface. Third, compromised “Golden” AMIs, which serve as standardized baselines, can propagate the same weaknesses to every derived instance across multiple accounts, regions, and environments, especially when the source image is untrusted or when the Golden AMI is not rebuilt regularly, leading to version drift.

Mitigation strategies emphasized in the report include validating the AMI owner before use, regularly rebuilding Golden AMIs, employing AWS’s “Allowed AMIs” feature, and continuously monitoring image integrity with tools such as Qualys TotalCloud. By combining provenance checks, disciplined image lifecycle management, and automated security tooling, organizations can keep malicious or misconfigured images out of production workloads.

Organizations that continue patching live instances while still launching new workloads from older images create a fragmented security baseline; the newer EC2 instances inherit vulnerabilities that have already been remediated on existing machines. Large enterprises often juggle hundreds of AMIs across several AWS accounts and Regions, and without a centralized inventory or lineage map it becomes difficult for security teams to pinpoint which workloads stem from vulnerable images, which “Golden” AMIs have inherited those flaws, and which production systems need urgent remediation. Maintaining a complete image‑lineage view is therefore essential for rapid incident response and effective vulnerability management.

The attack techniques that can surface in these AMI‑related compromises are catalogued in MITRE ATT&CK. T1608.001 (Stage Capabilities: Upload Malware) describes how threat actors upload back‑doored AMIs to public repositories, including the AWS Community AMI catalog, making malicious images readily available. T1195 (Supply Chain Compromise) covers the insertion of compromised system images into an organization’s Golden AMI workflow, allowing malicious components to cascade downstream. T1036.005 (Masquerading: Match Legitimate Resource Name or Location) highlights the use of names that closely resemble trusted AMIs to trick developers or automated selection tools. Finally, T1525 (Implant Internal Image) refers to the insertion of malicious code into images already residing in a victim’s cloud environment, enabling persistence across future deployments.

A typical end‑to‑end chain begins with an attacker publishing a malicious public AMI under a trusted‑looking name. A developer or CI/CD pipeline then searches for an image without verifying the owner, selects the rogue AMI, and builds an internal Golden AMI from it. That Golden AMI is propagated across multiple AWS accounts and Regions, so every new EC2 instance launched from it inherits the malicious software or insecure configuration. Once active, the malware establishes persistence, contacts attacker‑controlled infrastructure, steals credentials, escalates privileges, moves laterally, and can compromise additional cloud resources. The fallout can include unauthorized EC2 access, credential theft, data exfiltration, cryptocurrency mining, inflated cloud costs, lateral movement, supply‑chain compromise, regulatory breaches, reputational harm, and compliance violations.

Mitigation starts with preventive governance: assess AMIs for known vulnerabilities before deployment using tools such as Amazon Inspector or Qualys TotalCloud AMI Scan, which performs snapshot‑based scanning without launching an EC2 instance. Organizations should automate Golden AMI creation and validation in CI/CD pipelines, regularly rebuild images to avoid version drift, and verify publisher identity and owner IDs—always defining the AMI owner ID to block name‑confusion attacks. AWS warns, “Restrict public sharing of internally created AMIs,” and recommends using the Allowed AMIs feature, which relies on an ImageCriteria JSON configuration to enforce trusted sources. Detective controls include continuous CloudTrail monitoring for AMI creation, modification, sharing, and launch events; alerts for instances launched from unknown AMIs; and drift detection for Golden AMIs. Governance best practices call for a centralized inventory of approved AMIs, lineage tracking, periodic permission reviews, removal of obsolete images, and integration of AMI validation into change‑management workflows. Qualys also offers Infrastructure‑as‑Code (IaC) Security to surface misconfigurations in deployment templates before resources are provisioned.

Integrating infrastructure‑as‑code (IaC) scanning directly into CI/CD pipelines lets development and security teams catch insecure Terraform or AWS CloudFormation definitions before they ever reach a production environment. By pairing this early‑stage validation with traditional AMI scanning, organizations gain a double layer of protection that surfaces configuration flaws capable of exposing EC2 workloads even when the underlying image appears clean.

Qualys TotalCloud bundles Cloud Security Posture Management, Cloud Workload Protection, and Cloud Infrastructure Entitlement Management into a single view of cloud‑risk exposure. The platform can surface misconfigurations such as publicly shared AMIs, missing encryption, or overly permissive launch permissions, while also ranking vulnerabilities across all supported workloads so teams can focus on the highest‑impact fixes. In addition, it flags excessive cloud permissions and risky identity relationships that could amplify the damage of a compromised instance, giving security operators a clearer picture of both image‑level and identity‑level threats.

Remediation is treated as a continuous workflow rather than a one‑off checklist. Qualys Vulnerability Management, Detection and Response (VMDR) pinpoints and ranks flaws across assets, and Qualys Patch Management can push the necessary updates to live instances. Automation tools such as Qualys Flow and the broader TotalCloud suite enable custom remediation playbooks, incident routing, and integration with existing ticketing systems, ensuring that findings are acted on promptly. For environments that rely on “Golden AMIs,” the guidance is to embed these remediation steps into the image‑building pipeline and to rebuild approved images on a regular cadence so that new deployments inherit the latest security baseline.

Although the discussion centers on AWS AMIs, the same supply‑chain hazards appear in Azure and Google Cloud Platform. Azure Managed Images and Compute Gallery assets must be checked for sharing and replication permissions, while GCP custom VM images require scrutiny of access controls, source integrity, and embedded software. Across all clouds, best practice calls for continuous visibility into image metadata—identifying owners, restricting access to vetted images, reviewing sharing settings, scanning for vulnerable components or exposed secrets, and retiring stale images. Centralized cloud‑security monitoring, leveraging Qualys capabilities such as posture assessment, image‑vulnerability scanning, IaC security, and workload protection, can provide a unified defense for multi‑cloud deployments, treating machine images as a critical piece of the software supply chain rather than merely an infrastructure artifact.

In December 2024 Amazon Web Services introduced Amazon EC2 Allowed AMIs, a governance capability that lets customers define a whitelist of AMI identifiers that may be launched within an account. The service is described in the EC2 user guide under “Allowed AMIs,” which outlines how administrators can create policies that block any attempt to run an image not on the approved list, thereby reducing the risk of inadvertently using malicious or misconfigured public AMIs.

Shortly after, AWS Marketplace announced the Golden AMI pipeline, a solution that automates the production of hardened, compliant AMIs from a known‑good base image. The pipeline integrates with AWS CodeBuild and CodePipeline to apply security hardening steps, run vulnerability scans, and publish the resulting image to a private AMI catalog for downstream consumption.

Qualys provides a set of cloud‑security tools that complement these AWS controls. Its documentation details an AMI scan connector that can be configured to automatically assess public and private images for known CVEs and configuration weaknesses. Additionally, Qualys offers an IaC integration guide that enables scanning of infrastructure‑as‑code templates before they are applied, and a Cloud Detection and Response module that monitors runtime environments for anomalous activity linked to compromised images.

Together, the AWS Allowed AMIs feature, the Golden AMI pipeline, and Qualys’ scanning and response capabilities form a layered approach to mitigate the “whoami” image‑name confusion attack vector, though the effectiveness of these controls in real‑world deployments remains to be measured.

Why It Matters for Trust & Control Assurance — The incident underscores the need for a formal control that validates third‑party software provenance before it enters production, a control that Verisq’s Vendor Risk Management capability can continuously evidence.

Who Is Affected — Cloud‑infrastructure providers, SaaS platforms, DevOps teams, and any organization that builds or runs workloads on AWS EC2.

Recommended Actions

  • Enforce explicit AMI owner verification in all automation scripts and CI/CD pipelines.
  • Integrate snapshot‑based AMI scanning (e.g., Qualys TotalCloud) into the Golden‑AMI build process.
  • Adopt AWS Allowed AMIs or a whitelist of approved image sources.
  • Maintain a centralized inventory of AMI lineage and schedule regular rebuilds to prevent version drift.
  • Continuously monitor CloudTrail for AMI creation, sharing, and launch events and alert on unknown sources.

Technical Notes

  • Attack vector: malicious or mis‑configured public AMIs (third‑party dependency).
  • MITRE ATT&CK techniques: T1608.001 (Upload Malware), T1195 (Supply Chain Compromise), T1036.005 (Masquerading).
  • No specific CVE; risk stems from supply‑chain misuse of image artifacts.
📰 Original Source
https://blog.qualys.com/product-tech/2026/11/17/public-aws-ami-risks-whoami-golden-ami ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Vendor Risk Hub

This is the scenario continuous vendor monitoring is built to catch.

When a vendor is compromised, your third-party risk controls are what produce the audit trail showing you knew, assessed, and acted. The Verisq AI Trust Operations platform tracks that continuously.

Explore the Verisq AI Trust Operations platform →