Skip to main content
Mallory
← Back to News
credential-access-methodcryptocurrency-platform-riskcloud-service-vulnerabilitypersistence-method

Cryptomining Campaign Leveraging Compromised AWS IAM Credentials

Attack Tradecraft · 4 sources · Updated 5mo ago · First seen Dec 17, 2025

Cryptomining Campaign Leveraging Compromised AWS IAM Credentials

A coordinated cryptocurrency mining campaign has been detected targeting Amazon Web Services (AWS) customers by exploiting compromised Identity and Access Management (IAM) credentials. The attackers used these credentials to gain unauthorized access to Amazon Elastic Compute Cloud (EC2) and Elastic Container Service (ECS) environments, rapidly deploying crypto mining operations within minutes of initial access. Amazon GuardDuty and AWS's automated security monitoring systems identified the campaign, which began on November 2, 2025, and observed the use of novel persistence techniques designed to disrupt incident response and prolong mining activities. The attackers operated from external hosting providers, quickly enumerating service quotas and permissions before launching mining resources, and in some cases, created dozens of ECS clusters in a single attack.

The threat actors employed advanced tactics such as using the "DryRun" flag with the RunInstances API to validate permissions without launching instances, minimizing their forensic footprint. They also created new IAM roles and attached policies to facilitate the deployment and persistence of mining workloads. AWS emphasized that the campaign did not exploit vulnerabilities in AWS services themselves but relied on the misuse of valid credentials, underscoring the importance of strong credential management and monitoring. AWS has provided mitigation guidance and detection recommendations to help customers defend against similar attacks in the future.

Why it matters

Impact assessment

This campaign affects AWS customers running EC2 and ECS where IAM credentials have been compromised, especially environments with broad IAM permissions, autoscaling, container orchestration, and high-cost compute quotas. Impact is potentially severe due to rapid unauthorized resource provisioning, sustained cryptomining costs, operational disruption during containment, and secondary abuse of Lambda and SES for persistence or phishing.

The exposure is targeted but multi-victim, with GuardDuty detecting activity across multiple AWS customer accounts. There is confirmed exploitation in the wild beginning on 2025-11-02, and the attackers can begin mining within 10 minutes of initial access.

Supporting facts

  • Affected platforms: Amazon EC2, Amazon ECS, IAM, Auto Scaling, Lambda, and SES.
  • Affected users: AWS customers with stolen or misused IAM credentials; highest risk for accounts with admin-like privileges.
  • Business impact:
    • Direct financial loss from unauthorized compute consumption, including aggressive scaling up to 999 EC2 instances per auto scaling group.
    • Operational disruption because attackers disable API termination / enable termination protection, slowing remediation.
    • Potential reputational and downstream abuse if SES is used for phishing or Lambda is exposed publicly.
  • Scope:
    • Coordinated campaign observed across multiple AWS customer accounts.
    • Not caused by an AWS service vulnerability; exposure depends on credential compromise and permissive IAM.
  • Known in-the-wild activity:
    • AWS GuardDuty identified the campaign as ongoing.
    • Attackers created dozens of ECS clusters in some intrusions and launched miners rapidly after reconnaissance.
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

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

7 events · Nov 2, 2025 – Dec 16, 2025
  1. Dec 16, 20251y ago

    AWS publicly discloses campaign details and mitigations

    AWS published technical details of the campaign, describing the attackers' automation, persistence methods, and recommended incident response steps. The disclosure emphasized that the activity relied on stolen credentials, not flaws in AWS services.

  2. Dec 16, 20251y ago

    Malicious Docker Hub image is removed

    The Docker Hub image yenik65958/secret used in the campaign was taken down after being identified as part of the operation. AWS warned that similar attacks could continue using different images or accounts.

  3. Dec 16, 20251y ago

    GuardDuty detects campaign and AWS alerts affected customers

    Amazon GuardDuty, including Extended Threat Detection and Runtime Monitoring, identified the coordinated activity and enabled AWS to notify affected customers. AWS advised actions such as credential rotation, stronger IAM controls, MFA, least privilege, and monitoring for suspicious API usage.

  4. Nov 2, 20251y ago

    Attackers expand activity to Lambda and SES abuse

    Beyond mining, the attackers created Lambda functions and sought SES access, indicating efforts to establish broader malicious infrastructure and possible phishing capability inside compromised AWS accounts. This showed the campaign extended beyond simple resource hijacking for mining.

  5. Nov 2, 20251y ago

    Attackers use termination protection for persistence

    The campaign introduced a notable persistence technique by modifying EC2 instance attributes to disable API termination, making compromised instances harder for defenders to shut down. Reporting also described this as abuse of AWS termination protection to sustain ECS-related mining operations.

  6. Nov 2, 20251y ago

    Attackers rapidly deploy miners across EC2 and ECS

    After gaining access, the attackers enumerated victim resources and quickly launched large-scale cryptomining infrastructure using both ECS and EC2, including Spot and On-Demand instances and auto-scaling configurations. They used the Docker Hub image yenik65958/secret, which contained the SBRMiner-MULTI cryptominer.

  7. Nov 2, 20251y ago

    AWS cryptomining campaign begins using stolen IAM credentials

    A coordinated campaign targeting AWS customers began on 2025-11-02, with attackers using compromised IAM credentials rather than exploiting AWS service vulnerabilities. The activity focused on Amazon EC2 and Amazon ECS environments.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Organizations

1 linked
Amazon Web Services

Observables

3 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
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.