Chapter 7
Dorothy Reviews the Emerald City Breach (Diagnostic)
Seven months after Dorothy presented her audit-response plan to the board, the board approved 'phased remediation' — a polite phrase for we'll do the easy ones first. The CASB rollout shipped. The CSPM didn't. The Lambda least-privilege refactor was in flight; the customer-managed-keys migration was scheduled for Q4. Then the news broke.
On a Saturday morning Glinda Northrop forwarded a tip: a sample of Emerald City customer records had appeared for sale on a forum. By Monday afternoon Dorothy was estimating 14.2 million records exposed — the entire cust-data-prod bucket — and had a tentative dwell time of eleven hours. CloudTrail had recorded every step; nobody had been watching it. The board's first question to Dorothy was the predictable one: Isn't this AWS's fault?
It was not.
Post-incident report — Emerald City Solutions cloud breach. Author: D. Gale, Cloud Architect. Status: draft for board and Munchkin Industries notification. Do not forward.
Timeline (from CloudTrail, reconstructed)
- 04:11 External request to
/lookup?url=...triggers the known SSRF incustomer-search-v3. The function's HTTP client follows afile://URL to/proc/self/environand returns the function's environment — including the execution role's temporary credentials (AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN) — in the HTTP response. - 04:14 Attacker begins using the stolen temporary credentials from an IP address outside AWS. CloudTrail attributes every call to the Lambda role's session.
- 04:18
ListObjectsV2issued againstcust-data-prod. Lambda role still hass3:GetObjecton*— the refactor was in flight, not in production. - 04:21 – 15:09 14,217,883 objects pulled (each
GetObjectcaptured as a CloudTrail S3 data event). Records remain encrypted on the wire butkms:Decryptis implicitly granted to the same role; decryption is seamless and silent. - Saturday a.m. Sample appears on a dark-web forum. Glinda Northrop forwards the tip.
Contributing failures
- The Lambda role still held
s3:GetObjecton*. The least-privilege refactor was real work, in progress, not production. - The bucket was encrypted with the default AWS-managed KMS key. Because the same IAM principal had both read and decrypt rights, the encryption protected against literally no one in the attack chain.
- CloudTrail recorded every step. No CSPM deployment, no behavioral alert against anomalous S3 bulk reads, no rate limit on outbound object retrievals. The data exited at AWS line rate over eleven hours.
- The SSRF vector itself was a known finding from the Q3 audit. The patch was in the application-team backlog at priority 'P3 — fix this quarter.'
- Marketing's shadow SaaS (Notion, Loom) did not contain this dataset, but the team's habit of moving data into unmanaged tenants meant several quarters of incident-response staff hours went into proving a negative before Dorothy could focus on the actual exfil path.
What the board needs to hear
Every line on the contributing-failures list lives on Emerald City's side of the line. The infrastructure operated as designed.
For each contributing failure in Dorothy's loss report, name the specific control or principle that failed.