Re-identification risk: definition, examples and measurement
Re-identification risk is the possibility of finding a person again in data from which the names were removed, by isolating what concerns them, linking it to another source or inferring something about them. It is measured with k-anonymity for tables and with simulated attacks for text. In a legal file, it lies mostly in indirect identifiers: docket number, court, dates, amounts, a rare job title.
What is re-identification risk?
Re-identifying means linking data that no longer carried a person's name back to that specific person. The risk exists as soon as the copy still contains elements that, alone or combined with other information, point to someone.
There are two kinds of elements:
- Direct identifiers point to a person on their own: name, email, phone number, IBAN, social security number. These are the first to go.
- Indirect identifiers, or quasi-identifiers, identify no one on their own but do in combination: a date of birth, a town, an occupation, an amount, the date of an event.
The GDPR sets the rule in Recital 26: to decide whether a person is identifiable, account should be taken of all the means “reasonably likely to be used” by the controller or by another person. What a third party already knows counts as much as what the copy contains. That is also what separates anonymization, which is irreversible, from pseudonymization, where the mapping table leads back to the people: see anonymization vs. pseudonymization under the GDPR.
What are the three WP29 criteria?
In its Opinion 05/2014 on anonymisation techniques, adopted on April 10, 2014, the Article 29 Working Party (WP29, since replaced by the EDPB) assesses every technique against three risks. The CNIL uses them on its page on anonymizing personal data (in French):
| Criterion | Definition (WP29) | Example in a case file |
|---|---|---|
| Singling out | “The possibility to isolate some or all records which identify an individual in the dataset.” | [PERSONNE_1] is “the sole partner of the firm” mentioned in the document. |
| Linkability | “The ability to link, at least, two records concerning the same data subject or a group of data subjects (either in the same database or in two different databases).” | The date and amount of a judgment, matched with a local news story. |
| Inference | “The possibility to deduce, with significant probability, the value of an attribute from the values of a set of other attributes.” | Sick leave followed by a workplace adjustment hints at an illness. |
The WP29 draws a warning from this that applies to anything sent to an AI tool: pseudonymized data “cannot be equated to anonymised information as they continue to allow an individual data subject to be singled out and linkable across different data sets”.
These criteria have just been updated. On July 7, 2026, the EDPB adopted, for public consultation, Guidelines 02/2026 on anonymisation, which update the 2014 opinion and restate the three tests as No Record Isolation, No Linkage and No Inference. The EDPB also makes clear that anonymity should be assessed from each relevant entity's perspective, typically any party for whom the data is meant to be anonymous.
Which famous re-identification cases?
Four cases come up throughout the literature. Each illustrates a different mechanism.
| Case | What had been removed | How re-identification happened | Mechanism |
|---|---|---|---|
| Sweeney, 2000 | Names, in demographic data | 87% of the US population (216 million out of 248 million) likely had a unique combination of 5-digit ZIP code, sex and date of birth. | Singling out through quasi-identifiers |
| AOL, 2006 | User names, replaced by a number | Out of 20 million published search queries, The New York Times tracked down user No. 4417749 from her searches alone (town, last names, neighborhood). | The content itself identifies |
| Netflix Prize, 2006-2008 | The names of about 500,000 subscribers | Narayanan and Shmatikov show that with 8 movie ratings (2 of which may be wrong) and dates within 14 days, 99% of records are unique; they identify some by cross-referencing IMDb. | Linkage with a public source |
| New York taxis, 2014 | License and medallion numbers, hashed with MD5 | Vijay Pandurangan hashes every possible number (about 22 million) in under two minutes, linking each trip to its cab and driver. | Pseudonym derived from the original value |
Three lessons for a firm:
- Content identifies. AOL released no “personal data” in the everyday sense: the searches themselves pointed to Thelma Arnold, 62, who told the paper, “Those are my searches.” A client file tells a story, and the story identifies.
- A few elements are enough. Three fields for Sweeney, eight ratings for Netflix. What matters is not how many elements remain in the copy, but how rare they are in combination.
- A pseudonym must never be computable. For the taxis, hashing every possible number was enough. Pandurangan himself recommended assigning a totally random number to each identifier: that is the principle of a well-built mapping table.
Which indirect identifiers are in a legal file?
Once names, addresses and contact details are replaced with labels, here is what can still point to the matter. The AI guide of the Conseil national des barreaux (CNB, April 2026) calls for vigilance about identification through cross-referencing, even after pseudonymization, and itself cites “amounts, project names given internally, the way a contract is drafted” (our translation).
| Indirect identifier | Why it identifies | What to do before AI |
|---|---|---|
| Docket number (in France, RG or Portalis number) | With the court, it points to a single case. Opposing counsel, the clerk or a party recognizes it at once. | Delete it: the AI never needs it. |
| Court and chamber | A small court, a specialized chamber or a hearing date sharply narrows the possible cases. | Keep the type of court (“a labor court”), drop the town if it does not matter. |
| Dates | Date of birth, hiring, dismissal, accident: a full date is a strong quasi-identifier. | Keep the time limits the reasoning needs, generalize the rest to the month or year. |
| Amounts | An amount to the cent (damages, sale price, claim) shows up in a judgment, an article or a set of accounts. | Round it or replace it with an order of magnitude, unless the exact calculation is the task. |
| Rare job title | “The mayor of”, “the head of cardiology”, “the sole partner”: a title can be as good as a name. | Replace it with a category (“a local elected official”, “a hospital doctor”). |
| Precise places | A small town, a hamlet, a shop sign, a lot or parcel number. | Widen the area (county, region), as the CNB recommends. |
| Project names, brands, references | An internal code name or a contract reference leads straight to the client. | Mask it like a proper name. |
| Health data | Sick leave, a disability or a rare diagnosis enables inference and is special-category data (Article 9 of the GDPR). | Keep only what the task requires; see our healthcare page. |
A fictitious example shows the combination effect. After pseudonymization, a sentence reads: “[PERSONNE_1], CFO of [ORGANISATION_1], dismissed on March 3, 2025, is claiming €412,318.27 before the Brive labor court, docket 25/00142.” Not a single name left, and yet the docket number alone points to the case, while the job title, date and town are enough for anyone who knows the local job market. For a legal analysis, “[PERSONNE_1], a senior executive dismissed in early 2025, is claiming about €400,000 before a labor court” gives the AI everything it needs.
How do you measure re-identification risk?
k-anonymity, for tables. Defined by Latanya Sweeney in 2002, it requires that each person in a dataset cannot be distinguished from at least k - 1 others on their quasi-identifiers. You measure k as the size of the smallest group sharing the same combination: k = 1 means at least one person is unique. The WP29 points out two limits: k-anonymity does not prevent inference (if everyone in the group has the same diagnosis, knowing the group is enough), and the classic mistake is inflating k by leaving some quasi-identifiers out. l-diversity, which requires several different sensitive values in each group, partly addresses the first flaw.
Simulated attacks, for text. A case file is not a table: indirect identifiers are scattered across sentences. The RAT-Bench benchmark, published in February 2026 by a team at Imperial College London, measures this risk directly. It generates synthetic texts containing direct and indirect identifiers, runs them through twelve anonymization tools, then asks a language model “attacker” to recover what it can. A person counts as re-identified if the attacker recovers a direct identifier, or if the recovered indirect attributes place them among fewer than five people in the US population (the k = 5 threshold common for data releases).
Three findings to keep in mind:
- Without anonymization, the average re-identification rate is 99%; with the best tool tested, it is still 30%.
- Risk rises from 44% when identifiers are written in their standard form to 69% when they are written in non-standard ways.
- Attributes conveyed only implicitly remain hard: most tools fail to reduce that risk.
These figures come from synthetic American texts, not French case files. They still confirm what every practitioner sees: automatic detection removes most direct identifiers, not the whole story. Our own detection benchmark, on a fictitious corpus, is published in detection benchmark and offline test, and the comparison with Presidio in Presidio: a measured detection comparison.
The insider test, for a firm. Short of a calculation, ask one simple question: would someone who knows the matter (opposing counsel, an employee of the client, a local reporter) recognize it in the copy? If so, an indirect identifier still needs handling.
How do you reduce the risk before using AI?
- Minimize. Send only the documents and passages the task needs. The CNB recommends limiting context to what is strictly necessary, and Article 5 of the GDPR requires it through the data minimization principle.
- Replace direct identifiers with stable labels. [PERSONNE_1], [ORGANISATION_2]: the same person keeps the same label in every document, so the AI can follow the reasoning without knowing the names.
- Delete what the AI does not need. Docket numbers, contract references, lot numbers, project names.
- Generalize what must stay. This is the technique the WP29 pairs with k-anonymity: a date to the month or year, an amount to a range, a town to a region, a job title to a category.
- Review next to the original. Look for the indirect identifiers in the table above, then run the insider test.
- Keep the table on your side. Not in the conversation, not with the copy: see the rules for the mapping table.
What side-by-side review adds, and its limits
AnonymFiles is built around this step. What it does:
- It handles direct identifiers on the computer. Names, organizations, addresses, contact details and private dates are detected by two models installed on the computer; emails, phone numbers and IBANs by rules. Nothing goes over the network.
- It keeps one label per person across the whole folder, and labels can be renamed.
- It shows each document next to its copy. You see what was masked and what remains, and you mask by hand a docket number, an amount or a rare job title.
- It exports nothing without approval, document by document. An approved document must be approved again if the original, the rules or the copy change.
Its limits, honestly:
- No statistical risk score. The app computes neither k-anonymity nor a re-identification probability: a forty-document case file is not a database, and no tool knows what opposing counsel or the local press already know.
- Indirect identifiers remain your call. Amounts are masked by hand; a rare job title, a court or a hearing date is not a name, and you decide whether it points to the matter.
- Detection is not perfect. None is: that is why review is mandatory before export, not optional.
To go further: how AnonymFiles works, pseudonymization software for lawyers and our use cases.
Frequently asked questions
What is re-identification risk?
It is the possibility of finding a person again in data from which the names have been removed, by combining what remains with other information. The Article 29 Working Party breaks it down into three risks: isolating a person's record (singling out), linking two datasets about them (linkability) and deducing information about them (inference).
What is the difference between a direct and an indirect identifier?
A direct identifier points to a person on its own: name, email, phone number, IBAN. An indirect identifier, or quasi-identifier, does not identify anyone alone but does in combination: ZIP code, date of birth and sex, or in a legal file the docket number, the court, a hearing date, an amount or a rare job title.
How do you measure re-identification risk?
For a table of data, you measure k-anonymity: the smallest number of people sharing the same combination of quasi-identifiers, with k = 1 meaning someone is unique. For free text, benchmarks such as RAT-Bench simulate an attacker trying to infer the identifiers left in the copy. For a case file, the practical test is to ask who, knowing the matter, would recognize it.
Do pseudonymized data carry a re-identification risk?
Yes, by definition: the mapping table leads back to the people, and so do the indirect identifiers left in the copy. That is why the Article 29 Working Party and the CNIL stress that pseudonymized data remain personal data. Pseudonymization reduces the risk; it does not remove it.
Can a docket number identify a case?
Yes. A docket number, together with the court, points to a single case. Anyone with access to it, such as opposing counsel, the court clerk or a party, can link the pseudonymized copy to the file. Remove it, or replace it with a generic mention, before sending anything to an AI tool.
How do you reduce re-identification risk before using AI?
In three moves: delete what the AI does not need (docket numbers, internal references), generalize what must stay (a date to the month, an amount to an order of magnitude, a town to a region, a job title to a category), and send only the documents the task requires. Then review the copy next to the original before sending it.
Can software guarantee that no one will be re-identified?
No. No tool knows what a third party already knows about your client. The RAT-Bench benchmark shows that even the best tools let indirect identifiers through. Software detects and masks direct identifiers and shows you the copy; the decision on indirect identifiers remains a human one.