After a data theft, the attacker often knows more about what was taken than the victim organisation does, and every notification decision waits on finding out which people and which data elements sit inside the stolen files. Breach data mining, sometimes called data mining and document review, is the process of searching exposed or exfiltrated data to identify affected individuals, the data elements tied to each of them, and their jurisdictions, so that notification obligations can be worked out and met. This guide covers scoping the dataset, choosing between automated, AI-assisted and manual review, building a defensible notification list, quality control and securing the review itself. It is written for incident responders, privacy teams and in-house or external counsel, and it does not cover the mailing and call centre side, which is in the Breach Notification Logistics guide.
Key takeaways
- The notification list is built per person, not per file. The output you need is one row per individual with their data elements and residence, because legal triggers depend on combinations such as name plus account number.
- Scope first, review second. Confirming exactly what left the environment, and removing duplicates and system files, usually shrinks the review more than any tool choice.
- Deadlines run in parallel with the review. GDPR's 72-hour authority notification and HIPAA's 60-day limits do not wait for review to finish, so plan phased reporting from day one.
- Defensibility comes from documented sampling and decisions. Record the method, the coding rules, the QC samples and every judgement call, so a regulator or court can see how the list was produced.
- The review environment holds the most sensitive copy of the breach. Treat it as a high-value system with strict access, logging, no internet egress and a defined destruction date.
Why data mining is needed after a breach
Breach notification laws ask questions that log analysis alone cannot answer: who was affected, how many, what categories of data, and where they live. GDPR Article 33(3) expects the notification to the supervisory authority to describe the categories and approximate number of data subjects and records. HIPAA notices must describe the types of information involved, and business associates must identify each affected individual to the covered entity where possible. US state laws, which exist in all 50 states, the District of Columbia, Guam, Puerto Rico and the US Virgin Islands according to the National Conference of State Legislatures, typically trigger on a name combined with specific elements such as a Social Security number, driver's licence or state ID number, or financial account number, with exemptions such as encryption.
When the stolen data is a structured database, answering those questions can be a query. When it is a file share, a mailbox export or a SharePoint site with years of scanned forms, spreadsheets and email attachments, someone has to open the documents and extract the people and data elements inside. That is the review this guide describes. It sits inside the analysis and notification activities of NIST SP 800-61 Rev. 3; see the NIST SP 800-61 Incident Response Guide and the Incident Response Guide.
Workflow from intake to notification list
| Stage | Purpose | Key outputs | Typical owner |
|---|---|---|---|
| 1. Intake and preservation | Secure a verified copy of the affected data set under chain of custody | Hash-verified copy, custody record, source inventory | Forensics |
| 2. Scoping | Establish what was accessed or exfiltrated and narrow the data set to it | Scope memo linking forensic evidence to data locations | Forensics with counsel |
| 3. Processing | Extract text, expand archives, OCR images, de-duplicate, remove system files | Processed, searchable corpus with exception report | Review technology team |
| 4. Search and classification | Find documents containing personal data and the elements in them | Responsive document set with element tags | Review team, automated tools |
| 5. Extraction | Capture each individual and their elements from each responsive document | Raw entity table (person, element, source document) | Reviewers |
| 6. Consolidation | Merge duplicate people across documents | One row per unique individual with all elements | Data analysts |
| 7. Enrichment | Add residence and contact details from authoritative internal records | Jurisdiction and address per person | Data analysts, business data owners |
| 8. Legal analysis | Apply notification triggers per jurisdiction and data element | Notification decision per person, regulator counts | Counsel, privacy office |
| 9. QC and sign-off | Sample and verify each stage; document method | QC log, method statement, signed list | QC lead, counsel |
Scoping the dataset
Review cost and time scale with volume, so scoping is the most valuable work in the whole exercise. The goal is to review what the evidence shows was taken or accessed, not everything that could have been.
- Use the forensic evidence: exfiltration logs, staging archives found on hosts, cloud storage access logs and the attacker's own leak-site file listings can pin down which folders, mailboxes or tables were involved. Where the evidence cannot exclude a location, counsel usually has to treat it as in scope.
- Compare against the leak: if the attacker published data, obtaining and comparing it is a legal and safety decision for counsel; where approved, use it only to confirm scope, inside the secured review environment.
- De-duplicate and filter: remove exact duplicates by hash, near duplicates by text similarity, and file types that cannot hold personal data (executables, system libraries). Record every filter applied.
- Handle the hard formats: scanned PDFs and images need OCR; spreadsheets and databases may be faster to parse as structured data than to review as documents; password-protected files and corrupt files go to an exception queue.
Scoping decisions are often made under privilege. See the Legal Privilege in Incident Response Guide and, for collection mechanics, the eDiscovery and Legal Hold Guide.
Review approaches: automated, AI-assisted and manual
Most reviews combine all three.
| Approach | How it works | Strengths | Limits | Best for |
|---|---|---|---|---|
| Pattern and rule matching | Regular expressions, checksums (for example Luhn for card numbers), dictionaries and proximity rules | Fast, repeatable, explainable | Misses unusual formats; false positives on number-like strings; weak on names | First-pass identification of numeric identifiers |
| Structured data parsing | Load spreadsheets, CSV and database extracts and map columns to elements | Accurate at scale for tabular data | Needs column mapping and data owner input | HR exports, customer tables, claims files |
| AI-assisted entity extraction | Machine learning or language models identify people and elements and propose links between them | Handles free text, letters, forms and varied layouts | Errors are less predictable; needs validation and careful data handling | Large unstructured sets such as mailboxes and scanned correspondence |
| Manual review | Trained reviewers open documents and code people and elements against a protocol | Judgement, context, handles edge cases | Slow, costly, fatigue errors | Low volumes, high-sensitivity documents, QC and exceptions |
- Choosing the mix: small data sets with a few thousand documents can be reviewed manually with rule-based highlighting. Large sets need automation to prioritise, with humans reviewing everything flagged as containing high-risk elements.
- AI-assisted tools and data protection: processing breach data through an AI service is itself processing of personal data. Confirm where the model runs, that inputs are not retained or used for training, and that the contract covers it. See the Data Minimisation guide.
- Review protocol: write a coding manual before review starts, listing each data element, examples of what counts and what does not (for example a partial account number, an expired card), and how to handle family members, deceased individuals and minors.
Building the notification list
The legal analysis depends on which elements are present for each person, so classify elements into groups that line up with notification triggers. The exact triggers differ by law and by state, so this table is a starting framework for counsel, not a rule set.
| Element group | Examples | Why it matters |
|---|---|---|
| Direct identifiers | Full name, first initial and surname, postal address, email address | Needed to identify and contact; most US state triggers require a name in combination with another element |
| Government identifiers | Social Security number, driver's licence or state ID, passport, national insurance number, tax ID | Commonly listed trigger elements in US state laws (per NCSL); high identity theft risk |
| Financial | Bank account number, payment card number, with or without access code or PIN | Common state trigger; card data also brings card scheme obligations |
| Online credentials | Username or email with password or security answer | Trigger element in a number of US states; requires password reset actions |
| Health and insurance | Diagnosis, treatment, medical record number, health plan beneficiary number | Protected health information under HIPAA for covered entities and business associates; special category data under GDPR Article 9 |
| Biometric and sensitive data | Fingerprint templates, face images, data on ethnicity, religion, sexuality, criminal records | Special category or criminal offence data under GDPR; trigger element in some US states |
| Protected or encrypted | Data encrypted where the key was not also compromised | Encryption exemptions apply in many laws; HIPAA treats properly encrypted PHI as secured |
For health data, the 18 HIPAA Safe Harbor identifiers in 45 CFR 164.514(b)(2) are a useful checklist of what links health information to a person, even though they are a de-identification standard rather than a breach test.
- Consolidate identities: the same person appears many times with spelling variants, maiden names and old addresses. Use deterministic keys first (employee ID, customer number), then documented fuzzy matching, and log merges so they can be reversed.
- Determine residence: state and country of residence decide which laws apply. Prefer current addresses from authoritative internal systems over addresses found in old documents, and record the source used.
- Apply the triggers: counsel applies each jurisdiction's definition to each person's element combination and records the decision and its basis. See the Data Breach Notification Checklist and the Breach Notification Laws by Country Guide.
- Produce counts: regulators ask for totals by jurisdiction. California, for example, requires a sample notice to the Attorney General when more than 500 California residents are notified for a single breach (Civil Code 1798.82(f)), and HIPAA media notice applies when a breach affects more than 500 residents of a state or jurisdiction.
- Hand over: deliver the list to the notification team in a controlled format with only the fields needed to send notices and tailor letter variants.
Regulatory timelines and the review
| Regime | Clock | What it means for the review |
|---|---|---|
| GDPR Article 33 | Notify the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware; information may be provided in phases | Send an initial notice with approximate categories and numbers from early scoping; update as the review produces counts. See the GDPR Articles 33 and 34 Breach Notification Guide |
| GDPR Article 34 | Communicate to individuals without undue delay where the breach is likely to result in a high risk | Prioritise review of special category and financial data, which drive the high-risk assessment |
| HIPAA Breach Notification Rule | Individuals without unreasonable delay and no later than 60 days after discovery; HHS and media within the same limit for 500 or more; smaller breaches reported to HHS annually | The 60 days is an outer limit, not a target; plan review capacity to finish well inside it. See the HIPAA Breach Notification Rule Guide |
| US state laws | Vary: many use "without unreasonable delay" language, some set a fixed number of days | Track the shortest applicable deadline across all states represented in the data |
The ICO says organisations do not need complete figures to report and can provide information in phases, but expects the investigation to be prioritised and expedited.
Quality control and defensibility
Regulators and litigants may later ask how the organisation knows the list is complete. HIPAA puts the burden of proof on covered entities and business associates to show that notices were made or were not required, and GDPR Article 33(5) requires every breach to be documented with its facts, effects and remedial action. A defensible review can show its method, not just its result.
- Method statement: a short document describing scope decisions, filters, tools, coding manual version, consolidation rules and QC design, kept with the incident record.
- Stage-by-stage sampling: draw random samples from each stage and check them: documents marked "no personal data" (to estimate what was missed), coded documents (to check element accuracy) and consolidated records (to check merges). Size samples with a statistician or an established statistical method, record the calculation, and report observed error findings with sample sizes rather than vendor accuracy claims.
- Second-level review: a senior reviewer checks all documents with high-risk elements, all exceptions and a sample of each first-level reviewer's work; error patterns go back into reviewer guidance.
- Decision log: record each judgement call (for example how a partial identifier was treated) and who made it, and apply it consistently across the set.
Metrics to track
- Documents processed, in exception and resolved, by source.
- Observed miss rate in the "no personal data" sample, with sample size.
- Element coding error rate in second-level review, per reviewer and per tool.
- Unique individuals after consolidation versus raw entity count.
- Days from scope confirmation to signed notification list, against the shortest legal deadline.
Securing the review environment
The review platform ends up holding a cleaned, indexed and searchable copy of the stolen data, linked to people. Protect it at least as well as the original source.
- Isolation: host the review in a dedicated environment with no internet egress except to approved services, separate from the compromised estate, and treat attacker-published files as potentially malicious content.
- Access: named accounts only, phishing-resistant MFA, least privilege by role (reviewer, QC, admin), time-limited access for contract reviewers, and no shared logins. Service accounts and API keys used by processing tools should be scoped to the project and revoked at close.
- Logging: record searches, views, exports and permission changes; review export logs weekly and protect the logs from alteration.
- Data handling: encrypt at rest and in transit, disable downloads and printing for reviewers, watermark views, and mask high-risk elements in reviewer screens where full values are not needed.
- Third parties: if an external review provider is used, put a data processing agreement in place, confirm location of processing and staff vetting, and require deletion certificates.
- Retention and destruction: set the retention period with counsel (litigation holds may extend it), then destroy review copies and derived lists securely and record it. See the Evidence Handling and Chain of Custody Guide.
Framework mapping
| Activity | NIST CSF 2.0 | NIST SP 800-53 Rev. 5 | ISO/IEC 27001:2022 Annex A |
|---|---|---|---|
| Establish what data was affected and how many people | RS.AN-03, RS.AN-08 | IR-4 | 5.26 Response to information security incidents |
| Preserve data and record review actions | RS.AN-06, RS.AN-07 | AU-9 | 5.28 Collection of evidence |
| Notify authorities and individuals | RS.CO-02 | IR-6 | 5.34 Privacy and protection of PII |
| Secure and dispose of review data | PR.AA-01 | AC-6, SC-28, MP-6 | 5.34; 8.10 Information deletion |
Common failure patterns
- Reviewing everything that was reachable: skipping evidence-based scoping multiplies cost and delays notices, when logs could have narrowed the set.
- Counting documents instead of people: reporting "40,000 files" to an authority without consolidation, then revising numbers repeatedly and publicly.
- Ignoring residence: using addresses from old documents, so individuals receive the wrong state-specific notice or none.
- Trusting the tool: accepting automated or AI-assisted extraction without sampling, so systematic misses (for example on scanned handwritten forms) go unnoticed.
- A second breach in the review platform: broad reviewer access, downloads enabled and no export logging around a copy of the most sensitive data the organisation holds.
- Waiting for the final number: missing the GDPR 72-hour window because the team believed it needed complete counts before reporting.
Practitioner checklist
- Preserve a hash-verified copy of affected data under chain of custody before any review.
- Write a scope memo tying each in-scope location to forensic evidence, approved by counsel.
- Agree the coding manual and element groups with counsel before review starts.
- Choose the mix of rule-based, AI-assisted and manual review and record why.
- Stand up an isolated review environment with MFA, role-based access, export logging and downloads disabled.
- Consolidate individuals with documented matching rules and authoritative residence data.
- Run stage-by-stage random sampling and second-level review, and log every judgement call.
- Send phased authority notices on time; do not wait for the final count.
- Destroy review copies and lists at the agreed date and keep the destruction record.
Standards and references
- GDPR: Article 33, Notification of a personal data breach to the supervisory authority
- EDPB: Guidelines 9/2022 on personal data breach notification under GDPR
- HHS: Breach Notification Rule
- NIST: SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- NIST: SP 800-122, Guide to Protecting the Confidentiality of PII
- ICO: Personal data breaches, a guide
- California Attorney General: Data security breach reporting
- NCSL: Security breach notification laws
Related NHI Mgmt Group resources: Breach Notification Logistics · Data Breach Notification Checklist · eDiscovery and Legal Hold Guide · Legal Privilege in Incident Response Guide. This guide summarises breach notification requirements and review practice and is not legal advice.