Attacks on Deidentification's Defenses
Aloni Cohen
Introduction
A relatively small number of data points suffice to distinguish individuals from the general population. For example, in the 2010 census 44% of the population was unique based only on census block, age, and sex . Turning this insight into a privacy notion, -anonymity aims to capture a sort of anonymity of a crowd.
Real world reidentification attacks, including on the Netflix and AOL datasets , led to a policy debate about the QI-deidentification. Critics argued that the distinction between quasi-identifying attributes and other attributes—foundational to the whole approach—was untenable . Defenders argued that deidentification experts are good at determining what information is externally available . The debate left unspoken and unexamined the core tenet of QI-deidentification: that if every attribute is treated as a quasi-identifier, then -anonymity provides meaningful protection. Our work is the first to directly challenge that tenet.
Why bother attacking QI-deidentification? After all, the security and privacy research communities don’t put much stock in these techniques. For example, it is well known that contrived mechanisms can formally satisfy -anonymity but provide no protection. Even so, many policymakers and practitioners are convinced that QI-deidentification is effective in the real world.
Our goal in this paper is to rebut the actual arguments that QI-deidentification practioners use to justify its continued use. We rebut three arguments that—until this work—have gone unchallenged. First, that no attacks have been shown against datasets deidentified by experts and in accordance with strict privacy regulations, let alone simple attacks. Second, that -anonymity provides meaningful protection when every attribute is a quasi-identifier. Third, that although QI-deidentification doesn’t meet cryptographic standards of security, it suffices to meet the obligations in data protection regulation. We briefly elaborate these three arguments next.
Rhetorically, trust in QI-deidentification hinges on the wholesale dismissal of existing attacks as unconvincing. Practitioners dismiss many attacked datasets as “improperly de-identified” . “Proper de-identification” must be done by a “statistical expert” and in accordance with procedures outlined in regulation , the increasing availability of QI-deidentification software notwithstanding. This argument has proven very effective in policy spheres. Moreover, practitioners dismiss attacks carried out by privacy researchers because they are privacy researchers. That these attacks are published in “research based articles within the highly specialized field of computer science” is used to argue that re-identification requires a “highly skilled ‘expert’ ” and therefore is of little concern .
Technically, trust in QI-deidentification hinges on an unspoken, unexamined tenet:
QI-deidentification’s tenet: If every attribute is treated as quasi-identifying, then -anonymity provides meaningful protection.
Legally, the use of QI-deidentification hinges on the gap between the protection required by regulation and the protection desired by the academic research community. Practitioners claim only that QI-deidentification meets regulatory standards, not security researchers’ stringent standards. For example, cryptographic security definitions typically make no assumptions about the techniques or auxiliary knowledge available to an adversary. However, the European Union’s General Data Protection Regulation (GDPR) restricts the adversary’s techniques by protecting only against “means reasonably likely to be used” by an attacker.GDPR, Article 4 Likewise, the United State’s Family Educational Rights and Privacy Act (FERPA) restricts the adversary’s knowledge by protecting only against an attacker lacking “personal knowledge of the relevant circumstances.”34 CFR §99.3
We present three attacks on QI-deidentification schemes: two theoretical attacks and one real world reidentification attack. Together, these attacks undermine the above justifications for the continued use of QI-deidentification.
First, we introduce a new class of privacy attack called downcoding, which recovers large fractions of the data hidden by QI-deidentification without any auxiliary knowledge. In short, downcoding undoes hierarchical generalization. A downcoding attack takes as input a dataset generalized and recovers some fraction of the generalized data. We call this downcoding as it corresponds to recoding records down a generalization hierarchy.
We prove that every QI-deidentification scheme is vulnerable to downcoding attacks if it is minimal and hierarchical. QI-deidentification is hierarchical if it works by generalizing attributes according to a fixed hierarchy (e.g., citycountrycontinent). QI-deidentification is minimal if no record is generalized more than necessary to achieve the privacy requirement, in a weak, local sense. Our downcoding attacks are powered by a simple observation: minimality leaks information. Figures 1 and 2 give simple examples of downcoding and of leakage from minimality, respectively.
Second, we convert our downcoding attacks into powerful predicate singling-out (PSO) attacks. PSO attacks were recently proposed as a way to demonstrate that a privacy mechanism fails to legally anonymize under the GDPR . We introduce a stronger type of PSO attack called compound PSO attacks and prove that minimal hierarchical QI-deidentification enables compound PSO attacks, greatly improving over the prior work.
Our downcoding and PSO attacks are the first attacks on QI-deidentification that work even when every attribute is a quasi-identifier. As such, they apply to QI-deidentification beyond -anonymity, and refute the foundational tenet of QI-deidentification.
Third, we used LinkedIn.com to reidentify 3 students in a -anonymized dataset published by Harvard and MIT from their online learning platform EdX. Despite being “properly” -anonymized by “statistical experts” in accordance with FERPA, we show that thousands more students are potentially vulnerable to reidentification and disclosure.
Not only do these attacks rebut the arguments described above, they also show that QI-deidentification fails to satisfy three properties of a worthwhile measure of privacy of a computation, even without resorting to contrived mechanisms. Namely, we show that QI-deidentification mechanisms used in practice aren’t robust to post-processing, do not compose, and rely on distributional assumptions on the data for their security.
Section 2 discusses related work. Section 3 introduces notation and defines -anonymity, along with hierarchical and minimal -anonymity. Section 4 defines downcoding attacks and proves that minimal hierarchical -anonymous mechanisms enable them. Section 5 defines compound predicate singling-out attacks and proves that minimal hierarchical -anonymous mechanisms enable them. Section 6 describes the EdX dataset and shows that it is vulnerable to reidentification. Section 7 concludes that our attacks rebut the three core arguments that support the continued use of QI-deidentification in practice. The appendix includes additional details and proofs.
Related Work
Predicate singling-out (PSO) attacks were recently introduced in the context of data anonymization under Europe’s General Data Protection Regulation (GDPR) . They were proposed as a mathematical test to show that a privacy mechanism fails to legally anonymize data under Europe’s General Data Protection Regulation (GDPR) . The prior work gives a simple but weak PSO attack against a large class of -anonymous mechanisms. We give much stronger PSO attacks against a restricted class of -anonymous mechanisms.
Prior work shows that -anonymity does not compose: multiple -anonymous datasets can completely violate privacy when combined . We show for the first time that composition failures can occur in real world uses of -anonymity.
Differential privacy (DP) presents one alternative to QI-deidentification, especially DP synthetic data or local DP . Switching to DP requires accepting that the resulting data will not provide the one-to-one correspondence with underlying records that makes QI-deidentification so attractive to users and laypeople.
We reviewed the deidentification definitions included in the most comprehensive survey we could find . Our downcoding attacks apply to any refinement of -anonymity: namely, any definition that collapses to -anonymity when every attribute is quasi-identifying. These include:
-anonymity and variants: -, -, -sensitive-, -, and -anonymity
-closeness and variant -closeness
Our downcoding attacks don’t apply to Anatomy (which doesn’t generalize quasi-identifiers at all) or differential privacy (which eschews the quasi-identifier framework all together). We have not determined whether the following definitions – which bound some posterior probability given the deidentified dataset – refine -anonymity in the relevant sense: -presence, -privacy, skyline privacy, -privacy, -safety, and -uncertainty.
We leave testing our downcoding attacks on actual deidentification software packages for future work. Free to use software packages include ARX Anonymization, -Argus, sdcMicro, University of Texas Toolkit, Amnesia, Anonimatron, Python Mondrian. All but Python Mondrian implement hierarchical algorithms. ARX Anonymization, sdcMicro, and Amenesia offer some version of local recoding (footnote 5). To the best of our knowledge, none guarantee minimality.
Preliminaries
is a -dimensional data universe, where is the attribute domain. For simplicity we take all attribute domains to be identical, though in reality they are usually distinct (e.g., the EdX dataset).
A record is an element of the data universe. A generalized record , denoted , is a subset of the data universe specified by the Cartesian product , where for every . Note that a record naturally corresponds to the generalized record , a singleton. We say generalizes if (i.e., ). For example, generalizes . For generalized records , we say that generalizes and refines . If , the generalization/refinement is strict.
A dataset is an -tuple of records . can be viewed as a matrix with the th coordinate of . A generalized dataset is an -tuple of generalized records . For (generalized) datasets , we write if for all . We extend the meaning of generalization and refinement accordingly. We write when at least one containment is strict. We call the record in corresponding to , and vice-versa. Note that is a partial order on datasets of records from a given data universe.More generally, we could consider datasets whose rows are permuted relative to one another. Define if there exists a permutation such that for all , choosing some canonical arbitrarily if more than one exists. Then is a partial order over equivalence classes of datasets induced by . We omit this additional complexity for clarity. We believe all our results would hold, mutatis mutandis.
2 k𝑘k-anonymity
Formally, is -anonymous if any individual row in the release cannot be distinguished from other individuals . This requirement is typically parameterized by a subset of the attribute domains called a quasi-identifier. We denote by the restriction of to . For , we denote by the indices of records in that match on (including itself). Let . This is called the effective anonymity of in with respect to .
For , is -anonymous with respect to if for all , . An algorithm is -anonymizer if for every , is -anonymous (anonymity) and generalizes (correctness). We omit when is the whole data universe.
A few remarks are in order. First, beyond correctness and anonymity, -anonymity places no restriction on the output . Second, the term quasi-identifier is inconsistently defined in the literature. Our definition of a quasi-identifier as the collection of multiple attributes is from Sweeney . Quasi-identifier is commonly used to refer to one of the constituent attributes—including by the authors of the EdX dataset . So each -quasi-identifier consists of multiple -quasi-identifers. We adopt the quasi-identifier-as-a-set definition because it simplifies the discussion of the EdX dataset in Section 6. The distinction disappears in Sections 4 and 5: our downcoding and PSO attacks work even when every attribute is part of the quasi-identifier (i.e., ).
It is easy to contrive -anonymizers that reveal completely. Directing our attention to more natural and widespread mechanisms, we focus on hierarchical -anonymizers.
A common way of -anonymizing data is to generalize an attribute domain according to a data-independent generalization hierarchy which specifies how a given attribute may be recoded. Hierarchical algorithms differ on whether they use local recoding or global recoding. Using local recoding, attributes in different records can be generalized to different levels of the hierarchy. Using global recoding, all records must use the same level in the hierarchy for any given attribute. We consider local recoding which produces higher quality datasets in general. Many natural ways of generalizing data fits this mold: using nesting geographies (e.g., citystatecountry); dropping digits of postal codes (e.g., ); grouping ages into ranges of 5, 10, 25, or 50 years; suppressing attributes or whole records altogether; and the techniques used to create the EdX dataset.
Formally, a generalization hierarchy defines a structured collection of permissible subsets of an attribute domain (Figure 5). is a rooted tree labelled by subsets of , where the subsets on any level of form a partition of and the partition on every level is a strict refinement of the partition above. The label of the root is itself, and the leaves are all labelled with singletons . Identifying with the set of all its labels, we write if there is some node in labelled by . We extend the hierarchy to the data universe coordinate-wise, writing if for all .
respects if for all . An algorithm is a hierarchical -anonymizer if for all and all hierarchies , is a -anonymizer and its output respects .
Observe that one can always implement hierarchical -anonymity by simply outputting copies of . But a privacy technique that completely destroys the data is not useful, which leads us to consider data quality.
We consider minimal mechanisms . A mechanism is minimal if no record is generalized more than necessary to achieve the privacy requirement (in a local way). For example, suppose a -anonymous contains a location attribute. If there is a subset of records whose location “USA” can be changed to “California” without violating -anonymity, then the mechanism that produced would not be minimal. Anoter example is given in Figure 2. We call this property minimality because it is equivalent to requiring minimality with respect to the partial ordering . Unlike global optimality, minimality is computationally tractable.
is minimal if is always minimal in the set of all -respecting, -anonymous that generalize , partially ordered by . That is, for all strict refinements , either: (a) is not -anonymous, (b) does not respect , or (c) does not generalize .
Downcoding attacks on syntactic privacy techniques
In short, downcoding undoes hierarchical generalization. A downcoding attack takes as input a dataset generalized and recovers some fraction of the generalized data. We call this downcoding as it corresponds to recoding records down a generalization hierarchy. Our downcoding attacks are powered by a simple observation: minimality leaks information. Figures 1 and 2 give simple examples of downcoding and of leakage from minimality, respectively.
We prove that there exist data distributions and hierarchies such that every minimal hierarchical -anonymizer is vulnerable to downcoding attacks. Hence any privacy provided by QI-deidentification is subject to distributional assumptions.
The downcoding attack adversary gets as input a QI-deidentified dataset which is the output of an unknown mechanism on an unknown dataset . also knows anything published with , namely , , and the hierarchy . (Without data users would be unable to interpret .) Finally we also allow the adversary to depend on the data distribution . One interpretation is that the security that a mechanism affords against downcoding attacks depends on limiting the attacker’s knowledge, which is not good security practice. Moreover, in many settings can be efficiently learned from an independent sample .
Formally, we construct a distribution over attributes and a generalization hierarchy such that every minimal hierarchical algorithm enables downcoding attacks on datasets drawn i.i.d. from . Our first attack uses a natural data distribution (i.e., clustered heteroskedastic data in Section 4.4) and a tree-based hierarchy, and allows an attacker to completely recover a constant fraction of the deidentified records with high probability. Our second attack uses a less natural data distribution and hierarchy, and allows an attacker to recover ths of every record with 99% probability.
2 Definition
Let be a -anonymous version of a dataset with respect to generalization hierarchy . A downcoding attack takes as input and outputs a strict refinement of that simultaneously respects and generalizes .
Let be a hierarchical -anonymous generalization of a (secret) dataset with respect to some hierarchy . is a downcoding of if , , and .
If is minimal and is a downcoding of , then violates -anonymity.
We consider three measures of an attack’s strength: How many records are refined? How much are records refined? How often records refined? Recall that if , then for all and for at least one .
: is pronounced “dah-let” and is the fourth letter of the Hebrew alphabet. How often are records refined? Consider the probability experiment , , and where is a distribution over data records, is a -anonymizer, and is a downcoding adversary. is the probability that downcodes with parameters at least and . For any fixed and , an attacker prefers larger .
3 Minimal k𝑘k-anonymizers enable downcoding attacks
Downcoding may seem impossible: How can one strictly refine using only the information contained in itself? Our attacks leverage minimality. The mere fact that is a minimal hierarchical generalization of reveals more information about that we use for strong downcoding attacks. See Figure 2 for a simple example.
A general-purpose hierarchical -anonymizer works for every generalization hierarchy . Our theorems state that there exist data distributions and corresponding hierarchies such that every minimal hierarchical -anonymizer is vulnerable to downcoding. By Observation 4.1, these attacks defeat the -anonymity of .
For all constants , , , and , there exists a distribution over , and a generalization hierarchy such that all minimal hierarchical -anonymizers enable downcoding attacks with , , and . The attack also works for and .
Each of the theorems has some advantages over the other. The attacker in Theorem 4.3 manages to recover every attribute of every record except with probability . However the parameters of the construction depend polynomially on . Theorem 4.2 removes this dependency, at the expense of attacking only a constant fraction of records and attributes—still a serious failure of -anonymity. The more significant advantage of Theorem 4.2 is that the data distribution and generalization hierarchy are both very natural (Example B.2). In contrast, the distribution and hierarchy in the proof of Theorem 4.3 are more contrived.
Full proofs of both Theorems 4.2 and 4.3 are in Appendix B. Both proofs follow the same structure at a very high level. We prove a structural result on minimal, hierarchical -anonymous mechanisms for a specially constructed hierarchy (Claims B.1 and B.3). This structural result states that if satisfies certain conditions then must take a restricted form which allows the downcoding adversary to construct . To prove the theorem, we construct a data distribution such that random will satisfy the conditions of the structural result with probability close to 1.
4 Example: Clustered Gaussians
The proof of Theorem 4.2 shows that distributions satisfying certain properties are vulnerable to downcoding attacks. Example B.2 describes a family of clustered Gaussian distributions that satisfy those properties. Here we give an instantiation of this family of distributions for and describe the corresponding hierarchy and downcoding adversary.
The adversary is described in Algorithm 1. It takes as input , , and a description of . It looks at each group of generalized records of the output. If the number of records in is not , then the whole group of records is copied to the output unchanged (i.e., no downcoding on these records). If has exactly records, then by -anonymity these records are all identical copies of some . Some of ’s entries may be aggregated to . If it’s many more or many less than half the entries, then the whole group of records is copied to the output unchanged (i.e., no downcoding on these records). Otherwise, the records in all get downcoded as described in the algorithm.
It follows from Example B.2 that for , the distribution described above, and produced by any minimal hierarchical -anonymizer, will downcode a constant fraction of the records in (with constant probability).
Predicate singling-out attacks on syntactic privacy techniques
Our downcoding attacks yield powerful predicate singling-out (PSO) attacks against minimal hierarchical -anonymous mechanisms. PSO attacks were recently proposed as a way to demonstrate that a privacy mechanism fails to legally anonymize under Europe’s General Data Protection Regulation . Our new attacks undermine the use -anonymity and other QI-deidentification techniques for GDPR compliance, challenging prevailing European guidance on anonymization .
In this section, we recall the prior work on PSO attacks and define a generalization called compound PSO attacks. We prove that minimal hierarchical -anonymizers enable compound PSO attacks.
Predicate singling-out attacks were recently introduced by Cohen and Nissim in the context of data anonymization under Europe’s General Data Protection Regulation (GDPR) . They were proposed as a mathematical test to show that a privacy mechanism fails to legally anonymize data under GDPR . A mechanism legally anonymizes under GDPR if it suffices to transform regulated personal data into unregulated anonymous data. That is, if is free from GDPR regulation regardless of what is. If a mechanism enables PSO attacks, then it does not legally anonymize under GDPR .
Informally, enables PSO attacks if given , an adversary is able to learn an extremely specific description of a single record in . Because is so specific, it not only distinguishes the victim in the dataset , but likely also in the greater population. Hence PSO attacks can be a stepping stone to more blatant attacks.
To perform a PSO attack, outputs a single negligible-weight predicate that isolates a record with non-negligible probability.
enables predicate singling-out (PSO) attacks if there exists , , and non-negligible such that
2 Compound predicate singling-out attacks
PSO attacks can be unsatisfying. For example, the attack from outputs predicates and at best about manage to actually isolate a record in the dataset . Moreover, which predicates isolate and which don’t is impossible for the attacker to know without additional information. So even though there exists many isolated records with high probability, the attacker doesn’t know which ones or how many. In contrast, consider an attacker that outputs predicates, each of which isolates a distinct record in . It is obvious the new attacker is stronger, but in a way that isn’t captured by the definition of predicate singling-out.
We define a generalization of PSO attacks called compound PSO attacks. Whereas PSO attacks only require that a record is isolated with non-negligible probability, compound PSO attacks require many records to be isolated often.
To perform a compound PSO attack, outputs multiple negligible-weight predicates each of which isolates a distinct record with probability at least . The strength of the attack is measured by and , with and reflecting stronger attacks. Vanilla PSO attacks correspond to the setting and .
enables -compound predicate singling-out attacks if there exists , such that
in the probability experiment , .
In the language of compound attacks, the prior work gives an -compound-PSO attack against bounded -anonymizers for and some .
For all constants , , , and , there exists a distribution over , a generalization hierarchy , such that all minimal hierarchical -anonymizers enable -compound-PSO attacks. The attack also works for and .
These theorems mirror Theorems 4.2 and 4.3, inheriting their advantages and disadvantages. Proofs for both attacks follow the same general structure, using the corresponding downcoding attacks in non-black-box ways (Appendix B). The key observation is that some of the downcoded records in the downcoding attacks immediately give the predicates needed to predicate single-out.
Algorithm 2 illustrates the compound-PSO adversary for the example of clustered Gaussians described in Section 4.4. Compare to the downcoding adversary in Algorithm 1. Instead of outputting a complete dataset (as in the downcoding attack), we simply output descriptions of certain records within . Namely, is the predicate that outputs if and only if is consistent with (i.e., .
Reidentifying EdX students using LinkedIn
597,692 individuals registered for 17 online courses offered by Harvard and MIT through the EdX platform . We show that thousands of these students are potentially vulnerable to reidentification. The EdX dataset represents an egregious failure of -anonymity in practice and in a case where the dataset was “properly deidentified” by “statistical experts” in accordance with regulations, undermining one of the main arguments used to justify the continued use of QI-deidentification .
EdX collected data about students’ demographics, engagement with course content, and final course grade. EdX sought to make the data public to enable outside research but considered it protected by the Family Educational Rights and Privacy Act (FERPA), a data privacy law restricting the disclosure of certain educational records . “To meet these privacy specifications, the HarvardX and MITx research team (guided by the general counsel, for the two institutions) opted for a -anonymization framework” . A value of “was chosen to allow legal sharing of the data” in accordance with FERPA. Ultimately, EdX published the 5-anonymized dataset with 476,532 students’ records.
We show that thousands of these students are potentially vulnerable to reidentification. As a proof of concept, we reidentified 3 students out of 135 students for whom we searched for matching users on LinkedIn. Each of the reidentified users failed to complete at least one course in which they were enrolled, a private fact disclosed by the reidentification attack.
The limiting factor of this attack was not the privacy protection offered by -anonymity itself, but the fact that many records in the raw dataset were missing demographic variables altogether. In order to boost the confidence of our attack, we restricted our attention to unambiguously unique records. To demonstrate the possibility of attribute disclosure, we further restricted our attention to students that had enrolled in, but failed to complete, a course on EdX.
has 476,532 rows, one per student.The dataset as published was such that each row represented a student-course pair, with a separate row for each course in which a student enrolled. Records corresponding to the same student shared a common UID. as described above is the result of aggregating the information by UID. See the appendix for additional background on the EdX dataset. Each row contains the student’s basic demographic information, and information about the student’s activities and outcomes in each of 16 of the 17 EdX courses.
The demographics included self-reported level of education, gender, and year of birth, along with a country inferred from the student’s IP address. Many students chose not to report level of education, gender, and year of birth at all, so these columns are missing many entries. For each course, indicates whether the student enrolled in the course, their final grade, and whether they earned a certificate of completion. also includes information about students’ activities in courses including how many forum posts they made.
was -anonymized with respect to 17 overlapping quasi-identifiers separately: , and defined next. Recall that each quasi-identifier is a subset of attributes, not a single attribute (Def. 3.1).
{gender, year of birth, country, enrolled in course , number of forum posts in course }
{enrolled in course 1, …, enrolled in course 16}.
Anonymization was done hierarchically. First, locations were globally coarsened to countries or continents. Then other attributes or whole records were suppressed as needed.
2 Uniques in the EdX dataset
Table 1 summarizes the results of all analyses described in this section. Let . is very far from 5-anonymous with respect to . We find that 7.1% of students (33,925 students) in are unique with respect to and 15.3% have effective anonymity less than 5.
Despite EdX’s goals, was not even -anonymous with respect to : 245 students were unique and 753 had effective anonymity less than 5! We suspect this blunder is due to -anonymity’s fragility with respect to post-processing. The raw data was first 5-anonymized with respect to and afterwards with respect to . Some rows in the dataset were deleted in the latter stage, ruining -anonymity for .
We emphasize that the creators of the EdX dataset never intended or claimed to provide 5-anonymity with respect to . But they admit that each of the attributes in is potentially public. In our view, the union of quasi-identifiers should also be considered a quasi-identifier and any exception should be justified. No justification is given.
A naive interpretation of the 7.1% unique students is that an attacker who knows would be able to definitively learn the grades of 7.1% of the students. But there is a major source of ambiguity: missing information. Gender, year of birth, and level of education were voluntarily self-reported by students. Many students chose not to provide this information: 14.9% of students records are missing at least one of these attributes. It is missing in the raw data, not just the published data. Thus, a female Italian born in 1986 might appear in the dataset with any or all three attributes missing.
This makes the 7.1% result difficult to interpret. From an inferential standpoint, the relevant question is not how many students have unique quasi-identifiers, but how many are unambiguously unique. We compute the ambiguous effective anonymity (defined in App. A.1) of each record by treating any missing attribute values as the set of all possible values for that attribute. This number may be much lower than 7.1%. We stress that this ambiguity comes from missing data, not from -anonymity.
We find that 1.9% of students (9,125 students) are unambiguously unique with respect to and 4.7% have ambiguous effective anonymity less than 5. Over 9,000 students are unambiguously identifiable in the dataset to anybody who knows all the quasi-identifiers, without knowing whether the students chose to self-report their gender, year of birth, or level of education. This allows an attacker to draw meaningful inferences about them.
2.2 Limiting the attacker’s knowledge
Students in the EdX dataset are vulnerable to reidentification by adversaries who have much less auxiliary information than . We consider the (ambiguous) effective anonymity for three attackers who could plausibly reidentify students in the EdX dataset: a prospective employer, a casual acquaintance, and an EdX classmate. The results are summarized in Table 1.
In Section 6.3, we carry out the prospective employer attack using LinkedIn. This demonstrates that some students in the EdX dataset can be reidentified by anybody.
Consider a prospective employer who is interested in discovering whether a job applicant failed an EdX course. An applicant is likely to list EdX certificates on their resume. The employer very likely knows {gender, year of birth, location, level of education, certificates earned in courses 1–16}. only includes those certificates actually earned, but omits courses in which a student enrolled but did not earn a certificate.
5,546 students in have effective anonymity 1 with respect to , and 10,942 have effective anonymity less than 5. These numbers may seem small, but they constitute 34.2% and 67.4% of the 16,224 students in the dataset that earned any certificates whatsoever. Moreover, 732 students are unambiguously unique—333 of whom failed at least one course, and 38 of whom failed three or more courses. Thus, 2.1% of students (333 students) who earned certificates of completion failed at least one course and have unambiguous effective anonymity 1 with respect to .
Casual acquaintances might, in the course of normal conversation, discuss their experiences on EdX. They would likely discuss which courses they took, and would naturally know each other’s ages, genders, and locations. So acquaintances know {gender, year of birth, location, enrollment in courses 1–16} . 6.7% of students in have effective anonymity 1 with respect to , and 14.6% have effective anonymity less than 5.
Moreover, acquaintances typically know each other’s level of education too, even though this is not included in . If we augment the acquaintance’s knowledge with level of education , then things become even worse. 8.7% students in have effective anonymity 1 with respect to , and 20.6% have effective anonymity less than 5.
Each EdX course had an online forum for student discussions. Because these posts were public to all students enrolled in a given course, the number of forum posts made by any user was deemed publicly available information. But ignoring composition, EdX did not consider the combination of forum post counts made by a user across courses.
Consider an attacker who knows {number of forum posts in courses 1–16} . 120 students in are unambiguously unique with respect to , and 216 have ambiguous effective anonymity less than 5. These numbers may seem minute, but they constitute 1.7% and 3.0% of the 7251 students in the dataset that made any forum posts whatsoever. Effective anonymity and ambiguous effective anonymity are always the same for this attacker because excludes the demographic columns that are missing many entries.
Who knows ? 20 students in the dataset itself enrolled in all 16 courses and could have compiled forum post counts across all courses for all other EdX students. To any one of these 20 students the 120 students with distinguishing forum posts are uniquely identifiable. Such an attacker can then learn these 120 students ages, genders, level of educations, locations, and their grades in the class.
In fact, each of the 120 vulnerable students can be unambiguously uniquely distinguished by 23–70 classmates; 60 students by 40–49 classmates each. This enables more classmates to act as attackers than just the 20 who took all courses. This is because distinguishing a student using forum posts doesn’t require being enrolled in all 16 courses. For each of the 120 vulnerable students, we find which subsets of their forum posts suffices to distinguish them. This analysis amounts to checking whether these students remain unambiguously unique if some subset of their forum post counts are redacted.
3 Reidentifying EdX students on LinkedIn
On LinkedIn.com, people show off the courses they completed. They may be unwittingly revealing which courses they gave up on. 2.1% of students who earned certificates of completion (333 students) failed at least one course and have unambiguous effective anonymity 1 with respect to .
We reidentified three of these 333 students, with a rough confidence estimate of 90–95%.
We performed the attack as follows. We restricted our attention to 135 students in who were unambiguously unique using only certificates earned plus at most one of gender, year of birth, and location, and who also had no missing demographic attributes. We manually searched for LinkedIn users that listed matching course certificates on their profile by searching for course numbers (e.g., "HarvardX/CS50x/2012"). We attempted to access the profiles for the resulting users, whether they were in our extended network or by searching on Google. If successful, we checked whether the LinkedIn user lists exactly the same certificates as the EdX student, and whether the demographic information on LinkedIn was consistent with the EdX student. If everything matched, we consider this a reidentification.
3.2 Results
We reidentified 3 of the attempted 135 EdX students, each of whom registered for but failed to complete an EdX course. Two were unambiguously unique using only certificates of completion. In each case, the EdX student’s gender matched the LinkedIn user’s presenting gender based on profile picture and name. In each case, the LinkedIn user’s highest completed degree in 2013 matched the EdX student’s listed level of education.
3.3 Confidence
We cannot know for sure whether our purported reidentifications on LinkedIn are correct because were instructed by our IRB not to contact the reidentified EdX students.
In this section, we estimate that our reidentifications are correct with 90–95% confidence. Moreover, an error is most likely a result of our imperfect ability to corroborate location and year of birth on LinkedIn, not a result of the protection afforded by -anonymity. Our analysis is necessarily very rough. A precise error analysis is impossible. We omit details to avoid imparting any other impression.
We consider two main sources of uncertainty. First is the limited information available on LinkedIn profiles, especially age and location. We inferred a range of possible ages by extrapolating from educational milestones. We inferred a set of possible locations based on listed activities around 2013. Both methods are imperfect. The locations in EdX were inferred from IP address and are likely imperfect. LinkedIn users or EdX students can report their attributes inconsistently. Note that they cannot lie about earning EdX certificates: this data comes from EdX itself and the LinkedIn certificates are digitally signed and cryptographically verifiable.An example certificate is available here: https://verify.edx.org/cert/26121b8dec124bc094d324f51b70e506. Instructions for verifying the signature are here: https://verify.edx.org/cert/26121b8dec124bc094d324f51b70e506/verify.html We estimate the probability of error on at least one attribute inferred from LinkedIn is on the order of 5–10%.
The second source of error is suppressed student records. Of the 597,692 students enrolled in EdX courses over the relevant period, only 476,532 appear in the published dataset. 121,160 students (20.3%) are completely suppressed. We matched students in EdX with users on LinkedIn using {gender, year of birth, location, level of education, certificates earned in courses 1–16} as well as we could. An error will occur if a suppressed student is the true match for the LinkedIn user. For this to happen, and must agree on . If is unique in the complete dataset, no error occurs.
We do a back of the envelope calculation of the chance of error from record suppression under two simplifying assumptions. First, that random student records are suppressed.There are more sophisticated techniques for estimating the probability of error under this assumption . But in EdX omitted records are “outliers and highly active users because these users are more likely to be unique and therefore easy to re-identify” . As such, using the more sophisticated techniques would not give more meaning to our very coarse estimates. Second, that the number of certificates of completion that a user earns is statistically independent of their other attributes (assuming they registered for enough courses). We compute 99.5%-confidence upper bounds for two parameters: the probability that a random EdX student matches our reidentified EdX student; the probability that a random EdX student earns the same number of certificates as our reidentified EdX student. 121,160 is a very coarse estimate of the probability that a supressed student record causes an error. For the three students we reidentified, this comes out to 0.1–1%.
A much less likely source of error is suppression of individual courses from a student’s record. Such an error will occur if some courses for the purported match were suppressed, and there is some other EdX student that is the true match for the LinkedIn user . This requires course suppression in and also (because was unambiguously unique on in the published EdX data). All in all, we consider course suppression to be a much less likely source of error than student suppression or imperfect attribute inference on LinkedIn.
4 EdX was “properly” deidentified
El Emam, et al., criticize prior reidentification studies as using data that were “improperly deidentified” because they did not “follow[] existing standards” . They thus conclude that there is no convincing evidence of real-world failure of QI-deidentification techniques in a regulated context.
In contrast, the EdX dataset incontrovertibly followed existing standards. FERPA is the relevant regulation. It requires the published information to not enable identification of any student with reasonable certainty. The EdX dataset was specifically created to comply with FERPA, following Department of Education guidance and overseen by general council for Harvard and MIT .
Moreover, the EdX dataset arguably followed the HIPAA Expert Determination–the standard used by El Emam, et al. The Expert Determination standard requires three things:https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/index.html (1) Deidentification be performed by “a person with appropriate knowledge …and experience”. (2) The person determines that the risk of reidentification is “very small”. (3) The person “documents the methods and results of the analysis that justify such determination.” The creation of the EdX data was overseen by Harvard professors in computer science and statistics with specific expertise in privacy and inference. They find a “low probability that the dataset will be re-identified” and their methods and analysis are well-documented . The main deviation from the Expert Determination standard is the difference between “very small” and “low” reidentification risk.
Conclusions
In short, we show that -anonymity – and QI-deidentification generally – fails on its own terms. Our attacks rebut three primary arguments that QI-deidentification’s practioners make to justify its continued use. First, we reidentify individuals in EdX dataset; it was “properly de-identified” by a “statistical experts” and in accordance with procedures outlined in regulation, meeting the high bar set by El Emam, et al. . Second, our downcoding attacks demonstrate that even if every attribute is treated as quasi-identifying, -anonymity and its refinements may provide no protection. Ours are the first attacks in either of these two settings. Third, our attacks also undermine the claim that QI-deidentification meets regulatory standards for deidentification. The compound PSO and reidentification attacks challenge -anonymity’s status under GDPR and FERPA respectively.
Moreover, our attacks show that QI-deidentification violates three properties of a worthwhile privacy notion, even in practice. Namely, avoiding distributional assumptions, robustness against post-processing, and smooth degradation under composition. We expand on these next.
Downcoding attacks prove that whatever privacy is provided by QI-deidentification crucially depends on unstated assumptions on the data distribution. One possible pushback is that our downcoding attacks use specially constructed distributions and hierarchies, not naturally occurring ones. But even a contrived counterexample proves that there is some unnoticed distributional assumption that is critical for security. Moreover, the distributions and hierarchies in Theorem 4.2 are not so unnatural when considering that data are made, not found (to quote danah boyd). Say an analyst wants to -anonymize a high dimensional dataset. One natural approach is to find a low-dimensional projection with clusters of about rows each, and then construct the generalization hierarchy over this representation. The result could easily satisfy conditions that enable our downcoding attack or a direct extension.
Robustness against post-processing requires that further processing of the output, without access to the data, should not diminish privacy. Downcoding proves that QI-deidentification is not robust to post-processing. Our attacks recover specific secret information about a large fraction of a dataset’s entries with probability close to 1. Also, the EdX dataset also proves that -anonymity is not robust to post-processing for purely syntactic reasons. The result of removing rows from a -anonymous dataset may not satisfy -anonymity as defined. We see this in the EdX data: it is not in fact -anonymous with respect to quasi-identifier (courses), despite claims otherwise. This fragility to post-processing is not so much a privacy failure as a syntactic weakness of the definition itself.
Smooth degradation under composition requires that a combination of two or more private applications mechanisms should also be private, albeit with worse parameters. The EdX dataset proves that QI-deidentification is not robust to composition, even when done by experts in accordance with strict privacy regulations. Ganta et al. present theoretical composition attacks, showing that if the same dataset is -anonymized with different quasi-identifiers the original data can be recovered . With the EdX dataset the possibility became reality. To the best of our knowledge, this is the first example of such a failure in practice.
The most important open question raised by this work is to characterize the power of downcoding attacks. What properties of a data distribution and generalization hierarchy enable downcoding? Is vulnerability to downcoding testable? In what settings is downcoding provably impossible? Can one demonstrated downcoding in the wild? We leave these questions for future work.
After reidentifying one EdX student, we reported the vulnerability to Harvard and MIT who promptly replaced the dataset with a heavily redacted one. Our IRB determined that this research was not human subjects research and did not need IRB approval. However, we were instructed by the IRB not to contact the reidentified LinkedIn users. The code used in our analysis of the EdX dataset is at https://github.com/a785236/EdX-LinkedIn-Reidentification, but we do not distribute the dataset itself to protect the students’ privacy.
References
Appendix A Additional background on the EdX dataset
We summarize the EdX dataset—the chosen quasi-identifiers, the implementation of -anonymization, and the resulting published dataset based on documentation included with the dataset and in two articles describing the creation of the dataset itself .
The raw dataset consisted of 841,687 rows for 597,692 students. Each row corresponded to the registration of a single student in a single course and included the information described above. IP addresses were used to infer a student’s location even when a student chose not to self-report their location. EdX considered username and IP address to be identifying. Each username was replaced by a unique 7-digit identification number (UID). A username appearing in multiple rows was replaced by the same UID in each. IP addresses were redacted.
After aggregating the rows by UID, can be seen as -anonymized with respect to 17 overlapping quasi-identifiers: as before and , where {gender, year of birth, country, enrolled in course , number of forum posts in course }.
The final published result includes 641,138 course registrations by 476,532 students across 16 courses.
As published, the EdX dataset had 641,138 rows, each representing to a single course registration for one of 476,532 distinct students. But the object of our privacy concerns is a student, not a student-course pair. We aggregated the rows corresponding to the same UID. We call the result .
The creators of the EdX dataset failed to identify which attributes are publicly available—the very thing that experts are supposed to be good at. Specifically, level of education and certificates of course completion are not included in any of the quasi-identifiers despite both being readily available on LinkedIn. The exclusion of certificates is particularly indefensible: at the same time as the EdX dataset was being created, EdX and LinkedIn collaborated to allows LinkedIn users to include cryptographically unforgeable certificates of completion on their profiles.
We consider a relaxation of the notion of effective anonymity which we call ambiguous effective anonymity. Let . The ambiguous effective anonymity of in with respect to is . Ambiguous effective anonymity helps us reason about what an attacker can infer from the dataset.
We say is unique with respect to if , and unambiguously unique if .
is never less than , and is very often greater in EdX. The presence of unambiguously unique records in a supposedly-anonymized dataset indicates a clear failure of syntactic anonymity. Considering ambiguous effective anonymity makes critiquing -anonymity much harder. We are giving -anonymity the benefit of all the additional ambiguity that comes from missing data rather than from the anonymizer itself.
Appendix B Deferred Proofs
Let be a hierarchy with nodes at the second level: (as in Figure 4). Let be a dataset, be a minimal hierarchical -anonymizer, and . For , let and let be the records in corresponding to the records in . If , then for all but at most one , for all .
Note that as defined, the generalized records in are not necessarily contained in . The claim says that if consists of data in the clusters , then the records in will be contained in for almost all clusters of size exactly .
First, we show that for any , a single coordinate of is generalized to if and only if every coordinate in is generalized to . Namely, if for some , then .
Suppose for contradiction that there exists corresponding to such that but for some . By the assumption on , there exists such that . Because , and hence . By -anonymity, there are at least additional records such that . Repeating the previous argument, .
Let . Construct by replacing all copies of in with . It is immediate that is -anonymous and respects the hierarchy. By the assumption that , strictly refines . Additionally, generalizes , because all altered rows were in . This contradicts the minimality of the -anonymizer . Therefore we have proved that if for some , then for all .
Next, we show that for all but at most one , there exists such that . By the preceding argument, it suffices to show that . Suppose for contradiction there exists such that for all , . Construct by replacing each with . It is easy to see that respects the hierarchy, satisfies -anonymity, generalizes , and strictly refines . This contradicts the minimality of the -anonymizer .
To complete the proof, let and suppose there exists such that . By -anonymity, there must be at least distinct . By assumption on , each such must be an element of . Because , every element of is equal to . ∎
The adversary takes as input and produces the output as follows. For , let . If , copy every into the output . Otherwise . By -anonymity consists of copies of a single generalized record . Let be the large coordinates of , and let be the number of large coordinates. If , then writes copies of to the output . Otherwise writes copies of and one copy of to the output, where
It is immediate from the construction that . Moreover, it is easy to arrange the records in so that for all . By construction, implies that differs from differs from on at at least coordinates.
To prove the theorem, it remains to show that w.h.p. and . Let consist of all the records that have at least one large coordinate (i.e., for some ).
For all , let and let be the records that correspond to the records in . (Whereas consists of all records that are in cluster , consists of only those records that correspond to generalized records that can be easily inferred to be in cluster based on .) A cluster is -good if and . A cluster is -good if and .
clusters are -good.
All but at most one -good clusters are -good.
For all -good clusters , and .
Note that if is both -good and -good, then . But there may be that are -good but not -good.
We lower bound \Pr[t\mbox{\mathbf{X}-good}] by a constant and then apply McDiarmid’s Inequality.
Combining the above, \Pr[t\mbox{\mathbf{X}-good}]=\Omega(1). Quantitatively, for , \Pr[t\mbox{\mathbf{X}-good}]\gtrsim 1/(e^{2}\sqrt{k})>1/30.
Thus there are -good values of with high probability.
Cluster is -good if and . First we show that for all but one -good , . Let be the records in corresponding to the records in . (Whereas consists of all records that correspond to , consists of only those records whose membership in can be easily inferred from .) Observe that . By construction, for all there exists such that with high probability (i.e., ). By Claim B.1, for all but at most one -good and every , . Thus .
Finally we show that for all -good as guaranteed by Claim B.1, with high probability. consists of copies of the same generalized record . Since is hierarchical, . By the -goodness of , contains large-noise record and small-noise records By correctness of the -anonymizer , . Minimality implies the converse: . With high probability, . Putting it all together,
By construction, . Because , . A simple Chernoff-then-union-bound argument shows that the probability that there exist distinct records such that is negligible. Hence is a singleton with high probability. follows immediately from the construction. ∎
The hierarchy consists of intervals centered at the cluster centers , for some . The hierarchy further subdivides each into a smaller interval , for some , and the complement .
B.2 Proof of Theorem 4.3
A -anonymizer groups records into equivalence classes such that if and are in the same class, then . In general, may have a lot of freedom to group the ’s the equivalence classes and also to choose the ’s that generalize each equivalence class.
Claim B.3 states that if is minimal and generalizes using hierarchy like in Figure 5, then it has much less freedom. Namely, is fully determined by the choice of equivalence classes (with probability at least over the dataset ). can group the ’s together, but then has no control over the resulting ’s.
Claim B.3 and its proof are meant to be read in the context of the proof of Theorem 4.3 and freely uses its notation.
Let and be the attribute domain. Records are sampled according to the distribution as follows. First sample uniformly at random. Then sample each coordinate of i.i.d. with and otherwise. In other words, consists of independent samples from .
All the will be distinct except with probability at most . If all are distinct, we say is collision-free. The remainder of the proof shows that the adversary succeeds with high probability conditioned on collision-free.
Figure 5 defines the generalization hierarchy. It consists of intervals and singletons for .
Claim B.3 states that the output of a minimal hierarchical -anonymizer must take a restricted form. For , let be the records in that correspond to a copy of . The claim states that
Moreover, if is collision-free then for all and :
Let be deterministic adversary that on input does the following. For , pick such that , . Let if no such exists. By the (2), all satisfying the above are identical. If , we define the following subsets of :
If , writes to the output , where
If is collision-free, then for every there is a unique such that . By (2) and the fact that , . Hence if is collision-free, then with high probability, proving the first part of the theorem. ∎
The following claims is meant to be read in the context of the proof of Theorem 5.2 and freely uses notation therefrom.
For , let be the records in that correspond to a copy of . If is collision-free, then for all and :
Both parts of the claim rely on the minimality of .
Recall that . Let be the set of all values in the th column of . collision-free implies that either or (probably both). Because is correct and hierarchical, . Hence, by construction of , for some . Let . Correctness requires . Moreover, replacing with would yield a -anonymous, hierarchy-respecting refinement of . By minimality of , . Hence, .
It remains to prove the bound on . Let and be an arbitrary partition of . For , define as:
Consider constructed by replacing every instance of in with or , using and copies respectively. By construction, correctly generalizes and respects the hierarchy . By the preceding argument, strictly refines with high probability. Thus, by minimality of , cannot be -anonymous. This means that for every partition , one of . Therefore, .
The following claim is used to prove Theorem 5.2. It is meant to be read in the context of Theorem 4.3 and freely uses notation therefrom.
Let , , , , , and as defined in the proof of Theorem 4.3. Let .
Equation (4) also holds for , .
The proof is an application of Chernoff and union bounds. We rewrite as .
For , let contain the records that correspond to a copy of . Consider , and let . We call SUPER if and . By Claim B.3, if is SUPER then . We will lower bound the number of SUPER .
For an index set , let . By Claim B.3,
Observe that if , then and (by -anonymity).
We call GOOD with respect to if there is a unique such that . Let . Observe that if and is SUPER, then is GOOD with respect to . Therefore
except with at most negligible probability (conditioned on collision-free).
For , . Putting it all together with a final union bound:
B.3 Theorems 5.1 and 5.2
Proofs for both compound PSO attacks follow the same general structure, using the corresponding downcoding attacks in non-black-box ways. The compound PSO adversary gets as input . It emulates the appropriate downcoding adversary, which produces an output such that .
To complete the proof, one must show that the following hold with probability at least :
The first three are implied by the following:
, there exists a unique such that .
, .
For the downcoding attack from Theorem 4.2, these properties are immediate. For the downcoding attack from Theorem 4.3, the first two are immediate and the third follows from Claim B.4.