Skip to main content
Mallory
← Back to News
cloud-service-vulnerabilitywidely-deployed-product-advisorycloud-misconfiguration

Predictable S3 Bucket Names Exposed Six AWS Services to Cross-Account Attacks

Vulnerability Disclosure · 3 sources · Updated 25d ago · First seen Jun 26, 2024

Predictable S3 Bucket Names Exposed Six AWS Services to Cross-Account Attacks

Aqua Security researchers disclosed vulnerabilities in six AWS services involving predictable, automatically generated Amazon S3 bucket names. Discovered in February 2024, the “Shadow Resources” attack vector allowed attackers to register expected bucket names before legitimate deployments and, under vulnerable workflows, cause AWS services to use attacker-controlled storage. Potential consequences included data exposure, code or template manipulation, denial of service, and account takeover. The researchers’ “Bucket Monopoly” technique extended this approach across unused AWS regions to increase the likelihood of intercepting future deployments. The report did not establish malicious exploitation in the wild.

AWS remediated the affected workflows in CloudFormation, Glue, EMR, SageMaker, and Service Catalog. It considered CodeStar addressed through restrictions preventing new customers from creating projects ahead of the service’s planned retirement. Organizations should still audit custom and open-source deployment workflows for predictable bucket names and assumptions about storage ownership. Recommended safeguards include validating bucket ownership, using unpredictable names, and enforcing least-privilege, account-scoped access. AWS guidance on S3 bucket policies and cross-account policy evaluation provides a basis for reviewing both identity- and resource-based permissions so that deployment roles cannot inadvertently trust attacker-controlled buckets.

Why it matters

Aqua Security demonstrated cross-account attacks against predictable S3 buckets used by six AWS services, potentially exposing customer data, altering deployment templates or job code, disrupting deployments, and enabling account takeover where deployment permissions allowed it. AWS addressed the reported service workflows in 2024, but custom and open-source automation with equivalent ownership-validation failures may remain exposed; the supplied report does not establish malicious exploitation in the wild. Exposure depended on attackers claiming expected bucket names before legitimate deployments, rather than compromising arbitrary existing buckets.

  • Industry-specific impact is not established. The affected cloud services support many workloads, but the supplied content identifies no affected customer organizations or targeted industries.
  • Geography-specific impact is not established. “Bucket Monopoly” exploited deployments into unused AWS regions, but AWS infrastructure regions do not establish affected countries or populations.
  • Severity is permission-dependent: template or script manipulation could inherit deployment-role or job-role privileges; Service Catalog Launch Constraints could permit deployment with privileges exceeding those of the initiating user. These are demonstrated potential consequences, not confirmed customer incidents. Research report
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · Feb 2024 – Jun 26, 2024
  1. Reported Aug 9, 20242y ago

    Researchers disclose Shadow Resources and the Bucket Monopoly technique

    Researchers published technical details showing how claiming predictable S3 bucket names across unused AWS regions could enable data exposure, code or template manipulation, denial of service, and potentially account takeover. The report did not establish malicious exploitation in the wild.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  2. Reported Aug 9, 20242y ago

    AWS considers CodeStar addressed through project-creation restrictions

    AWS considered the CodeStar issue addressed because new customers could no longer create projects ahead of the service's planned retirement. The reported vulnerability allowed preemptive bucket registration to cause project creation to fail.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  3. Jun 26, 20242y ago

    AWS confirms further CloudFormation and Service Catalog fixes

    AWS confirmed fixes for CloudFormation and Service Catalog following the residual CloudFormation denial-of-service report.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  4. Apr 30, 20243y ago

    Researchers report residual CloudFormation denial-of-service exposure

    Researchers notified AWS that CloudFormation remained exposed to denial of service after the earlier remediation.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  5. Mar 25, 20243y ago

    AWS confirms fixes for Glue and SageMaker

    AWS confirmed fixes for the Glue and SageMaker vulnerabilities, which could expose job scripts and imported datasets to interception or manipulation.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  6. Mar 16, 20243y ago

    AWS confirms fixes for CloudFormation and EMR

    AWS confirmed fixes for the reported CloudFormation and EMR vulnerabilities involving attacker-controlled S3 buckets.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  7. Feb 18, 20243y ago

    Researchers report the Service Catalog vulnerability

    Researchers reported that Service Catalog's CloudFormation-template workflow could allow malicious resource injection or backdoors through an attacker-controlled template bucket.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  8. Feb 16, 20243y ago

    Researchers report five affected services to AWS

    Researchers reported the CloudFormation, Glue, EMR, SageMaker, and CodeStar vulnerabilities to AWS.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
  9. Feb 2024

    Researchers discover predictable-bucket vulnerabilities in six AWS services

    Researchers discovered vulnerabilities in CloudFormation, Glue, EMR, SageMaker, Service Catalog, and CodeStar involving predictable, automatically generated S3 buckets. The attack vector, named “Shadow Resources,” allowed attackers to claim expected bucket names before legitimate users deployed the services.

    Bucket Monopoly: Breaching AWS Accounts Through Shadow Resources
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Aws Cloudformation

Organizations

1 linked
Amazon Web Services
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.