Capital One 2019: a misconfigured web application firewall and 106 million credit applications
Between March 12 and July 17, 2019 an outsider used a misconfigured web application firewall to make Capital One's cloud server run commands and read storage buckets. About 106 million people in the US and Canada were affected. Capital One did not find it. A stranger who saw the stolen data posted on GitHub emailed the company's disclosure address on July 17. The OCC later fined the bank $80 million and said it had not assessed risk properly before moving to the public cloud.
Background
Capital One is a US bank and credit card issuer. Like many large banks it had been moving significant technology operations to a public cloud environment. Its credit card application data, collected from people who applied between 2005 and 2019, was held in cloud storage.
The person charged, Paige Thompson, was a former software engineer at a Seattle technology company. Prosecutors and press reports said she had worked at Amazon Web Services until about three years before the arrest. Capital One's data was hosted with AWS, which is a fact about the hosting arrangement and not a statement about where the flaw lay.
Cloud intrusion path, stage by stage
What actually happened
According to the Department of Justice, the intrusion went through a misconfigured web application firewall that enabled access to the data. The criminal complaint says a firewall misconfiguration permitted commands to reach and be executed by a Capital One cloud server, which gave access to folders or buckets of data. The complaint puts the access window between March 12 and July 17, 2019.
Capital One learned of it on July 17, 2019, when a GitHub user who saw a post by the accused alerted the bank through its responsible-disclosure email address. The post contained the IP address of a specific server and, according to GovInfoSecurity, three commands and a list of about 700 folders. Capital One investigated and determined on July 19 that there had been an intrusion. It contacted the FBI the same day, according to the DOJ.
The FBI traced the GitHub account, which carried the accused's full name, and on July 29, 2019 agents arrested Paige Thompson and executed a search warrant, seizing storage devices containing a copy of the data. Krebs on Security reported nearly 30 GB of credit application data. Capital One said about 100 million people in the US and 6 million in Canada were affected. The data covered applications filed between 2005 and 2019 and included names, postal codes, birth dates and self-reported income. It also included credit scores, limits, balances, payment history and fragments of transaction history from 2016 to 2018. About 140,000 Social Security numbers were involved, according to later reporting. On August 6, 2020 the OCC announced an $80 million penalty and the Federal Reserve issued a cease and desist order with no monetary penalty.
Root cause
- A misconfigured web application firewall allowed commands to reach and be executed by a Capital One cloud server, which gave access to buckets of data (DOJ and the criminal complaint).
- The OCC found that Capital One failed to establish effective risk assessment processes before migrating significant IT operations to the public cloud, and failed to correct deficiencies in a timely manner (OCC consent order, reported by CBS, Banking Dive and SC Magazine).
- The OCC also found the bank failed to identify numerous control weaknesses and gaps in the cloud operating environment.
- The bank learned of the intrusion from an outside tip on July 17, 2019, not from its own monitoring.
- Commentators, including K2 Cyber Security quoted by SC Magazine, describe the breach as a server-side request forgery that exploited the interaction of two components of the application infrastructure. This is an expert characterization, not a statement in the DOJ release.
- Commonly repeated accounts say the attacker obtained temporary cloud credentials from the instance metadata service and used a role with broad storage permissions. This is not confirmed in the sources reviewed for this study.
- Why activity between March 12 and July 17 did not trigger an alert is not stated in the sources reviewed. The OCC's finding on control gaps suggests the monitoring was inadequate but does not give detail.
Timeline
Detection
An outside person who saw the accused's GitHub post emailed Capital One's responsible-disclosure address on July 17, 2019. The bank's own investigation then confirmed the intrusion on July 19.
About 4 months (Mar 12 → Jul 17)
- Unusual commands executed through the firewall to a cloud server over four months.
- Large reads from storage buckets by an identity or address that did not normally read them.
- The accused's own public posts, which the bank did not find on its own.
What to monitor for in your own environment
Cloud role credentials used from an address outside the expected network
Cloud audit trail such as AWS CloudTrail, with GuardDuty-style anomaly detectionA server requesting its own cloud metadata service in response to web input
WAF logs and host or VPC flow logsMass listing and reading of buckets by a role that does not usually do so
Storage access logs and CloudTrail data eventsSensitive data or company identifiers appearing on public code-sharing sites
External monitoring of GitHub and paste sitesReview of WAF rules and configuration drift against a baseline
Configuration management and cloud posture toolingWhere it could have been caught
Containment, eradication & recovery
Containment
Jul 17 – 19, 2019- Capital One patched the configuration vulnerability after learning of it on July 17.
- It began an internal investigation and determined on July 19 that there was unauthorized access.
- It contacted the FBI on July 19.
Eradication
July 2019- The FBI identified the accused and, on July 29, executed a search warrant and seized storage devices holding a copy of the data.
- Capital One said the controls it had in place allowed it to secure the data, in a statement quoted by Banking Dive.
Recovery
Jul 2019 – Aug 2020- Capital One announced the breach publicly on July 29 and notified affected individuals.
- The OCC said it positively considered the bank's customer notification and remediation efforts.
- Under the consent order the bank formed a compliance committee and risk management plans, and the Fed required a written board plan within 90 days.
Security control analysis
The DOJ states the intrusion occurred through a misconfigured web application firewall.
The OCC found the bank failed to establish effective risk assessment processes before moving significant operations to the public cloud.
The OCC said the bank failed to correct deficiencies in a timely manner.
Reports describe a broad role, but the sources reviewed do not confirm what permissions the server's role held.
Four months of access were not caught by the bank. An outside tip surfaced it.
The bank's disclosure mailbox received the tip and the bank acted within two days.
The OCC said it positively considered the bank's customer notification and remediation.
Controls that would have prevented or limited this
A misconfiguration that let commands reach a server would have been flagged against the baseline.
The gaps in the cloud operating environment would have been found before production data moved.
A server reached through the firewall could not have listed or read large numbers of buckets.
Four months of reads would have produced alerts well before an outside tip.
Known deficiencies would have been fixed or formally accepted within a set time.
Blast radius
People affected
- About 100 million in the US and 6 million in Canada
- More than 106 million accounts per OCC-related reporting
- About 140,000 Social Security numbers (later reporting)
Data types
- Credit card applications from 2005 to 2019
- Names, postal codes, birth dates, self-reported income
- Credit scores, limits, balances and payment history
- Fragments of transaction history from 2016 to 2018
Capital One
- $80 million OCC penalty
- Fed cease and desist order, no monetary penalty
- Board-level risk plan required within 90 days
The accused
- Arrested July 29, 2019
- Charged with computer fraud and abuse
- Later tried in federal court (outcome not re-verified for this study)
From first access to arrest
What they got right
Capital One had a responsible-disclosure mailbox and acted on the tip within two days.
It contacted the FBI the day it confirmed the intrusion.
It notified customers, and the OCC said it positively considered those efforts.
A copy of the data was found on devices the FBI seized.
Why this keeps happening
Cloud services make it fast to create resources, and slower to review the configuration of each one.
Firewalls and gateways are trusted as protection and then rarely tested as targets.
Detection is often built for the data center and not for cloud audit logs.
The AI lens
No source reviewed links AI to the Capital One breach. This section asks what AI changes about cloud misconfiguration attacks today. It is analysis, not reported fact.
How AI changes the attack
AI-assisted scanning can read responses and configuration clues from many cloud-hosted applications and flag the ones where a firewall or proxy passes commands to internal services.
A model can propose the next step after each response, for example turning a request-forgery flaw into a metadata lookup and a storage listing.
Millions of credit applications can be summarised and grouped for sale or fraud in less time.
How AI changes the defence
A model reading WAF rules, cloud roles and bucket policies can explain in plain language what each rule allows and flag any that let web input reach internal services.
Cloud audit trails are huge. Models that read them in context can surface one role listing many buckets, ahead of a human searching.
Monitoring public code sites for your identifiers and data samples, so a leak does not depend on a stranger's email.
Lessons for your own environment
- A firewall is software with a configuration
The bank's firewall was the way in. Test and baseline it like any other exposed application.
- Cloud is a shared model, not an outsourced duty
The OCC held the bank responsible for assessing risk before the migration, not the hosting provider.
- Do not outsource detection to strangers
A tip is lucky. It cannot be your plan. Build alerts on cloud audit logs.
- Limit what a server's role can read
A server that can read every bucket turns a small flaw into a mass breach.
CISO & board lessons
- Ask for evidence of a cloud risk assessment for each major workload and the date each finding was closed.
- Ask how long a malicious cloud API call would take to reach a human, and test it.
- Tell the board that the regulator's finding was about assessment and follow-through, which is something leadership controls.
Action plan
First 24 hours
- Review who can change WAF and gateway rules.
- List cloud roles with broad storage access.
First 7 days
- Alert on bucket listing and bulk reads and on use of metadata credentials from outside.
- Monitor public code sites for company identifiers.
First 30 days
- Reduce server roles to the storage they need.
- Add a closure deadline to every open cloud risk finding.
Could this happen in your organization?
- When did we last test our WAF configuration as an attack target?
- What can each server role read in cloud storage?
- Would we know within a day if a role downloaded unusual volumes from storage?
- How do we find out if our data appears on a public code site?
If this happened to you: what to ask, and what to say
Knowing the lesson isn’t the same as knowing what to do with it Monday morning. A security lead, a CISO, and a customer-facing team each need something different from this incident.
- "Could a request through our WAF reach an internal service or metadata endpoint?"Ask for a test result.
- "What can each server role read?"Request the policy, not a summary.
- "Would a bulk read from a bucket alert us?"Follow the alert to a person.
- "How would we learn that our data is on GitHub?"If the answer is a tip, build monitoring.
- Separate the regulator's findings from the attack details.The OCC findings are confirmed. The technical chain partly is not."The regulator found we did not assess cloud risk well enough before migrating. The firewall misconfiguration is the confirmed entry point."
- Explain how it was found.Be honest that it was a tip."An outside person told us. We have since built our own detection."
- State the remediation as owned work.Boards want closure dates."Every cloud finding has an owner and a date, and I will report overdue items to this board."
- Say what was exposed.Be specific about data types."Credit application data, including names, birth dates and income, and for some people Social Security numbers."
- Say what you did.Include notification and support."We fixed the configuration, told the FBI, and notified every affected person."
References & confidence
- ConfirmedUS Attorney's Office, Western District of Washington, arrest press release (July 29, 2019) — Source for the misconfigured firewall, July 17 tip, July 19 confirmation and FBI contact.
- ConfirmedUS Attorney's Office, indictment press release and case page — Source for the July 29 search warrant and seizure of devices.
- ConfirmedOCC consent order and Federal Reserve cease and desist order, August 6, 2020 — Reported through CBS News, Banking Dive, CIO Dive and SC Magazine. Source for the $80 million penalty and the findings on risk assessment.
- ReportedKrebs on Security, Capital One data theft impacts 106M people — Source for the nearly 30 GB figure and the July 17 email tip.
- ReportedGovInfoSecurity report on the criminal complaint — Source for the March 12 to July 17 window and the three commands and 700 folders.
- ReportedCybersecurity Dive on the later termination of the consent order — Source for roughly 106 million accounts and about 140,000 Social Security numbers.
- Analytical inferenceK2 Cyber Security commentary on server-side request forgery, via SC Magazine — An expert characterization, not a statement by the DOJ or OCC.
- UnknownExact cloud permissions and metadata service use — Not confirmed in the sources reviewed.