Giving an AI Total Recall of 52 Billion Breach Records

In the last post I turned 13.8 TB of breach data from a slow, unsearchable pile of files into a corpus I could query in milliseconds. Fifty-two billion records, every email, phone, name, username, national ID, and social handle indexed and pointing back to its source.

Fast is good. But a fast index has a quiet problem: you still have to drive it. A phone number gives you an email. The email gives you a username. The username turns up in three more datasets, each with a new detail, and before long you are ten manual lookups deep, holding a dozen browser tabs, hand-assembling the picture of one identity. The index answers the question instantly. It just makes you ask every question yourself.

That kind of patient cross-referencing is exactly what a language model is good at, as long as you give it real tools instead of asking it to guess. So I wrapped the whole corpus in an MCP server and handed it to the AI.

What MCP actually is

Model Context Protocol is the plumbing that lets an AI assistant call tools you define. You expose a set of functions, describe what they do, and the model can decide to call them mid-conversation, read the results, and keep going. It is the difference between an AI that can only talk about data and one that can go get it.

For this project, that meant writing a small server that sits in front of the index and offers the model a handful of focused tools.

The tools

Nothing exotic, just the operations an investigator actually performs:

  • lookup_phone / lookup_email / lookup_username: find every record for an identifier, with the source dataset and the co-located details.
  • lookup_name: with an optional region, because “Wang Wei” without a province is a needle in ten haystacks.
  • lookup_national_id: SSNs and Chinese resident-ID numbers, which are strong, rarely-reused anchors.
  • lookup_social: Facebook, LinkedIn, QQ, WeChat, Twitter handles.
  • catalog_summary / index_status: so the model can see what is searchable before it starts, instead of guessing.

Each result comes back verified. Because the index points at exact byte offsets, every hit is re-read from the source file and its identifiers re-derived before the model ever sees it. Hash collisions and stale pointers get dropped. The AI is working from confirmed records, not a lossy summary.

The one that matters: pivot

The tool that changes the experience is pivot. You hand it a single seed, a phone number, an email, a name plus a region. It finds the records for that seed, then takes every other identifier inside those records and looks each one up too, pulling in the datasets that know them. One call does the chaining that used to be ten manual lookups, and it hands back a consolidated map: here is every identifier connected to your seed, and here is which breach vouches for each connection.

The model drives it. You ask, in plain English, “what can you tell me about this number?” and it calls pivot, reads the linked identifiers, decides which ones are worth chasing further, and writes up what it found with the sources attached. The tedious part, the part that used to eat an afternoon, happens in seconds and you never touch a tab.

A representative run: start with a phone number. pivot finds it in a marketing-data breach alongside a name and a city. The same number appears in a second breach next to an email address. The email turns up in a professional-network scrape tied to a LinkedIn profile, and in an old forum dump tied to a reused username. Four datasets, one afternoon of manual work, assembled into one picture in the time it takes to read this sentence. That is the whole point: the index made it possible; the MCP server made it effortless.

Being honest about the limits

This is not magic, and pretending it is would make it dangerous to rely on.

Collisions happen. Phone numbers are keyed on their last ten digits so that country-code variants match. The cost is that a +1 US number and a +86 Chinese number sharing those ten digits will collide. The pivot will surface both, and it is on the analyst to notice that a result from a Colombian Facebook dump probably is not the same person as the one in a Chinese telecom leak. The tool shows its work precisely so a human can catch this.

Salt wins. Plenty of the corpus is hashed, and a lot of that is salted. Those records resist resolution by design. A clean index does not change the math on a properly-salted password store, and the write-up is careful to say “this identifier appears here” rather than overclaiming.

It is a lead generator, not a verdict. Breach data is messy, stale, and full of other people’s typos. The MCP layer makes building a hypothesis fast. Confirming it is still human work. The right mental model is an extremely fast junior analyst who never gets bored of lookups and always cites sources, not an oracle.

Why this is worth it for threat intel

Put plainly, the advantages are:

  • Natural-language investigation. “Where has this credential shown up, and what is linked to it?” becomes a question you can just ask, not a workflow you have to execute.
  • The boring part is automated. The value of an analyst is judgment, not manually copying a username into a search box forty times. This moves the human up to the judgment.
  • Everything is sourced. Every claim the model makes traces to a specific record in a specific dataset, which matters enormously when the output might inform a real decision.
  • It composes. An MCP tool is a building block. This corpus can now be one capability inside a larger agent that also checks other sources, so the breach archive stops being a silo.

Using it responsibly

This is built for authorized threat-intelligence and investigative work: helping organizations understand where their leaked credentials originated and how exposed an identity is. That framing is not decoration. A tool that resolves identities across breach data is powerful in the wrong hands, and the discipline that keeps it legitimate is the same discipline any serious practitioner already applies: lawful basis, authorization, data minimization, and not treating a messy lead as a confirmed fact about a real person.

One practical note in that spirit: when you query through a cloud AI, the records that come back are sent to that provider to form the answer. For sensitive work, run it against a local model, or keep the raw lookups on the command line and let the AI reason over only what you choose to share.

Where this leaves things

The index made 52 billion breach records searchable. The MCP server made them conversational: you ask, the AI pivots, and a picture that used to take an afternoon assembles itself with the sources attached. The archive went from a slow drive full of files I could barely search in a reasonable time, to a fast index for engineers, to a capability any AI I trust can reach for.

The same breach archive also produced a public artifact along the way: a 45-million-password Chinese wordlist, built from the Chinese-language corner of this data. Different use of the same foundation. Once the pile is organized, it keeps paying out.