The Capital One breach was a 2019 cloud attack that exposed data on about 106 million people. [1]
This guide is for anyone who wants to understand what went wrong at Capital One in plain words. You do not need to run a cloud system to learn from it: if your business stores data with a cloud provider, the same kind of setting mistake can affect you.
In short
- In March 2019, someone reached Capital One data stored in the cloud. It affected about 100 million people in the US and 6 million in Canada [1].
- Capital One said the cause was a "configuration vulnerability", which means a setting that was wrong, not a broken lock.
- The lesson is about software identities: a program's cloud role can open data, so it needs tight limits.
- A US bank regulator fined Capital One $80 million for weak cloud risk checks [2].
What you will learn
- Explain what happened at Capital One in two or three sentences.
- Describe how a program's own cloud access can be misused.
- Spot the warning signs of a cloud setting that gives too much away.
- Ask useful questions about the cloud roles your own systems use.
- Wrong setting (misconfiguration)
- a system set up in a way its owners did not intend, which opens a gap.
- Program's job badge (cloud role)
- a set of permissions a cloud program uses to reach other services.
- Short-lived pass (temporary credentials)
- a key that works for a limited time, handed to a program by the cloud.
What is the Capital One breach?
Think of a doorman who will fetch anything you name from the back office. A stranger asks him for the building's spare pass, and he hands it over. The doorman broke no lock; he simply did what he was set up to do.
That is roughly the shape of what happened at Capital One, a large US bank. In March 2019, an outsider reached data the bank kept in the cloud [1]. The data came mostly from credit card applications made between 2005 and early 2019 [1].
Capital One called the cause a "configuration vulnerability" [1]. In plain words, a setting was wrong. US prosecutors said the person behind it built a tool to find badly set up cloud accounts. They said the tool was then used to get in and download data [3].
Where the comparison stops working: a doorman might notice a stranger. Software that is wrongly set up usually does not notice anything. It keeps following its settings until a person changes them.
Why does it matter?
The breach shows that programs, not only people, carry keys to data. When a program's access is too wide, one mistake can expose a lot.
If you are a bank or shop customer
What could happen: your details sit in a firm's cloud store and are copied without you knowing.
Check this: read any breach letter carefully and use the help it offers, such as credit monitoring.
If you run a small business on the cloud
What could happen: a web tool you use has broader cloud access than it needs, and a wrong setting exposes it.
Check this: ask your supplier which cloud permissions each of your tools has.
If you manage risk or compliance
What could happen: a regulator finds your cloud move went ahead without proper risk checks.
Check this: confirm a risk review is done before services move to the cloud.
What does it look like?
Here is a made-up permissions card for a cloud program. It shows the kind of setting that deserves a second look.
Example only. All values are made up.
Role name: EXAMPLE-web-filter-role (1) Used by: web filter in front of the website (2) Can do: list ALL storage folders (3) Can do: read ALL files in every folder (4) Pass type: short-lived, handed out by cloud (5) Owner: FAKE-team-0000 (no review date) (6)
- The name of the program's job badge.
- The program that wears it. A web filter faces the internet, so it is exposed.
- In a real file, this line would list which storage folders the role may see.
- Reading every file is far more than a web filter needs.
- Short-lived passes help, but anyone who grabs one can use it until it expires.
- No review date means nobody checks whether the access still makes sense.
Why this is risky: if anyone tricks the web filter into handing over its pass, they get everything the role allows.
The safer way: give each program only the folders it truly needs, and review its role on a set date.
How does it work?
Many cloud programs do not use a typed password. Instead, the cloud gives them a role, and the program collects temporary credentials (short-lived keys) for that role [4]. This is a good design, but it means the program itself is a kind of identity, a non-human identity.
- A program is given a role. The role says what the program may do, such as read certain storage folders [4].
- The program collects its pass. It asks a local cloud service, called the instance metadata service, for short-lived keys for that role [4].
- A setting is wrong. If the program can be tricked into making requests for an outsider, the outsider may get those keys too. This trick is called server-side request forgery (SSRF).
- The keys open the data. Whoever holds the keys can do whatever the role allows, until the keys expire.
- Nobody notices at first. At Capital One, the access happened on 22 and 23 March 2019. An outside researcher reported the problem on 17 July 2019 [1].

Our Capital One breach analysis describes the path in more detail. The US indictment says the tool looked for servers with badly set up web application firewalls. These let outside commands reach and run on the servers [6].
Cloud providers have since added protections. On one major cloud, the newer metadata service needs a session token first. That token only works on the machine that made it [5]. This makes simple request tricks much harder.
A worked example
This story is made up to show the idea.
Gus Price runs the website for Alder Bookshop, a small online seller. The site sits in the cloud, with a web filter in front of it to block bad traffic.
After reading about Capital One, Gus asks his cloud supplier, Ula Dalton, a simple question. What can the web filter itself reach?
Ula checks. The filter's role can read every storage folder in the account. That includes the folder with customer orders and addresses. The filter only needs to read its own settings folder.
Gus asks why it was set up that way. Ula explains that a wide role was quicker to set up during launch, and nobody went back to tighten it.
Together they make three changes. First, Ula shrinks the filter's role so it can read only its own settings folder. Second, she switches on the newer, token-based metadata service, so a tricked request is less likely to get the pass. Third, she sets an alert for any program that copies an unusual amount of data.
Gus also adds a review date to every role in the account. Each quarter, Ula lists the roles and asks one question per role: does this program still need this access?
A month later, the alert flags a backup tool reading more than usual. It turns out to be a planned job, but Gus is glad the alert works. He has learned that the risk was not a stolen password. It was a program with more access than its job needed.
Myths and mistakes
| What people think | What is true |
|---|---|
| Breaches always start with a stolen password. | Capital One said no customer credentials were compromised. A wrong setting was the cause.[1] |
| Moving to the cloud makes the provider responsible for everything. | The customer still sets up its own roles and permissions. The regulator faulted Capital One's own risk checks.[2] |
| Short-lived keys are safe, so access size does not matter. | Short-lived keys still open everything the role allows while they work. Keep roles small. |
| A security tool is safe because it is a security tool. | A web filter faces the internet and has its own access. It needs the same care as any program. |
| If data is recovered, there is no harm. | The bank still faced a fine, a lawsuit settlement and the cost of notifying customers.[1][2] |
What can I do this week?
- List the programs in your cloud account that face the internet.
- Ask what each one's role can read, and whether it needs all of it.
- Check that the newer, token-based metadata service is switched on where your provider offers it.
- Set an alert for unusual amounts of data being copied out of storage.
- Give every role a named owner and a review date.
Checklist
- I can explain the Capital One breach as a wrong cloud setting, not a stolen password.
- I know that programs have their own cloud access, through roles.
- Each internet-facing program has the smallest role that does its job.
- The token-based metadata service is on where my provider offers it.
- Someone owns each role and reviews it on a set date.
- We get an alert when unusual amounts of data leave storage.
- We run a risk review before moving a service to the cloud.
- We have a way for outside researchers to report problems to us.
Common questions
How many people did the Capital One breach affect?
About 106 million in total. Capital One said about 100 million people in the US and about 6 million in Canada were affected. Most of the data came from credit card applications, and it included about 140,000 US Social Security numbers.[1]
Were credit card numbers or passwords stolen?
No, according to Capital One. The bank said no credit card account numbers or log-in credentials were compromised. The data did include names, addresses, dates of birth, credit scores and some bank account numbers for secured card customers.[1]
How was the breach found?
An outside security researcher reported it. Capital One said the report came through its Responsible Disclosure Program on 17 July 2019. Its own investigation confirmed the incident two days later, nearly four months after the data was accessed.[1]
What happened after the breach?
There were legal and regulatory results. A US bank regulator fined Capital One $80 million in 2020 for weak risk checks before moving to the cloud. A court approved a customer settlement in 2022, and the person responsible was convicted that year.[1][2][3]
Could this happen to a small business?
Yes, the same kind of mistake can happen at any size. Any program in a cloud account can carry a role. If that role is too wide and a setting is wrong, data can leak. Small roles and regular reviews lower the risk.
Where next?
Ready for the detail? Read the practitioner guide: SSRF Prevention Guide. It goes further into how request tricks reach internal services, how to block them in code and network design, and how to test for them.
Also useful:
- Server-Side Request Forgery for Beginners
- Cloud Instance Metadata for Beginners
- EC2 Instance Metadata Service Hardening Guide
Related NHI Mgmt Group resources: Cloud Misconfigurations for Beginners, Cloud Misconfiguration Guide and Non-Human Identities for Beginners.
Key terms
- Cloud misconfiguration
- A cloud setting left in a state its owners did not intend, which can expose data or access.
- Cloud role
- A set of permissions a program or person takes on to use cloud services, often with short-lived keys.
- AWS IAM role
- An identity on one major cloud that a program can take on to get a defined set of permissions.
- Instance metadata service
- A local cloud service a virtual machine asks for its own settings and, where set up, its short-lived role keys.
- Server-side request forgery
- A trick where a server is fooled into making requests for an outsider, sometimes reaching internal services.
- Web application firewall
- A filter that sits in front of a website and blocks harmful web traffic.
- Least privilege
- Giving each person or program only the access it needs, for only as long as it needs it.
Sources and further reading
- Capital One, "2019 Capital One Cyber Incident: What Happened", company statement, updated 22 April 2022. https://www.capitalone.com/digital/facts2019/ (accessed 3 Dec 2026).
- Office of the Comptroller of the Currency, "OCC Assesses $80 Million Civil Money Penalty Against Capital One", news release NR 2020-101, 6 August 2020. https://www.occ.treas.gov/news-issuances/news-releases/2020/nr-occ-2020-101.html (accessed 3 Dec 2026).
- US Attorney's Office, Western District of Washington, "Former Seattle tech worker convicted of wire fraud and computer intrusions", 17 June 2022. https://www.justice.gov/usao-wdwa/pr/former-seattle-tech-worker-convicted-wire-fraud-and-computer-intrusions (accessed 3 Dec 2026).
- Amazon Web Services, "IAM roles for Amazon EC2", Amazon EC2 User Guide. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html (accessed 3 Dec 2026).
- Amazon Web Services, "Configure the Instance Metadata Service options", Amazon EC2 User Guide. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html (accessed 3 Dec 2026).
- US District Court, Western District of Washington, "United States v. Paige A. Thompson, Superseding Indictment", case CR19-0159 RSL, 17 June 2021. https://www.justice.gov/usao-wdwa/page/file/1405446/dl?inline (accessed 3 Dec 2026).