Algorithm Search⌘K

Definitionintro

k-anonymity

Also called k-anonymous table.

A released table is k-anonymous if every record shares its quasi-identifier values with at least k-1 other records.

k-anonymity is a condition on a released table: each combination of quasi-identifier values that occurs in the table occurs in at least kk rows. Then a join of the release with an outside table on the quasi-identifier, the linkage attack, never ties a person to fewer than kk rows. Sweeney and Samarati proposed the model around 1998, and the main papers appeared in 2001 and 2002. A table is made k-anonymous by generalization and suppression or by microaggregation. The value of kk is a policy choice of the data holder.

Definition

Let TT be a table with nn rows and let Q={A1,…,Ad}Q = \{A_1, \ldots, A_d\} be its quasi-identifier. For a row tt, write t[Q]t[Q] for the tuple of its values on QQ. The equivalence class of tt is the set of rows t′t' with t′[Q]=t[Q]t'[Q] = t[Q].

Definition (Sweeney 2002). Let k≥1k \ge 1 be an integer. The table TT is k-anonymous with respect to QQ if each tuple of values that occurs in T[Q]T[Q] occurs in at least kk rows of TT. In other words, each equivalence class on QQ has at least kk rows.

Three facts follow at once from the definition.

  • Monotone in k. A k-anonymous table is k′k'-anonymous for each k′≤kk' \le k. Each table is 1-anonymous.
  • Monotone in the attributes. If TT is k-anonymous on QQ, it is k-anonymous on each subset of QQ, because each class on the subset is a union of classes on QQ.
  • Easy to check. Count the rows of each tuple t[Q]t[Q] with a hash table, and compare the smallest count with kk. This takes O(nd)O(n d) expected time on the word RAM.

What it protects against, and only that: let EE be any outside table with identities and the attributes QQ, written at the same level of detail as the release. For each person pp of EE, the set of rows of the release that agree with pp on QQ is empty or has at least kk rows. This is a theorem about the join on QQ. The common reading "the adversary finds the row of pp with probability at most 1/k1/k" is a heuristic. It assumes that the adversary has no information outside QQ and picks one row of the class at random.

Making a table k-anonymous with the fewest suppressed cells is NP-hard for k≥3k \ge 3 (NP-hardness of optimal k-anonymity), and the O(k) approximation gives a bound on the cost.

Examples and non-examples

The tables are made up. The quasi-identifier is Q={Q = \{ZIP, age}\}.

row ZIP age diagnosis
1 1305* 20 to 29 flu
2 1305* 20 to 29 asthma
3 1306* 30 to 39 diabetes
4 1306* 30 to 39 flu
5 1306* 30 to 39 cold
  • 2-anonymous, not 3-anonymous. The classes are {1,2}\{1, 2\} and {3,4,5}\{3, 4, 5\}. The smallest class has 2 rows.
  • k-anonymous but not private: homogeneity. Change the diagnosis of rows 3, 4 and 5 to flu. The table is still 3-anonymous, but each person who matches the class {3,4,5}\{3, 4, 5\} has flu. The join gives no row, but it gives the value. Machanavajjhala et al. (2007) call this the homogeneity attack, and l-diversity and t-closeness answer it.
  • k-anonymous but not private: background knowledge. If the adversary knows that a person of class {1,2}\{1, 2\} does not have asthma, the class shows that the person has flu. k-anonymity says nothing about knowledge outside QQ.
  • Not k-anonymous after two releases: complementary release. Take four rows with (ZIP, age, diagnosis) equal to (13053, 28, flu), (13053, 29, cold), (13068, 28, asthma) and (13068, 29, diabetes). Release A shows the ZIP and hides the age: each class has 2 rows. Release B hides the ZIP and shows the age: each class has 2 rows. Both are 2-anonymous. But a person with ZIP 13053 and age 28 has a diagnosis in {\{flu, cold}\} by A and in {\{flu, asthma}\} by B, so the diagnosis is flu. Sweeney (2002) names this the complementary release attack. Each new release must be k-anonymous together with the earlier ones, which m-invariance studies for data that changes.
  • Row order. If two releases of the same rows keep the same row order, a reader can match the rows by position. Sweeney (2002) calls this unsorted matching. Shuffle the rows of each release.
  • The quasi-identifier is too small. A table that is k-anonymous on {\{ZIP, age}\} may have unique rows on {\{ZIP, age, sex}\}. If an outside table has the sex, the protection is gone. The choice of QQ is a policy decision, and so is kk.

References

  1. Latanya Sweeney, k-anonymity, a model for protecting privacy, International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems 10(5), 2002, pp. 557 to 570, the definition of k-anonymity, and the attacks on k-anonymous releases by unsorted matching, complementary release and temporal inference
  2. Pierangela Samarati, Protecting respondents' identities in microdata release, IEEE Transactions on Knowledge and Data Engineering 13(6), 2001, pp. 1010 to 1027, the k-anonymity requirement for released microdata, met by generalization and suppression
  3. Valentina Ciriani, Sabrina De Capitani di Vimercati, Sara Foresti and Pierangela Samarati, k-Anonymity, in Secure Data Management in Decentralized Systems, Springer, Advances in Information Security, 2007, Sections 2 and 3, the definition, the k-anonymity requirement and the taxonomy of generalization and suppression
  4. Ashwin Machanavajjhala, Daniel Kifer, Johannes Gehrke and Muthuramakrishnan Venkitasubramaniam, l-diversity, privacy beyond k-anonymity, ACM Transactions on Knowledge Discovery from Data 1(1), 2007, the homogeneity attack and the background knowledge attack on k-anonymous tables
  5. Benjamin C. M. Fung, Ke Wang, Rui Chen and Philip S. Yu, Privacy-preserving data publishing, a survey of recent developments, ACM Computing Surveys 42(4), 2010, the sections on record linkage and on k-anonymity and its refinements

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/TCBPNZ/text.yaml