Database Breaches: 10 Shocking Cases in History and the Security Failures Behind Each

Database breaches rarely begin with a Hollywood-style hack. More often, someone leaves a server open with no password, and a security researcher, or a criminal, stumbles across it. In several cases below, billions of records were exposed that way.

This article covers 10 of the biggest database breaches in history, ranked by records exposed. For each one, you’ll see what happened, the specific security failure, and the lesson you can apply. After the list, you’ll find a prevention checklist and a plan for what to do if your own data was exposed.

One caution before we start. Record counts for database breaches are the figures reported at the time, and some are disputed or based on attacker claims. We flag those where they apply.

Database Breaches explained through unauthorized database access and exposed digital information.

1. Database Breaches Defined: Breach, Leak, and Scraping

A database breach is any incident where data stored in a database is accessed or exposed without authorization. That covers criminals breaking in, and it also covers a company accidentally leaving the door open.

The distinction matters because the cause of database breaches determines the fix.

1.1-Breach, Leak, and Scraping Compared

  • Breach: an attacker gets into a protected system. Stolen credentials and unpatched software are common routes.
  • Leak: data is exposed by mistake, usually through a misconfiguration such as a database with no password.
  • Scraping: automated tools pull large volumes of data, often from public-facing features, in ways that violate a platform’s terms.

Companies sometimes argue over the label when database breaches become public. Meta and LinkedIn have both maintained that their large exposures were scraping rather than breaches. Regulators and affected users, though, tend to care more about the outcome than the terminology. Fresh phone numbers and email addresses in criminal hands are a problem however they got there.

1.2-Why Record Counts Don’t Tell the Whole Story

A bigger number isn’t automatically a worse incident. National Public Data, covered below, claimed 2.9 billion records, but researchers found heavy duplication. The number of distinct people affected was far lower.

Sensitivity matters more than volume. A leaked Social Security number or passport number is far more damaging than a decade-old email address. Keep that in mind as you read the list, because many database security breaches look smaller on paper than they are in practice.

Database Breaches illustrating how duplicated records and sensitive information affect the real impact.

2. The 10 Biggest Database Breaches in History

Here is the list of the biggest database breaches at a glance, followed by a closer look at each entry.

#BreachYearRecordsCore failure
1CAM4202010.8 billionOpen database, no password
2Chinese Surveillance Network20254 billionOpen database, no password
3Yahoo2013–143 billion accountsUndetected intrusion, delayed disclosure
4National Public Data2023–242.9 billion (disputed)Poor credential hygiene
5Real Estate Wealth Network20231.5 billionOpen database, no password
6River City Media20171.37 billionUnprotected backup server
7First American Financial2019885 million documentsInsecure direct object reference
8Exactis2018340 millionExposed server, no firewall
9Deep Root Analytics2017198 millionPublic cloud storage
10Capital One2019about 100 millionCloud misconfiguration

2.1- CAM4 (2020): 10.8 Billion Records

Location: global | Data exposed: email logs, chat transcripts, sexual orientation details

CAM4, an adult streaming site, left an Elasticsearch database open to the public internet. It had no password, so anyone who found the IP address could read all 10.8 billion records.

The data was deeply personal, which made it ideal material for extortion and targeted phishing.

The security failure: a cloud database deployed without authentication, and nobody watching for it.

The lesson: treat every new cloud database as exposed until proven otherwise. Continuous scanning of your own assets is a core part of database breach prevention.

Database Breaches involving CAM4's exposed database containing 10.8 billion records.

2.2- Chinese Surveillance Network (2025): 4 Billion Records

Location: China | Data exposed: WeChat data, Alipay profiles, banking details, phone numbers, home addresses

In June 2025, researchers at Cybernews, working with Bob Dyachenko of SecurityDiscovery.com, found a 631 GB database sitting online with no password. It held roughly 4 billion records.

The researchers believed the data had been deliberately gathered to build profiles on a huge share of Chinese citizens. Whoever owned it never secured it, which is how so many database breaches start.

The security failure: a sensitive database with no authentication at all.

The lesson: aggregation multiplies risk in database breaches. One exposed database containing banking, messaging, and address data hands an attacker a ready-made identity kit.

Database Breaches involving an exposed Chinese surveillance database containing approximately 4 billion records

2.3- Yahoo (2013–2014): 3 Billion Accounts

Location: global | Data exposed: names, emails, phone numbers, birth dates, hashed passwords, security questions

Yahoo suffered two separate intrusions that together touched every one of its 3 billion accounts. State-sponsored attackers were involved, and forged authentication cookies helped them stay inside.

Disclosure was the second failure. Yahoo announced 500 million affected accounts in 2016, then 1 billion, and only confirmed the full 3 billion in October 2017.

The consequences of database breaches like this one were concrete. The delay reportedly cut about $350 million from Verizon’s purchase price. The SEC fined Altaba, Yahoo’s successor, $35 million, and a consumer class action settled for $117.5 million.

The security failure: attackers lived inside the network for a long time without being noticed.

The lesson: data breach detection is as important as prevention, and slow, partial disclosure can cost as much as the breach itself.

Database Breaches showing the Yahoo security intrusion that affected 3 billion accounts.

2.4- National Public Data (2023–2024): 2.9 Billion Records (Disputed)

Location: US, UK, Canada | Data exposed: names, addresses, phone numbers, Social Security numbers

National Public Data was a Florida background-check broker that had scraped personal data on hundreds of millions of people who never dealt with it. Attackers gained access in December 2023, and the data was leaked through 2024.

The 2.9 billion figure is a record count, not a head count. Around 272 million unique Social Security numbers were claimed, and researchers found plenty of duplicate and inaccurate entries.

The company didn’t survive, which is rare even among large database breaches. Its parent, Jerico Pictures, filed for Chapter 11 bankruptcy in October 2024 after more than 20 class actions. A sister site had also published a plaintext file of administrator credentials.

The security failure: weak credential hygiene at a company holding extremely sensitive data.

The lesson: the riskiest data holders are often invisible to the people they hold data on. Check how your vendors store what you give them.

Database Breaches involving National Public Data and the exposure of sensitive personal records.

2.5- Real Estate Wealth Network (2023): 1.5 Billion Records

Location: United States | Data exposed: names, addresses, phone numbers, mortgage and tax information

A 1.16 TB database was left online without a password. The records were neatly sorted into categories like property history, “motivated sellers,” and tax records. They included details on celebrities and politicians.

A researcher found it and alerted the company, which then secured it. Nobody knows how long it had been open or whether anyone else copied it.

The security failure: an unsecured database.

The lesson: being discovered by a friendly researcher is luck, not a strategy for preventing database breaches. Without access logs, you can’t know who else got there first.

Database Breaches exposing real estate property records, mortgage details, and personal information.

2.6- River City Media (2017): 1.37 Billion Records

Location: United States | Data exposed: emails, names, IP addresses, physical addresses, internal chat logs

River City Media ran a spam operation disguised as a legitimate email marketing firm. Researcher Chris Vickery found its backups sitting on an Rsync server with no password protection.

The exposed files included the operation’s own documentation on evading anti-spam filters. Anti-spam groups used it to map the network, and the business collapsed.

The security failure: an unprotected backup server.

The lesson: backups hold the same data as production, so database breaches often start on a forgotten backup server. They need the same protection. They’re often the forgotten door.

Database Breaches caused by River City Media's unprotected backup server.

2.7- First American Financial (2019): 885 Million Documents

Location: United States | Data exposed: Social Security numbers, bank account details, mortgage and tax records, driver’s licence images

This one needed no hacking skill, which makes it one of the most embarrassing database breaches on the list. Changing a single number in a web address showed another customer’s documents. The flaw is called an insecure direct object reference, and it existed in the company’s EaglePro application.

Journalist Brian Krebs reported it in May 2019. The worst part: a penetration test had flagged the problem in December 2018, but the company misjudged the risk and left it unfixed.

The SEC settlement was $487,616, and New York’s financial regulator added a $1 million penalty in 2023.

The security failure: missing access controls on document links, plus an ignored warning.

The lesson: a pen test finding is only useful if someone fixes it. Track every finding to closure.

Database Breaches involving First American Financial's exposed customer documents and insecure document access.

2.8- Exactis (2018): 340 Million Records

Location: United States | Data exposed: names, contact details, and around 400 personal attributes per person

Exactis, a Florida marketing firm, left a database on a publicly reachable server with no firewall. Researcher Vinny Troia found it. It covered roughly 230 million consumers and 110 million business contacts.

There were no Social Security or card numbers. But the file included details like children’s ages, interests, and estimated income, which is perfect fuel for convincing phishing messages, a risk shared by many database breaches of marketing data.

The security failure: an exposed server with no network protection.

The lesson: “no financial data” doesn’t mean “no risk.” Rich personal profiles help criminals sound credible.

Database Breaches exposing customer profiles and personal information through the Exactis server.

2.9- Deep Root Analytics (2017): 198 Million US Voters

Location: United States | Data exposed: names, addresses, birth dates, voter registration details, predicted political views

UpGuard’s researchers found 1.1 TB of voter data in an Amazon S3 bucket set to public access. It was compiled for the Republican National Committee and included modelled opinions on issues like gun control and abortion.

It remains the largest known exposure of US voter data and one of the most political database breaches ever. Deep Root accepted responsibility, but no regulator fined it, partly because the US has no federal privacy law covering political data.

The security failure: cloud storage left publicly readable.

The lesson: the cloud provider secures the platform, but you secure your configuration. That is the shared responsibility model, and it’s where many database security breaches begin.

Database Breaches exposing customer profiles and personal information through the Exactis server.

2.10- Capital One (2019): About 100 Million Records

Location: US and Canada | Data exposed: credit application data, Social Security numbers, bank account numbers

Capital One’s breach was subtler. An attacker exploited a misconfigured web application firewall in AWS using a server-side request forgery flaw. The firewall’s role had excessive permissions, so she could retrieve credentials and read storage buckets full of customer data.

The attacker, former AWS engineer Paige Thompson, boasted about it online, which is how she was caught. Around 106 million people were affected (about 100 million in the US, 6 million in Canada).

Costs followed: an $80 million penalty from the Office of the Comptroller of the Currency and a $190 million class action settlement.

The security failure: a misconfigured firewall combined with over-permissioned access.

The lesson: least privilege isn’t optional. A component should only ever be able to reach what it needs.

Database Breaches involving Capital One's cloud misconfiguration and exposed customer information.

3. Patterns Behind the Biggest Database Breaches

Read the ten database breaches together and the same handful of causes keep appearing. Almost none of these database breaches required advanced hacking.

3.1-The Most Common Causes of Database Breaches

  • No authentication: CAM4, the Chinese surveillance database, REWN, River City Media, and Exactis were all open to anyone who found them.
  • Cloud misconfiguration: Deep Root Analytics and Capital One show how one wrong setting exposes everything.
  • Weak access control: First American’s sequential URLs let anyone browse other people’s files.
  • Poor credential handling: National Public Data’s plaintext admin passwords are a textbook example.
  • Slow detection: Yahoo’s attackers stayed hidden for years, and the delays made it worse.

Strong data breach detection would have shortened several of these stories. Capital One only learned of its breach after a tip. First American ignored its own test results.

3.2-The Real Cost of Database Breaches

The financial damage from database breaches is steep. IBM’s Cost of a Data Breach Report 2025 put the average US breach at $10.22 million, the highest on record, against a global average of $4.44 million.

Costs show up in fines, legal fees, lost customers, and recovery work. National Public Data is the extreme case: the fallout shut the company down entirely.

UK businesses face their own exposure. Under UK GDPR, the Information Commissioner’s Office can fine up to £17.5 million or 4% of annual global turnover, whichever is higher.

Database Breaches creating financial losses, regulatory penalties, and recovery costs for business

4. Database Breach Prevention Checklist

Good database breach prevention comes down to doing the basics consistently, because most database breaches are avoidable. Use this list as a working checklist.

4.1-Secure Access and Authentication

  1. Never expose a database directly to the public internet. Put it behind a firewall or private network.
  2. Require authentication on everything. Check backups, test servers, and analytics tools too.
  3. Remove default credentials the moment a system is installed.
  4. Enforce multi-factor authentication (MFA) for admins and anyone with data access.
  5. Apply least privilege. Give every account and service only the permissions it needs.

4.2-Encrypt and Segment Your Data

  1. Encrypt data at rest and in transit, so stolen files are unreadable.
  2. Hash passwords with a modern algorithm. Use bcrypt or Argon2 with salting, never plaintext.
  3. Segment your network so one compromised system can’t reach your core databases.
Database Breaches prevention using strong passwords, authentication, MFA, and restricted access.

4.3-Monitor, Patch, and Audit

  1. Scan your external attack surface regularly to find open databases before attackers do.
  2. Audit cloud configurations for public storage buckets and over-broad permissions.
  3. Patch promptly, especially internet-facing software.
  4. Close out pen test findings, with an owner and a deadline for each.

4.4-Manage Third-Party and Backup Risk

  1. Secure backups to the same standard as live systems.
  2. Vet vendors that handle your data, and limit contractor access.
  3. Build data breach detection into your routine with logging, alerts on unusual queries, and a tested incident response plan.

If you’re short on time, start with items 1, 2, and 4. They would have prevented a large share of the database breaches above.

Database Breaches prevention by securing backup servers and managing third-party data access.

5. Steps to Take After Your Data Is Exposed

If you’ve been notified that your information appeared in one of these database breaches, act quickly. Most of the damage from database security breaches comes from criminals reusing data months or years later.

Everyone:

  • Change the affected password and any account where you reused it.
  • Turn on MFA and consider a password manager.
  • Check your email on Have I Been Pwned.
  • Be wary of unexpected calls, texts, and emails. Criminals use leaked data to sound convincing.

In the US:

  • Place a credit freeze with Equifax, Experian, and TransUnion. It’s free.
  • Review your reports at AnnualCreditReport.com.
  • Report identity theft to the FTC.

In the UK:

  • Consider a Protective Registration with Cifas, which adds extra checks when someone applies for credit in your name.
  • Check your credit file with the major UK credit reference agencies.
  • Report fraud through Action Fraud, and raise data protection concerns with the ICO.
Database Breaches response steps including password changes, account monitoring, and identity protection.

6. Final Thoughts

Look back across these ten database breaches and the pattern is plain. Open servers, forgotten backups, ignored test results, and permissions set too wide did most of the damage. Strong database breach prevention, paired with solid data breach detection, would have changed the outcome in nearly every one.

You don’t need an enormous budget to avoid becoming one of the next database breaches in the headlines. Lock down access, encrypt what matters, scan your own systems before someone else does, and fix what your tests find. If you do one thing today, check whether any database you run is reachable from the public internet.

Want to go deeper? Read our guide on how to secure a database next.

Database Breaches frequently asked questions about security risks, exposed records, and prevention.

7. Database Breaches FAQ

1-What was the largest database breach in history?

By raw record count among single-source incidents, CAM4’s 2020 exposure of 10.8 billion records is the largest on this list. Yahoo’s 3 billion compromised accounts is the largest breach of a single company by account count. Aggregated “mega-leaks” like the Mother of All Breaches (26 billion records) are compilations of older incidents rather than single breaches.

2-What is the difference between a database breach and a data leak?

A breach involves an attacker gaining unauthorized access to a protected system. A leak is an accidental exposure, such as a database left open with no password. The outcome is similar, but the fixes differ: breaches call for stronger defenses, and leaks call for better configuration checks.

3-What causes most database breaches?

Most come from basic failures rather than sophisticated attacks: missing passwords, misconfigured cloud storage, stolen credentials without MFA, unpatched software, and over-permissioned accounts. Third-party vendors are another frequent entry point.

4-How do hackers find unsecured databases?

Attackers and researchers use internet-wide scanning tools that search for exposed services like Elasticsearch and MongoDB. If a database is reachable without a password, it can be indexed and found within hours. Running your own external scans lets you find these gaps first.

5-How much does a database breach cost a company?

IBM’s 2025 report puts the average cost of database breaches at $10.22 million in the US and $4.44 million globally. Costs include investigation, fines, legal action, lost customers, and downtime. Smaller businesses often feel it harder because they have less cushion to absorb it.


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top