• News/
  • https://www.bleepingcomputer.com/news/security/hackers-target-ssrf-bugs-in-ec2-hosted-sites-to-steal-aws-credentials/

Hackers target SSRF bugs in EC2-hosted sites to steal AWS credentials

BleepingComputer
·
Bill Toulas
·
Published Apr 9, 2025
·
Updated

A targeted campaign exploited Server-Side Request Forgery (SSRF) vulnerabilities in websites hosted on AWS EC2 instances to extract EC2 Metadata, which could include Identity and Access Management (IAM) credentials from the IMDSv1 endpoint. Retrieving IAM credentials allows attackers to escalate their privileges and access S3 buckets or control other AWS services, potentially leading to sensitive data exposure, manipulation, and service disruption. The campaign was discovered by F5 Labs researchers, who reports that the malicious activity culminated between March 13 and 25, 2025. The traffic and behavioral patterns strongly suggest that it was carried out by a single threat actor. SSRF problems are web flaws that enable attackers to "trick" a server into making HTTP requests to internal resources on their behalf, which usually are not accessible by the attacker. In the campaign observed by F5, the attackers located websites hosted on EC2 with SSRF flaws, allowing them to remotely query the internal EC2 Metadata URLs and receive sensitive data. EC2 Metadata is a service in Amazon EC2 (Elastic Compute Cloud) that provides information about a virtual machine running on AWS. This information can include configuration details, network settings, and potentially, security credentials. This metadata service is only accessible by the virtual machine by connecting to special URLs on internal IP addresses, like http://169.254.169.254/latest/meta-data/. The first malicious SSRF probe wa...

Read full article

Affected Software

3 affected components
Amazon AWS EC2
Amazon IMDSv1
Amazon EC2

Frequently Asked Questions

1

What is the main topic of this article?

The article discusses a targeted hacking campaign that exploits SSRF vulnerabilities in EC2-hosted sites to steal AWS credentials.

2

What security implications are discussed in the article?

The article highlights how attackers can access sensitive AWS resources by exploiting SSRF vulnerabilities to extract EC2 Metadata.

3

What products or software are affected by this security issue?

The affected products include Amazon AWS EC2 and the IMDSv1 service.

4

How do the attackers leverage SSRF vulnerabilities?

Attackers leverage SSRF vulnerabilities to send unauthorized requests that access the EC2 instance metadata service.

5

What can AWS users do to protect themselves from this attack?

AWS users can protect themselves by ensuring proper validation of user input and implementing network security best practices.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203