← All PBQs

Chapter 7

Dorothy Gale Secures the Emerald City Cloud

Dorothy Gale, Cloud Architect at Emerald City Solutions, has just inherited a sprawling AWS environment built rapidly during the company's pandemic-era growth. The footprint includes managed Kubernetes clusters running customer workloads, a fleet of Lambda functions stitched together by API Gateway, an S3 bucket holding eight years of customer data, and a half-dozen SaaS apps that the marketing team adopted without telling IT.

Last quarter brought two scares. First, a security researcher demonstrated that a misconfigured Lambda IAM role had read access to the customer S3 bucket — and the function had a server-side request forgery flaw that an attacker could have exploited to pivot. (The Capital One breach had used a strikingly similar pattern.) Second, an external auditor flagged that the bucket was "public" — though it later turned out only the bucket policy was misread; objects inside had no public ACLs. Either way, the auditor was unimpressed.

Dorothy now has board backing to tighten things up. Her plan covers responsibility boundaries, container and serverless hardening, API protections, governance of shadow SaaS, customer-managed encryption, and a layered control strategy that includes detective and preventative components — not just preventative.

External Cloud Audit — Emerald City Solutions, engagement EC-Q3

Auditor: Glinda Northrop, OSCP/OSCE. Findings 1–6 of 6. Distribution: CISO, Cloud Architect, Board Audit Committee.

[HIGH] F-1. Lambda function customer-search-v3 holds s3:GetObject on * — not scoped to the /customer/ prefix — and the /lookup endpoint exposes a confirmed SSRF vector. The pre-conditions for a Capital-One-shaped exfiltration are present.

[HIGH] F-2. EKS cluster prod-east-1 has no cluster-side check on which container images may be deployed; unsigned, unscanned images have been admitted. Pods are running with node-level IAM credentials rather than per-pod workload identities.

[HIGH] F-3. API Gateway in front of the Lambda fleet authenticates clients with a static API key in the URL query string. No per-client throttling or quota configured.

[MED] F-4. Customer bucket cust-data-prod is encrypted with the default AWS-managed KMS key. The enterprise contract signed 2026-04 with Munchkin Industries stipulates that Emerald City, not AWS, controls the encryption keys (policy, rotation, and revocation).

[MED] F-5. The Marketing team has onboarded four SaaS apps (Asana, Calendly, Loom, Notion) without IT registration. Customer data has already flowed into at least two of these tenants.

[INFO] F-6. Bucket public-exposure regression reported by internal auditor on 2026-08-14 — on review, object ACLs were never actually public (bucket-policy misread). No continuous configuration-drift detection is in place; the next check is the annual external audit.

Map each finding (F-1 through F-6) to Dorothy's planned control, then click Check answers.

First, Dorothy reminds the team that under the , AWS is responsible for security of the cloud, while every finding in Glinda's report is security in the cloud — Emerald City's responsibility.

F-2 is fixed by requiring every container image to pass through an before deployment, and by giving each pod its own rather than inheriting node credentials.

F-1 is the textbook violation of the principle — the Lambda role needs scoping to just the prefixes it actually uses. F-3 is fixed by enforcing at the API Gateway for client-to-API authorization, plus to blunt abuse and runaway costs.

F-5 — the shadow SaaS — is addressed with a in API mode that can inspect data already resident in those tenants and produce a Shadow IT report.

F-4 is fixed by switching to so Emerald City can revoke access cryptographically without AWS's involvement. F-6 is fixed by turning on — a continuous configuration-monitoring service — rather than waiting for next year's audit.

Finally, when customer data is deleted from S3, Dorothy must address the risk that fragments of the data remain recoverable from underlying storage media. This residual-data risk is called ; the strongest mitigation is cryptographic erasure (destroying the customer-managed key), backed by contractual provider attestation of secure deletion procedures.