SECURITY ENGINEERING · PART 10 · CLOUD SECURITY · BASICS · 136 OF 229

Top Cloud Security Breaches and Their Causes

Cloud breaches rhyme. This episode walks the handful of patterns behind almost all of them: public storage buckets, leaked access keys, over-broad IAM and privilege escalation, the metadata service and SSRF, misconfigured services exposed to the internet, and weak account security. Each pattern maps to a later episode, so this is the map of what cloud security actually defends against.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. 14
  14. 15
  15. 16
  16. 17
  17. 18
  18. 19
  19. 20
  20. 21
  21. 22
  22. 23
  23. 24
  24. 25
  25. 26
  26. 27
  27. 28
  28. 29
  29. 30
  30. 31
  31. 32
  32. 33
  33. 34
  34. 35
  35. 36
  36. 37
  37. 38
  38. 39
  39. 40
  40. 41
  41. 42
  42. 43
  43. 44
  44. 45
  45. 46
  46. 47
  47. 48
  48. 49
  49. 50
  50. 51
  51. 52
  52. 53
  53. 54
  54. 55
  55. 56
  56. 57
  57. 58
  58. 59
  59. 60
  60. 61
  61. 62
  62. 63
  63. 64
  64. 106
  65. 107
  66. 108
  67. 109
  68. 110
  69. 111
  70. 112
  71. 113
  72. 114
  73. 115
  74. 116
  75. 117
  76. 118
  77. 119
  78. 120
  79. 121
  80. 122
  81. 123
  82. 124
  83. 125
  84. 126
  85. 127
  86. 128
  87. 129
  88. 130
  89. 131
  90. 132
  91. 133
  92. 134
  93. 135
  94. 136
  95. 137
  96. 138
  97. 139
  98. 140
  99. 141
  100. 142
  101. 143
  102. 144
1 / 10

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Public buckets
  • leaked keys
  • over-broad IAM
  • SSRF to metadata
  • exposed services
  • weak accounts
  • they chain

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.

Public buckets
  • 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.

Leaked credentials
  • 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.

Excess permissions
  • 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.

The metadata attack
  • 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.

Exposed to the 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.

Account security
  • 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.

A typical 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.

In the interview
  • "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."

Interview questions

Q1What causes most cloud breaches?

A small set of customer-side misconfigurations: public storage buckets, leaked access keys, over-broad IAM permissions and privilege escalation, SSRF against the metadata service, services exposed to the internet, and weak account security such as missing MFA. Provider failures are rare.

Q2Why are public storage buckets so dangerous?

Because a bucket set public or given a loose policy lets anyone on the internet read its contents with just a URL, no exploitation required. This single misconfiguration has exposed billions of records, and it is prevented by account-wide block-public-access settings and posture scanning.

Q3Why are leaked cloud access keys exploited so fast?

Automated bots continuously scan public code and logs for credentials and often use a leaked key within minutes. Because such keys are frequently over-permissioned, one leak can grant full account access, which is why short-lived credentials and workload identity are preferred.

Q4What is the role of over-broad IAM in breaches?

Excess permissions mean a single compromised identity can reach far more than it should and often escalate to administrator by chaining permissions. Least privilege and removing unused permissions limit how far an initial compromise can spread.

Q5How did the Capital One breach happen?

An attacker exploited a server-side request forgery vulnerability to make a server query the cloud metadata service, which returned the workload's credentials. With those over-permissioned credentials, the attacker accessed storage containing large amounts of customer data.

Q6Why do exposed services lead to breaches?

Databases, caches, dashboards and admin panels accidentally reachable from the internet, often with weak or default credentials, are found within minutes by internet-wide scanners. Keeping such services private by default with tight network controls prevents it.

Q7Why does account security like MFA matter so much?

Without MFA, phished or reused passwords grant console access, and a misused all-powerful root account can mean total compromise. Combined with missing logging, intrusions go unnoticed. Enforcing MFA, protecting root and enabling logs are foundational.

Q8Why is defence in depth important against cloud breaches?

Because real breaches chain multiple patterns, for example a leaked key, then privilege escalation, then data access, undetected due to poor logging. Strengthening any single link, least privilege, no static keys, private networking, logging, can break the chain and stop the breach.