Notes
Public storage
The most famous pattern is the public storage bucket. A bucket is set public, or given a loose policy, and suddenly anyone on the internet can read it, no hacking, just a URL. This single mistake has leaked billions of records across many well-known companies. The cause is usually a config choice or a careless change, the kind of thing infrastructure scanning and posture tools catch. The storage episode covers how to prevent it, including the account-wide block-public-access settings.
- a storage bucket set public, or with loose access policy
- anyone on the internet reads the data; no hacking needed
- has leaked billions of records across many firms
- cause: a config default or a careless change
- covered in the storage episode
Leaked keys
The second pattern is a leaked access key. A long-lived cloud key ends up in a git repository, a log file or on a laptop, and because bots constantly scan public code, a leaked key is often used within minutes. If that key is over-permissioned, and they usually are, the attacker has your whole account. This is why the DevSecOps part pushed so hard on secret scanning and, above all, short-lived credentials and workload identity, so there is no static key to leak. It is one of the most common entry points there is.
- a long-lived access key in git, a log, or a laptop
- bots scan public code and use keys within minutes
- over-permissioned keys = full account access
- fix: short-lived creds, workload identity, secret scanning, no static keys
Over-broad IAM
The third pattern is over-broad identity and access. Identities, users, roles, service accounts, are routinely granted far more permission than they need, often wildcards or admin. So when one is compromised, the attacker reaches everything, and can often chain permissions to escalate to full admin. Permissions are the real perimeter of a cloud account. The two identity episodes that follow cover least privilege and the escalation paths attackers use, because this is where a small foothold becomes a full breach.
- identities granted far more than they need (wildcards, admin)
- one compromised identity then reaches everything
- privilege escalation: chain permissions to become admin
- fix: least privilege, remove unused permissions (CIEM)
- the identity episodes cover this
SSRF to metadata
The fourth pattern is more technical: server-side request forgery against the metadata service. Every cloud instance has a metadata endpoint that hands the workload its own credentials. If your app has an SSRF flaw, an attacker makes it fetch that metadata URL and steals the credentials the cloud gave your server. The Capital One breach, one of the largest ever, worked this way. It has its own episode, because the fix combines SSRF defence in your code with the hardened metadata service.
- cloud VMs/pods have a metadata service that hands out their credentials
- an SSRF bug makes the server fetch that metadata URL
- the attacker gets the workload's cloud credentials
- the Capital One breach worked this way
- fixed by IMDSv2 and SSRF defence
Exposed services
The fifth pattern is a service accidentally exposed to the internet: a database, a cache like Redis, a dashboard or an admin panel reachable from anywhere, often with no password or a default one. Internet-wide scanners find these within minutes. The cause is usually an open security group or a public IP where there should be none. The network episode covers the defences, private by default, tight security groups, private endpoints, so your data stores are never reachable from the open internet.
- databases, caches, dashboards, admin panels reachable from anywhere
- often no password, or a default one found instantly by Shodan- style scanners
- fix: private by default, security groups, private endpoints
Weak accounts
The sixth pattern is weak account security. No multi-factor authentication on users or, worst of all, the root account. The all-powerful root account used for daily work instead of being locked away. Console passwords phished or reused from another breach. And often no logging, so nobody notices the intrusion. These are basic hygiene failures that nonetheless end companies. The governance and detection episodes cover enforcing MFA everywhere, protecting root, and turning on the logs that let you see an attack.
- no MFA on users or the root account
- root/owner account used for daily work
- phished or reused console passwords
- no logging, so nobody notices
- fix: MFA everywhere, lock away root, log everything
They chain
Real breaches rarely use just one pattern; they chain them. A leaked key or an SSRF flaw gives initial cloud credentials. Over-broad permissions let the attacker escalate to admin. As admin, they read every bucket, database and secret. And weak logging means it goes undetected for weeks. Each link is one of the patterns from this episode, which is why defence in depth matters: breaking any single link, least privilege, no static keys, logging, stops the chain.
- leaked key or SSRF -> cloud credentials
- over-broad IAM -> escalate to admin
- admin -> read every bucket, database, secret
- no logging -> undetected for weeks
- each link is one of the patterns above
Say it like this
In the interview: cloud breaches come from a short, recurring list. Public storage buckets. Leaked access keys, found by bots within minutes. Over-broad permissions that let one compromised identity escalate to admin. SSRF against the metadata service to steal credentials, as in Capital One. Services exposed to the internet. And weak account security, no MFA, a misused root account, no logging. They chain, so I defend in depth: least privilege, short-lived credentials, private networking, and logging.
- "A short list: public storage
- buckets, leaked access keys, over-broad IAM and privilege
- escalation, SSRF to the metadata service, services
- exposed to the internet, and weak account security with no MFA. They chain, so I defend
- in depth: least privilege, no static keys, private, logged."