Skip to content

Back to the catalog

dfir.chwriteup

AWS Ransomware

A DFIR case study of an AWS S3 extortion incident where an attacker deleted a customer's buckets after reconnaissance (GetSendQuota, ListBuckets, GetBucketVersioning, etc.) and left a Bitcoin ransom note bundled with a Linux 'recovery' binary. Analysis with strace and Ghidra reveals the recovery tool is a complete fake: it never contacts AWS or the network, instead sleeping via clock_nanosleep and fabricating account/bucket details from a bundled aws.txt file to pressure the victim into paying. The post also shares specific CloudTrail event names defenders should monitor to detect similar pre-deletion recon activity.

TL;DR DFIR breakdown of an AWS S3 bucket-deletion ransom scheme whose bundled 'recovery' binary is proven via strace/Ghidra to be a fake that never touches the network.
Document

What it is

A DFIR.ch incident write-up of a real AWS S3 ransomware case (activity dated January–February 2024). The value beyond the summary is the concrete CloudTrail event sequence a defender can alert on, and the ~18-day dwell time between reconnaissance and destruction.

How it works

The attacker worked entirely through the AWS API against an account they already had credentials for. The recon-to-destruction chain, all visible in CloudTrail:

flowchart LR
  A[Recon Jan 18<br/>GetSendQuota, ListBuckets] --> B[Enumerate bucket safety<br/>versioning/replication/logging]
  B --> C[DeleteBucket Feb 5<br/>all buckets erased]
  C --> D[Ransom note + fake<br/>recovery binary left behind]

Before deleting, the attacker checked whether recovery would be possible — reading GetBucketVersioning (versioning was not enabled), GetBucketReplication, GetBucketObjectLockConfiguration, GetBucketLogging, GetBucketRequestPayment, and GetAccelerateConfiguration. Only then did they issue DeleteBucket. The claim that data was "downloaded and backed up" is unsupported by the logs — the note is extortion pressure, and the bundled recovery binary is a scam (as the summary states).

Preconditions / Affected

Any AWS account where an attacker has obtained credentials with S3 and SES read access plus s3:DeleteBucket. Buckets without versioning or Object Lock are unrecoverable after deletion — that is exactly what the attacker verified before acting.

What to do

  • Alert on the CloudTrail events above. The recon pair GetSendQuota + ListBuckets is an early signal; the GetBucket* configuration reads immediately preceding DeleteBucket are a strong pre-destruction indicator. The post points to an Invictus-IR CSV of noteworthy cloud-ransomware CloudTrail events for building this monitoring.
  • Enable S3 Versioning and Object Lock so DeleteBucket/object deletion is recoverable — the absence of versioning is precisely what made this destructive.
  • Ignore the recovery binary. strace shows it only clock_nanosleeps for random durations and reads fabricated account/file details from a bundled aws.txt; it performs no restore. Do not run it or pay.
  • Note the 18-day gap (recon Jan 18 → deletion Feb 5): there is a real detection window here if the recon events are monitored.

Caveats

The exfiltration claim is not corroborated by the logs shown; the authors treat it as bluff. The binary analysis is reproduced by the authors via strace and matches a variant uploaded to VirusTotal (submitted Jan 29, 2024, from France), but the "downloaded your data" assertion remains the attacker's unverified word.

Organisations named here

  • Invictus-IR

Technologies named here

  • Amazon S3
  • CloudTrail
  • AWS SES
  • strace
  • Ghidra
  • AWS CLI
  • VirusTotal
  • ELF DIGEST
  • Invictus-IR CSV of CloudTrail events
  • AWS
  • Linux

Techniques named here

  • Cloud reconnaissance via API calls
  • Bucket configuration enumeration pre-deletion
  • Data destruction / bucket deletion
  • Ransom note deployment
  • Fake recovery tool as psychological pressure
  • Archive padding to appear legitimate
  • Randomized/simulated delay via sleepRandom
  • Fabricated account/bucket data from local file

Threat actors named here

  • Unidentified AWS ransomware attacker/group