GoPrivate / Blog

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 attackSwap back after an AI
Who does itSomeone who was not meant to know who is whoThe person who anonymized the file
What they useOutside data matched against the released recordsThe mapping saved when the file was anonymized
ResultA person named against their will[PERSON_1] becomes “Claire Martin” again
Wanted?No. In the UK it can be a criminal offenceYes, it is the point of reversible anonymization
Two meanings of de-anonymization. One is an attack, the other is the last step of working with an AI.

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.
One placeholder

[NAME] will pay [NAME] €12,000 by March 3. [NAME] signs for [COMPANY].

Numbered tags

[PERSON_1] will pay [PERSON_2] €12,000 by March 3. [PERSON_1] signs for [COMPANY_1].

After the swap back

Claire Martin will pay Paul Durand €12,000 by March 3. Claire Martin signs for Halden & Co.

The same AI answer with one placeholder for everyone, with numbered tags, and after the swap back. Example data.

How do you de-anonymize an AI’s answer?

  1. Ask the AI to keep the tags. Add a line such as: “Keep every tag such as [PERSON_1] exactly as written.”
  2. Save the answer as a file. A Word document, a text file or a spreadsheet, so the swap back can read it.
  3. Replace each tag with its value. Use the mapping you saved when you anonymized the original file.
  4. 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.

Try it on your own file.

No account · Free preview · Files never stored

FAQ

Is de-anonymizing data illegal?

It can be. In the UK, section 171 of the Data Protection Act 2018 makes it an offence to knowingly or recklessly re-identify de-identified personal data without the consent of the controller who de-identified it, with defences such as testing the de-identification (legislation.gov.uk). Swapping your own mapping back into your own file is the opposite case.

Can an AI work out who is behind the tags?

Sometimes, from context. In an ICLR 2024 paper, ETH Zurich researchers found that language models inferred personal attributes such as location, income and sex from Reddit posts with about 85% top-1 accuracy (Staab et al.). Tags remove names and numbers; rewrite rare details that point to one person.

What if I lost the mapping?

Then the tags cannot be reversed by anyone, you included, which is what protects the file. Keep the mapping, or keep the original file.

Drop a file below to see a page of it with the names replaced by tags you can swap back later.

Sources