What de-anonymize means, and how to swap real names back
To de-anonymize data is to link anonymized records back to the people they describe. Reporters did it to AOL search logs in 2006, and researchers to Netflix ratings in 2008. In AI work the word has a second meaning. It is putting the real names back into an answer the AI wrote with tags such as [PERSON_1], using the mapping you kept.
We build GoPrivate, a reversible anonymizer for files, and the swap back is half of what it does. The last sections show how it works. The first ones cover the attacks, because they explain why the mapping has to stay with you.
What does de-anonymization mean?
The same word covers two opposite situations.
| Re-identification attack | Swap back after an AI | |
|---|---|---|
| Who does it | Someone who was not meant to know who is who | The person who anonymized the file |
| What they use | Outside data matched against the released records | The mapping saved when the file was anonymized |
| Result | A person named against their will | [PERSON_1] becomes “Claire Martin” again |
| Wanted? | No. In the UK it can be a criminal offence | Yes, it is the point of reversible anonymization |
How do re-identification attacks work?
They match what is left in the data against something public. In August 2006, AOL released the search queries of about 657,000 users with each name replaced by a number. On August 9, 2006, The New York Times identified user No. 4417749 as Thelma Arnold, 62, of Lilburn, Georgia, from searches about her town and people named Arnold. She confirmed it to the paper (TechCrunch, August 9, 2006).
In 2008, Arvind Narayanan and Vitaly Shmatikov matched the Netflix Prize dataset, anonymous movie ratings of 500,000 subscribers, against ratings people had posted under their own names on IMDb. They found that “very little background knowledge is needed (as few as 5-10 attributes in our case study)” (Narayanan and Shmatikov).
Simple details are enough too. Latanya Sweeney estimated from 1990 census data that 87% of the US population was likely unique on five-digit ZIP code, gender and date of birth (Sweeney, 2000). Philippe Golle redid the count with 2000 census data and found 63% (Golle). Either way, replacing a name with a number is not enough when the rest of the record stays.
Under the GDPR, data you can reverse is pseudonymized, not anonymized, and the extra information that reverses it has to be kept separately and protected (Article 4(5)). Our article on pseudonymization vs anonymization explains the difference.
Why is a generically anonymized document a pain to work with?
Because the trouble starts after the AI answers. When you anonymize a file to use ChatGPT, Claude or DeepSeek on it, you need the real names back in the result. Check four things before you trust a generic anonymizer with that job.
- One placeholder for everyone. If every person becomes [NAME], the AI cannot tell the buyer from the seller, and neither can you when you read its answer.
- Random strings. If the tool writes a different random code at each run, two versions of the same file no longer match, and the AI’s answer is hard to read.
- No list to edit. If you cannot see what the tool found, you cannot add the client number it missed or keep a public name it removed by mistake.
- No way back. If the tool keeps no mapping, you put every name back into the AI’s answer by hand, one placeholder at a time.
[NAME] will pay [NAME] €12,000 by March 3. [NAME] signs for [COMPANY].
[PERSON_1] will pay [PERSON_2] €12,000 by March 3. [PERSON_1] signs for [COMPANY_1].
Claire Martin will pay Paul Durand €12,000 by March 3. Claire Martin signs for Halden & Co.
How do you de-anonymize an AI’s answer?
- Ask the AI to keep the tags. Add a line such as: “Keep every tag such as [PERSON_1] exactly as written.”
- Save the answer as a file. A Word document, a text file or a spreadsheet, so the swap back can read it.
- Replace each tag with its value. Use the mapping you saved when you anonymized the original file.
- Check the tags the AI changed. A tag rewritten as “Person 1” or merged into a sentence will not match. Search the result for leftover brackets.
Steps 1 and 2 also depend on how you prepared the file in the first place; see how to anonymize data before giving it to an AI.
How GoPrivate swaps the real values back
GoPrivate keeps the mapping you checked, so the swap back is one upload.
- A mapping you control. Before anything is replaced, you see every value GoPrivate found. Remove a line, add a word it missed and it finds every place that word appears, or rename a tag, for example [PERSON_1] into [CLIENT]. The same value gets the same tag everywhere in the file, including other sheets of a workbook.
- Variants grouped. “Claire Martin”, “Ms Martin” and, when it stands alone, “Claire” share one tag. On the way back, the tag returns as the full form, so “Ms Martin” comes back as “Claire Martin”.
- Swap back in one step. Upload the AI’s answer as a file, pick the mapping and download it with the real values. Tags are matched exactly, so a tag rewritten as “Person 1” is not recognised.
- The mapping stays yours. It is encrypted and saved in your account, and you can delete it at any time. Your files are read in memory and not stored; the privacy policy gives the details.
- Price. The swap back costs what the anonymization costs, one credit per 1,000 words of the uploaded file, from $9 for 60 credits. See the packs.