230 million cloud endpoints
A large-scale, automated attack campaign has resulted in the compromise of an estimated 230 million unique cloud endpoints hosted on Amazon Web Services (AWS). The attackers' primary initial access vector was the exploitation of a simple but widespread misconfiguration: publicly exposed environment (.env) files. These files, often containing plaintext credentials such as API keys and database passwords, were systematically harvested by the attackers. Once inside a victim's AWS account, the threat actors escalated privileges, deployed malicious AWS Lambda functions to expand their operation, and ultimately exfiltrated massive amounts of data to their own Amazon S3 buckets before leaving ransom notes. The incident is a stark reminder of the critical importance of basic security hygiene and the devastating consequences of leaking credentials in a cloud environment.
The campaign was notable for its scale and automation. The threat actors operated by scanning millions of domains for accessible .env files. These configuration files are commonly used in web development to store environment-specific variables, and due to developer error, are frequently left on web servers where they can be accessed by the public.
The attackers were particularly interested in credentials for services like Mailgun, likely to use them for follow-on phishing campaigns, but the primary goal was the compromise of AWS accounts. The attack's success hinges on the high value of the credentials typically stored in .env files, which can provide a direct, authenticated entry point into an organization's most sensitive cloud infrastructure.
The attack followed a clear, multi-stage methodology:
/.env on over 110,000 domains (T1595.002)..env file, the contents, including AWS API keys (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY), were harvested (T1552.001).ListBuckets, ListRoles, ListFunctions) to map out the victim's cloud environment and identify valuable data assets.AdministratorAccess) to ensure persistent and unrestricted access to the account, even if the original stolen key was revoked (T1078.004).T1537).T1485).T1595.002.env files.T1552.001.env files.T1078.004T1098.004T1053.005T1537T1485The impact of this attack is devastating for the victims. It represents a complete compromise of their cloud environment, leading to a massive data breach, operational disruption from data deletion, and a direct financial demand via ransom. The recovery costs, including forensic investigation, data restoration (if possible), regulatory fines, customer notification, and reputational damage, will be immense. This incident serves as a powerful case study on how a simple misconfiguration—an exposed .env file—can cascade into a catastrophic security failure in the cloud.
No specific IOCs were provided in the source articles.
AWS administrators should hunt for the following signs of compromise:
log_sourceAWS CloudTrailCreateRole, PutRolePolicy, CreateFunction.user_agent(unusual user agent)api_endpoints3:CopyObjectCopyObject calls, especially to S3 buckets outside your organization.string_patternAdministratorAccessAdministratorAccess or similarly broad permissions.Detection:
GetObject or CopyObject requests from unauthorized or unexpected principals or IP addresses.Response:
Strategic Mitigation:
.env. Use a dedicated secrets management service like AWS Secrets Manager or HashiCorp Vault. These services provide secure storage and programmatic, audited access to secrets at runtime..env files on web servers.Tactical Mitigation:
. (dot) files, especially .env..gitignore file to ensure that .env and other configuration files containing secrets are never committed to a source code repository.Avoid hardcoding credentials. Use a dedicated secrets management service like AWS Secrets Manager to handle sensitive information.
Properly configure web servers to prevent directory listing and block access to sensitive files like .env. Use CSPM tools to detect misconfigurations.
Enforce the principle of least privilege for all IAM roles and users. An API key should never have broader permissions than necessary.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.