Critical AWS Services Vulnerability Let Attackers Execute Remote Code

Hackers attack AWS as it hosts a vast number of high-value targets, including sensitive data, business applications, and cloud resources for organizations worldwide.

In February 2024, six AWS services were found to have some critical vulnerabilities. The services include CloudFormation, Glue, EMR, SageMaker, ServiceCatalog and CodeStar.

Cybersecurity analysts at Aquasec identified grave dangers associated with these vulnerabilities, such as remote code execution, full-service user takeover, AI module manipulation, sensitive data exposure, data exfiltration, and denial of service.

The major vulnerabilities identified included the “Shadow Resource” attack vector and the “Bucket Monopoly” technique.

Free Webinar on Detecting & Blocking Supply Chain Attack -> Book your Spot

AWS rectified the problems as soon as they were notified, however they advised users to implement the recommended mitigation measures since similar flaws might be present in other situations or services.

AWS Services Vulnerability

The automatic generation of S3 buckets for storing templates by AWS CloudFormation complies with a known terminology, “cf-templates-[12 char hash]-[region]”.

This pattern is consistent across regions except for the region name.

It is clear that this makes an opening for attackers to anticipate victim’s future use of Cloud formation and create buckets with matching names in unused regions.

If users initiate cloud formation in these regions, they may end up interacting unknowingly with attacker-owned ones consequently exposing themselves to risks of code execution, data manipulation, or account takeover.

This vulnerability affects numerous AWS services beyond CloudFormation as it is a “shadow resource.”

This relates to the fact that bucket names used globally are unique and also that some users are not even aware of automatically generated resources, which raises a fundamental security concern on AWS’ architecture.

Here below we have mentioned all vulnerabilities detected:-

  • AWS CloudFormation Vulnerability: “cf-templates-{Hash}-{Region}”
  • AWS Glue Vulnerability: “aws-glue-assets-{Account-ID}-{Region}”
  • AWS EMR Vulnerability: “aws-emr-studio-{Account-ID}-{Region}”
  • AWS SageMaker Vulnerability: “sagemaker-{Region}-{Account-ID}”
  • AWS CodeStar Vulnerability: “aws-codestar-{Region}-{Account-ID}”
  • AWS Service Catalog Vulnerability: “cf-templates-{Hash}-{Region}”

The number of open source projects that support AWS resource deployment is also vulnerable to similar “shadow resource” vulnerabilities. 

These can sometimes be seen when the projects generate S3 buckets with predictable names like account numbers or other unique identifiers. 

This predictability is what enables an attack type known as Bucket Monopoly where the attacker is able to identify naming patterns, discover unique IDs, and create multi-region buckets beforehand. 

The researcher further highlights the need for sensitization on treating Amazon Web Services (AWS) Account ID confidentially, securing resources fully, and maintaining active management of cloud-based resources.

Mitigations

Here below we have mentioned all the mitigations:-

  • Implement ‘aws:ResourceAccount’ Condition.
  • Verify the expected bucket owner.
  • Naming S3 Buckets.

Are you from SOC and DFIR Teams? Analyse Malware Incidents & get live Access with ANY.RUN -> Get 14 Days Free Access

Tushar Subhra

Tushar is a Cyber security content editor with a passion for creating captivating and informative content. With years of experience under his belt in Cyber Security, he is covering Cyber Security News, technology and other news.

Recent Posts

Nearest Neighbor Attacks: Russian APT Hack The Target By Exploiting Nearby Wi-Fi Networks

Recent research has revealed that a Russian advanced persistent threat (APT) group, tracked as "GruesomeLarch"…

1 day ago

240+ Domains Used By PhaaS Platform ONNX Seized by Microsoft

Microsoft's Digital Crimes Unit (DCU) has disrupted a significant phishing-as-a-service (PhaaS) operation run by Egypt-based…

2 days ago

Russian TAG-110 Hacked 60+ Users With HTML Loaded & Python Backdoor

The Russian threat group TAG-110, linked to BlueDelta (APT28), is actively targeting organizations in Central…

2 days ago

Earth Kasha Upgraded Their Arsenal With New Tactics To Attack Organizations

Earth Kasha, a threat actor linked to APT10, has expanded its targeting scope to India,…

2 days ago

Raspberry Robin Employs TOR Network For C2 Servers Communication

Raspberry Robin, a stealthy malware discovered in 2021, leverages advanced obfuscation techniques to evade detection…

2 days ago

145,000 ICS Systems, Thousands of HMIs Exposed to Cyber Attacks

Critical infrastructure, the lifeblood of modern society, is under increasing threat as a new report…

2 days ago