# How attackers maintained persistence in AWS after stealing credentials

DevFeed: [How attackers maintained persistence in AWS after stealing credentials](<https://devfeed.tech/articles/how-attackers-maintained-persistence-in-aws-after-stealing-credentials-87045.md>)

Original publisher: [Read original article](<https://1password.com/blog/aws-credential-theft-persistence>)

Author: info@1password.com (Gabriel Avner)

Published: 2026-10-14T00:00:00Z

Content type: article

Language: en

Sources: [1Password](<https://devfeed.tech/sources/blog-on-1password-blog.md>)

Topics: [credential-based attacks](<https://devfeed.tech/topics/credential-based-attacks.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [identity and access management](<https://devfeed.tech/topics/identity-and-access-management.md>), [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>), [aws inspector](<https://devfeed.tech/topics/aws-inspector.md>), [Amazon GuardDuty](<https://devfeed.tech/topics/amazon-guardduty.md>), [fake account fraud](<https://devfeed.tech/topics/fake-account-fraud.md>), [Nitro Isolation Engine](<https://devfeed.tech/topics/nitro-isolation-engine.md>)

Tags: [1password](<https://devfeed.tech/tags/1password.md>), [agent-identity](<https://devfeed.tech/tags/agent-identity.md>), [ai](<https://devfeed.tech/tags/ai.md>), [aws](<https://devfeed.tech/tags/aws.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [cyberattack](<https://devfeed.tech/tags/cyberattack.md>), [iam](<https://devfeed.tech/tags/iam.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [security](<https://devfeed.tech/tags/security.md>), [zero-standing-privilege](<https://devfeed.tech/tags/zero-standing-privilege.md>)

## AI overview

The article describes an AWS cryptomining campaign in which attackers used stolen IAM credentials to provision EC2 and ECS resources, create roles, and make instances harder to terminate. It recommends Zero Standing Privilege controls such as temporary, task-scoped access and presents 1Password Privileged Access as a way to implement them.

## Source excerpt

In the cloud, attackers don't need to break in. They just need a working set of keys. Several AWS customers learned this the hard way when threat actors used compromised IAM credentials to deploy a rapid cryptomining campaign across EC2 and ECS environments. The incident didn't rely on vulnerabilities or sophisticated exploitation; it simply relied on valid credentials and overly permissive access. Below is a clear breakdown of what happened, what matters, and how organizations can strengthen their defenses using a Zero Standing Privilege (ZSP) approach. What happened during the AWS cyberattack When an attack of this scale occurs, it's important to understand how attackers gained access and what they did with it. How the attackers gained initial access According to reporting from Dark Reading, as well as AWS's own analysis, attackers used stolen IAM credentials to authenticate into customer environments and immediately begin provisioning cryptomining workloads. The campaign was active across multiple AWS customers, who were directly notified. AWS also confirmed this was not the result of a flaw in its infrastructure. The privileges attached to the compromised identity permitted every action the attackers took. Once inside, the attackers: Targeted EC2 and ECS resources to spin up mining infrastructure Used automation to deploy workloads within about 10 minutes of initial access Leveraged AWS APIs to create new roles, extending their control Enabled persistence by modifying instance attributes to make resources harder to terminate This combination of legitimate access and rapid provisioning made the campaign highly effective and very difficult to stop in its early stages. For full details, you can read the AWS security blog here. How the attackers stayed in control After gaining access, the attackers created two new IAM roles using the victim's own permissions to achieve their goals and persistence: A service-linked role for Auto Scaling groups A Lambda execution role