Join our Newsletter — 33% off our NHI Course

What should teams do first when they suspect ransomware activity in AWS accounts?

Teams should first identify which identities had the privileges to encrypt data, change key policies, stop logging, or alter S3 protections. That narrows the likely attack path and helps separate normal administrative activity from malicious behavior. From there, defenders can review CloudTrail events, isolate impacted identities, and confirm whether data access or logging controls were manipulated.

What to do first when AWS ransomware is suspected

The first move is to answer a narrow question: which AWS identities could have encrypted data, changed key policy, disabled logging, or weakened S3 protections? That identity-and-permission view usually separates routine administration from a real compromise faster than scanning every workload. It also helps defenders avoid wasting time on symptoms while the attacker is still active across accounts or roles. Current incident guidance suggests preserving CloudTrail, IAM, KMS, and S3 evidence as early as possible, because the window to reconstruct the attack path can close quickly once privileges are reused or logs are altered.

For AWS-specific attack patterns, the most useful context is often not the malware itself but the trust path the adversary used. NHIMG research on Codefinger AWS S3 ransomware attack shows why bucket controls and object encryption paths matter so much in cloud incidents. In practice, many teams discover the blast radius only after the attacker has already changed the very controls needed to prove what happened.

How AWS ransomware activity is typically confirmed

Once the likely identities are identified, teams should inspect the sequence of control-plane actions that could turn ordinary access into destructive impact. In AWS, that means reviewing CloudTrail for role assumptions, privilege escalation, KMS key-policy changes, S3 public access or bucket-policy changes, logging suppression, and bulk encryption or deletion activity. The key question is not simply whether data was touched, but whether an identity had the authority to reshape protections around that data. If logging was interrupted, defenders should treat that as part of the incident, not as a side effect.

A practical response also depends on separating read-only access from write-capable access. An identity that can list buckets is not the same as one that can alter encryption settings, rotate keys, or disable versioning. Use that distinction to narrow whether the event is opportunistic misuse, stolen long-lived credentials, or a role chain that gave broader control than intended. AWS incident analysis is strongest when identity, key management, and storage control evidence are reviewed together rather than in isolation.

  • Check which IAM users, roles, access keys, and assumed roles touched KMS, S3, CloudTrail, and security logging.
  • Confirm whether key policies, bucket policies, versioning, or public access blocks were changed.
  • Preserve log sources before making broad containment moves that could overwrite evidence.

External guidance such as the NIST SP 800-53 Rev 5 Security and Privacy Controls is useful here because it frames logging, access enforcement, and configuration integrity as separate control concerns. These controls tend to break down when the attacker has both the ability to modify policies and the ability to suppress the signals that would prove it.

Where the common failure points and trade-offs appear

Fast containment in AWS often creates a trade-off: the quicker teams shut down access, the more likely they are to interrupt evidence collection or disrupt legitimate services that still need to be understood. That makes the first containment decision more about scope control than about immediate platform-wide shutdown. The best practice is evolving toward narrowly isolating the identities, sessions, and resources most likely involved rather than freezing the entire account unless the compromise is already broadly established.

One useful indicator is whether the suspected identity had reach beyond a single application or bucket. When the same principal can alter keys, logging, and storage protections, the incident is no longer just about encrypted data. It becomes a trust-boundary failure, because the attacker can hide, persist, and expand access while defenders are still trying to verify what changed. AWS incidents are also more dangerous when credential age is long and revocation hygiene is weak, because stolen access can remain usable longer than teams expect. NHIMG reporting on the broader NHI landscape shows why this matters: only 20% of organisations have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them.

For broader threat context, the ENISA Threat Landscape helps place cloud ransomware inside a wider pattern of identity abuse, privilege misuse, and control evasion. The main failure point is usually not encryption alone; it is the attacker’s ability to turn valid access into durable control before defenders isolate it.

Risk and Threat Considerations

A suspected AWS ransomware event carries both exposure risk and adversarial risk. The immediate danger is not just encrypted data, but loss of control over the mechanisms that would normally contain, explain, and recover the incident, especially if the actor can alter KMS policy, disable logging, or weaken S3 protections.

Failure mechanism: Attackers commonly abuse valid AWS identities, then use those privileges to change storage protections, suppress telemetry, or broaden access through policy edits and role chaining. That lets them obscure the attack path while increasing the impact of encryption or deletion.

Impact: Teams can lose visibility into what changed, which identities were used, and which data sets were touched, making recovery slower and increasing the chance of recurring access, wider blast radius, and disputed data integrity.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 — Identity Inventory and Ownership AWS ransomware hinges on which machine identities can act on data and controls.
Recommendation — Inventory affected AWS identities and assign ownership before broader containment.
CIS Controls v8 6 — Access Control Management Suspected ransomware depends on excess or misused access paths in AWS.
Recommendation — Review and revoke suspicious access paths and privileges immediately.
MITRE ATT&CK T1486 — Data Encrypted for Impact The question concerns ransomware impact mechanics against cloud data.
Recommendation — Map observed activity to T1486 and confirm whether encryption for impact occurred.
NIST CSF 2.0 DE.CM-1 — Monitoring for Unauthorized Activity Teams must validate suspicious cloud control-plane changes and logging loss.
PR.AC-4 — Access Permissions Management The response begins with identifying who had destructive AWS permissions.
Recommendation — Correlate CloudTrail, IAM, and S3 events to confirm unauthorized activity. Restrict and review permissions that can alter encryption, logging, or storage controls.

Practitioner Guidance

What to prioritise: Treat identity reach as the first containment boundary. If a principal can touch KMS, S3 protections, or logging, assess that principal before expanding to workloads or subnets, because the destructive path in AWS often runs through control-plane permissions rather than through a single infected host.

What to verify: Confirm whether the suspected identities were allowed to change encryption, bucket policy, versioning, or CloudTrail delivery, and verify whether those actions actually occurred. If the control state changed, assume the attacker may also have altered recovery assumptions and evidence quality.

Decision rule: If the same identity can both modify protection controls and access data, contain the identity first and preserve evidence second only where possible. If logging integrity is already doubtful, escalate the incident as a governance and recovery problem, not only as a malware event.

Practitioner takeaway: In AWS ransomware cases, the fastest path to clarity is usually to map who could change trust and visibility, not just who could read or encrypt data.