MemoShield All articles
Privacy Engineering

The Anonymity Assumption: Four Tests Before You Call a Dataset Anonymous

MemoShield
The Anonymity Assumption: Four Tests Before You Call a Dataset Anonymous

Photo: U.S. Secret Service, Public domain, via Wikimedia Commons

Anonymity is a conclusion, not a checkbox. In too many UK organisations, a dataset becomes anonymous at the moment a name column is deleted. Hashing an email address is treated as a transformation that settles the matter. A report with counts rounded to the nearest five is described as safe without anyone testing whether the rounding can be reversed. This is not a technical nicety. If data is genuinely anonymous, UK GDPR does not apply. That legal consequence creates an incentive to declare anonymity early and test it rarely.

The better discipline is to treat anonymisation as a process with evidence. Before a dataset is called anonymous, four tests should be applied and documented. They do not require a specialist data-science team, but they do require someone to think like an attacker with a reasonable amount of patience.

Test one: linkage

Can this dataset be joined with another dataset to identify someone? A customer list with postcode, age band and purchase month may look harmless until it is matched against a public register, a staff directory, a loyalty scheme or another internal export. Linkage risk grows when the organisation holds several datasets that share quasi-identifiers. The audit question is not whether the data contains a name. It is whether a combination of fields can be connected to a named person through another source.

A practical test is to list the internal and external datasets that could plausibly be joined. Then ask whether the combination of fields in the release is unique or nearly unique. Even a small SME can hold payroll data, CRM records, website analytics and support tickets. Linkage between them may be trivial for an insider and possible for an outsider with public information.

Test two: singling out

Can one person be isolated within the dataset? Removing names does not remove uniqueness. A row for the only part-time finance manager in a three-person department may be identifiable from role, hours and location alone. A customer in a rural postcode with a rare product and a specific complaint date may be equally exposed.

A useful test is to count how many records share the same combination of quasi-identifiers. If the count is one, that record is singled out. If the count is very small, the risk remains. A threshold such as a minimum group size is not a legal requirement, but it is a practical control. The threshold should be chosen for the context and documented, not applied as a ritual.

Test three: inference

Can someone deduce a sensitive attribute from the data without directly identifying a person? Aggregated statistics can leak. Average bonus by team, combined with known salaries, can reveal an individual's pay. A report showing absence rates by department, compared with a previous report, can expose a single person's sick leave. Inference risk is often highest when several reports are released over time or when the organisation publishes totals alongside detailed breakdowns.

Test inference by asking what a curious person could conclude by comparing this dataset with earlier versions, public information or their own knowledge of the organisation. If the answer includes health, ethnicity, religion, trade union membership, sexual orientation or financial hardship, the dataset needs stronger controls before it is called anonymous.

Test four: small-cell and differencing risk

Small counts are not automatically safe. A table showing one customer in a category may be suppressed, but the total may still allow subtraction. If a report shows a total of 20 and a breakdown of 19 in one category, the remaining one is exposed. Time-series reports create the same problem: this month's total minus last month's total can reveal a single new case.

Controls should include small-cell suppression, secondary suppression of totals and careful rounding. A minimum cell size is a starting point, not a complete answer. The test is to attempt differencing deliberately: compare tables, subtract known figures and see what emerges. If a single person can be inferred from the differences, the release is not anonymous in any meaningful sense.

Hashing is not a cloak

Hashing an identifier produces a pseudonymous value, not an anonymous one. Deterministic hashes can be attacked with a dictionary of known email addresses or customer numbers. The same hash across datasets also creates a linkable identifier. A keyed hash or tokenisation may reduce risk, but if the organisation holds the key or can re-identify the record, the data is still personal data in practice. Calling it anonymous because the column looks scrambled is a category error.

Document the test and the residual risk

Anonymisation is context-specific and not permanent. New public datasets, new internal joins and new analytical techniques can change the risk. Record the dataset, the purpose, the quasi-identifiers considered, the test method, the threshold applied, the residual risk and the owner. Set a review date. If the dataset is released externally, consider a motivated-intruder test: would someone with reasonable skill and access to public records be able to identify a person?

If the organisation cannot explain why a motivated person could not identify someone, it should not call the data anonymous. It should use a more honest label such as pseudonymised or aggregated with controls, and apply the safeguards that go with it. Anonymity is a high bar. The four tests are a way to reach it with evidence, or to discover that the claim was premature.

All Articles

Related Articles

Behind the Banner: What Your Consent Tool Remembers After the Click

Behind the Banner: What Your Consent Tool Remembers After the Click

Trace Evidence: Bringing Crash Dumps and Support Bundles Into the Data Map

Trace Evidence: Bringing Crash Dumps and Support Bundles Into the Data Map

What the Search Field Remembers: A Practical Audit of Workplace Query Logs

What the Search Field Remembers: A Practical Audit of Workplace Query Logs