OsintX
Incident response

How to investigate a data breach, step by step

A breach investigation has two jobs that pull in opposite directions: stop the damage now, and preserve enough evidence to understand what happened. This is the order that does both, from confirming the dump is real to closing out the notification.

Last reviewed 26 October 2026

Before step one: authority and scope

Decide who owns the investigation before you touch anything. A breach that involves personal data usually involves legal, communications and leadership as well as engineering, and an investigation run without that authority produces findings nobody is obliged to act on. Write down the scope: which systems, which data classes, which time window, and what decision the investigation is meant to support.

Then split the work explicitly. Containment is allowed to destroy evidence — rotating a key removes the attacker's access and the artefact at the same time. Preservation is not. Running them as one activity is how organisations end up unable to explain what happened.

Step 1 — Confirm the breach is real and current

Most "new" breaches that circulate are not new. Before you escalate, establish three things:

  • Does the dataset contain identifiers that could only have come from you — internal addresses, non-public fields, records created after a known date?
  • Is it a repost? Search for the dataset name and sample records. A dump from three years ago recirculates constantly, and responding to it as a live incident wastes the response.
  • Is it corroborated? The breached organisation, a regulator, a customer report or an independent researcher should be able to confirm it. A single forum post is a lead.

Record the answer either way. "Assessed as a repost of the 2021 dataset, no new exposure" is a finding, and it closes the question.

Step 2 — Identify the dataset and its vintage

Datasets have provenance and age, and both change the response. A dump of hashed passwords from an old system nobody uses is a communication problem; a live database with plaintext credentials is an incident. Establish the earliest date the dataset appeared, the fields it contains, and whether it is a subset of something already known.

This is where an attribution-first breach checker earns its place: the dataset name and the date you observed it are the two facts that make the finding reproducible. A yes/no answer without them cannot be verified later, when it matters.

Step 3 — Determine what was actually exposed

Classify by exploitability, not by row count. The order below is roughly the order an attacker values them in:

  • Working secrets: plaintext passwords, API keys, private keys, session cookies, refresh tokens. These are directly usable and should be rotated immediately.
  • Crackable material: password hashes. Risk depends on algorithm, cost factor and whether the same password is reused elsewhere.
  • Identity data: government identifiers, date of birth, address, financial details. Not a login, but the raw material for fraud and account recovery attacks.
  • Contact data: names and email addresses. Low direct risk, high phishing value — especially when combined with context from the same dump.

Step 4 — Scope the affected accounts

Turn the dataset into a list of accounts that need action. Match on identifiers, de-duplicate, and rank by privilege: an exposed domain administrator is not the same emergency as an exposed newsletter subscriber. For corporate exposure, check the addresses that carry authority — executives, finance, IT administration and shared mailboxes — rather than sampling one address and extrapolating.

If you need to check a set of addresses, the breach-check workflow explains what a per-address result can and cannot establish, and Email Investigation runs the lookup against breach datasets with source attribution.

Step 5 — Contain

Containment is a sequence, not a single action, and the order matters.

  • Rotate every credential that could have been exposed — application secrets and API keys first, because they often have broader access than any human account.
  • Invalidate sessions and refresh tokens. A password change alone does not evict an attacker holding a valid session.
  • Enable or enforce two-factor authentication, preferring authenticator apps or passkeys over SMS.
  • Audit recovery paths: backup addresses, forwarding rules, app passwords and OAuth grants are the ways an attacker keeps access after a reset.
  • Remove the exposure if it is still live — an open bucket, a public repository, an over-permissioned integration.

Step 6 — Notify, on advice

Notification duties differ by jurisdiction and sector, and the thresholds are not interchangeable. India's DPDP Act and the GDPR each impose their own obligations, and regulators publish guidance on what a notification must contain. Engage counsel early enough that the notification can be drafted while containment is still running.

The practical rule that survives most regimes: notify the people whose data was exposed, tell them what was exposed and what they should do, and do not speculate about cause or attribution before the investigation supports it. A short, accurate notification issued promptly is worth more than a comprehensive one issued late.

Step 7 — Keep the evidence trail

Every claim in the final report should be reproducible. That means capturing the source, the timestamp and the content, and keeping observation separate from inference. Store captures with the case, not in a personal downloads folder, and mark handling explicitly so sensitive material is not forwarded casually.

For third-party personal data, both DPDP and GDPR expect minimisation and retention limits. Investigate with the data you need, then delete what you no longer need, and log who accessed it while you had it.

Step 8 — Close the loop that caused it

The investigation is not finished when the notification goes out. The finding that matters most is the one that explains why the data was reachable: a credential that was never rotated, a repository that defaulted to public, an integration with more access than its job required. Fix that, then verify the fix, then write down what changed.

The OSINT method guide covers the verification and evidence discipline that makes this kind of reporting hold up under review.

Frequently asked questions

How do I know whether a reported breach is real?

Look for primary evidence, not headlines. A credible report names the dataset, shows a sample that can be checked against known identifiers, and is corroborated by an independent party — the breached organisation, a regulator, or a researcher with a track record. Screenshots of a forum post are a claim, not confirmation, and many 'new' breaches are reposts of dumps from years earlier.

What is the first thing to do after a breach?

Contain before you investigate in depth. If credentials may be exposed, rotate them, revoke active sessions and tokens, and enable two-factor authentication on the affected accounts. Preserve evidence in parallel — logs, the original dataset reference, timestamps — but do not let preservation delay the steps that stop an attacker from using what they already have.

How long do I have to notify affected people?

There is no single answer. India's DPDP Act and the GDPR both impose notification duties with their own thresholds and timings, and sector regulators add more. The practical rule is to engage counsel and your regulator's guidance as soon as a breach is confirmed, and to prepare the notification while containment is still running rather than after it finishes.

Which exposed data matters most?

Rank by what can be used directly, not by volume. Plaintext passwords, session cookies, API keys, private keys and government identifiers are immediately exploitable. Password hashes are exploitable if the algorithm is weak or reused. Email addresses and names matter mainly as the raw material for targeted phishing. A small dump of working credentials is worse than a large dump of marketing addresses.

Should we pay a ransom to stop a leak?

That is a decision for leadership with legal advice, not a technical one, and in several jurisdictions paying a sanctioned actor is itself unlawful. What is not in doubt: paying does not reliably prevent publication, and it funds the next attack. The defensible work is containment, notification and the evidence trail, whatever the commercial decision turns out to be.

How do I check whether my company's addresses were exposed?

Check the addresses that carry risk — executives, finance, IT administration, shared mailboxes — rather than assuming one lookup represents the organisation. Correlate the hits, note which dataset each came from, and record the observation with a timestamp so the finding can be reproduced.