Anonymization

On this page 7

Anonymization is the process of transforming personal data so that the individuals it describes can no longer be identified, directly or indirectly, by the controller or by anyone else using means reasonably likely to be used. Properly anonymized data falls outside the scope of the GDPR and similar laws, which is why the bar is set high.

In privacy engineering, anonymization is treated as an outcome to be demonstrated, not a single technique. Removing names is rarely enough; the result must resist singling out, linkability and inference, and the assessment must be repeated as new data and attacks appear.

What makes data truly anonymous

European regulators assess anonymization against three re-identification risks. A dataset is considered anonymous only when none of them can reasonably succeed, taking into account the data that the recipient or an attacker could combine with it.

RiskQuestion askedExample attack
Singling outCan one record be isolatedOnly one 1950s-born doctor in a small town
LinkabilityCan records about the same person be connectedJoining a released dataset with a voter roll
InferenceCan an attribute be deduced with high probabilityEvery person in a group shares one diagnosis
Re-identification risks that anonymization must defeat

The test is contextual. The same table can be anonymous when published as coarse aggregates and still personal data when shared as row-level records with a partner that holds overlapping customer files. Anonymity therefore depends on the release model, the recipients and the auxiliary information available to them.

Anonymization techniques and their parameters

Techniques fall into two families. Generalization reduces the precision of attributes so individuals blend into groups; randomization alters values or adds noise so that exact links become unreliable. Robust programs combine both and measure the residual risk.

TechniqueHow it worksKey parameterMain weakness
SuppressionRemoves identifiers or rare recordsWhich fields and outliersInsufficient alone
GeneralizationReplaces values with ranges or categoriesGranularity, such as 5-year age bandsUtility loss
k-anonymityEach record matches at least k others on quasi-identifiersk, often 5 to 20 in practiceHomogeneity attacks
l-diversity / t-closenessRequires varied sensitive values per groupl or t thresholdComplex to achieve
Noise additionPerturbs values randomlyNoise magnitudeAveraging can remove noise
Differential privacyAdds calibrated noise to query resultsEpsilon, commonly about 0.1 to 10Accuracy falls as epsilon shrinks
Main anonymization techniques

Differential privacy is the only technique in the list that offers a mathematical guarantee independent of attacker knowledge, bounded by the privacy parameter epsilon. Lower epsilon means stronger protection and less accurate results, and the cumulative privacy budget grows with every released statistic.

Anonymization compared with pseudonymization and masking

Anonymization is often confused with weaker techniques that reduce risk but keep data personal. The distinction has direct legal consequences, because only anonymous data escapes data protection obligations.

TechniqueReversibleStill personal dataTypical use
AnonymizationNoNoOpen data, statistics, research releases
PseudonymizationYes, with separately kept keyYesInternal analytics, clinical research
Data maskingDepends on methodUsually yesTest environments, support screens
EncryptionYes, with the keyYesStorage and transfer security
AggregationNo for small cells removedNo if groups are large enoughDashboards and reports
Anonymization and neighboring techniques

Pseudonymization remains a valuable safeguard: it lowers breach impact and supports purpose compatibility. But a dataset with consistent pseudonyms preserves linkability by design, so it cannot be described as anonymous.

Planning an anonymization project

Effective anonymization starts from the intended use of the output. Analysts who need monthly trends by region do not need row-level data, and choosing aggregates instead of microdata often removes most of the risk before any technique is applied.

Release scenarioRecommended approachReason
Public statisticsAggregates with small-cell suppression or differential privacyUnknown recipients and unlimited auxiliary data
Research partnerGeneralized microdata plus contractual controlsUtility needed, recipients known
Internal model trainingPseudonymization, not a claim of anonymityLinkability required for training
Software testingSynthetic data or maskingRealistic structure without real people
Choosing an approach by release scenario

Each project should document the re-identification risk assessment, the parameters chosen, a motivated-intruder test and a review date, because anonymity can erode as new datasets become available.

Pitfalls and known failure modes

Famous re-identification cases share a pattern: the publisher removed direct identifiers and underestimated the uniqueness of the remaining attributes.

  • High-dimensional data such as location traces or purchase histories is almost always unique; a few points can identify a person.
  • Hashing identifiers produces consistent tokens and is pseudonymization, not anonymization.
  • Small cells in aggregates, such as a count of one or two, reveal individuals.
  • Repeated releases of overlapping data allow differencing attacks.
  • Free-text fields retain names and details that structured techniques miss.

In simple terms

Anonymization means changing data so thoroughly that nobody can work out who it is about anymore, not even the organization that collected it. Deleting names is only the first step, because an age, a postal code and a job can still point to one person.

Think of it like blurring a crowd photo. Blurring one face is not enough if the person is the only one wearing a red coat. Real anonymization blurs everything that makes someone stand out, and once done properly, it cannot be undone.

A practical example

A city transport authority wants to publish ridership data from contactless card taps to help researchers plan routes. The raw data holds a card number, stop, timestamp and fare type for every journey.

Because a handful of tap locations and times can identify a commuter’s home and workplace, the team rejects publishing trip-level records even with hashed card numbers. Instead it releases hourly passenger counts per stop, suppresses any cell below 10 journeys, and adds differential privacy noise to origin-destination matrices.

Researchers still get the demand patterns they need for route planning, and the authority can document that the release resists singling out and linkage, supporting its conclusion that the published data is anonymous.