Definition
Anonymity is the property that an observer cannot tell, with better than an accepted chance of being right, which member of a set of possible actors performed an action. That set is the anonymity set. Pfitzmann and Hansen’s terminology for privacy defines anonymity this way, relative to a named attacker. An anonymity claim therefore names the observer, the candidate set and what the observer already knows. Anonymity hides who acted. It does not hide what was done, which is confidentiality §1.8, nor whether two actions share an actor, which is unlinkability §5.46.
The idea
An employee reports misconduct through an online form that removes the sender’s name. That alone does not make the report anonymous. The employer’s network records show which computer opened the form at 14:02, only four people knew the facts in the report, and the writing style points to one of them. The name was removed; the identity was not hidden.
A police line-up is a fair picture. Anonymity is about how well the observer can point at the right person in the line-up. Two things shrink the line-up or tilt it toward one person: what the observer sees, such as network addresses and times, and what it knew before, such as who had access. So the useful question is not whether a name is present but how likely the observer’s best guess is to be right. The picture stops being accurate in one respect: an observer can also collect evidence across many actions over weeks, while a line-up is one moment.
How it works
An anonymity claim is complete when it states five things.
The action and the protected role. Sender anonymity hides who sent a message; recipient anonymity hides who received it; relationship anonymity hides who communicated with whom, even when the observer knows that both parties were active.
The observer and its powers. Candidates include the recipient, the operator of a server or relay, an eavesdropper on one network link, a global passive observer who sees every link, an active attacker who can delay, drop or insert messages, and several of these working together.
The candidate set. These are the actors who could have performed the action, as far as this observer can tell. A message sent through a service with 1,000 users, at a moment when the observer sees only 3 of them connected, has 3 candidates for that observer.
Auxiliary knowledge. This is what the observer knew before: its prior probabilities for the candidates and outside facts such as access lists, time zones, writing style and other data sets.
The measure. State how likely the observer’s best guess is to be right after it has seen everything it sees, and compare that with the chance it had before.
Mechanisms then remove evidence that would shrink or tilt the candidate set. A relay forwards messages so that the recipient sees the relay’s network address, not the sender’s. A mix, a relay that collects many messages, removes a layer of encryption from each and sends them out in a new order, also hides which incoming message became which outgoing one; the Traffic analysis defenses §5.47 entry explains these. A pseudonym, an identifier other than the person’s real name, hides the name but lets the observer connect every action done under it.
Data sets have the same problem. Removing names from records does not make them anonymous when ordinary attributes, such as postcode, date of birth and sex, single out a person in other available data; matching them is called re-identification. A release is called -anonymous when every record matches at least other records on such attributes.
Worked example
A team has 10 members, and the observer is their employer.
With no other information, each member is equally likely to be the author: the best guess is right with probability .
The employer knows that only 4 members had seen the document. The candidate set shrinks to 4, and the best guess is right with probability .
The writing style matches one of the 4. The employer now gives that person probability 0.7 and the other three 0.1 each, which sums to . The best guess is right with probability 0.7.
The candidate set still has 4 members, but it no longer behaves like 4. One summary is the Shannon entropy §5.26, the average uncertainty in bits, : Four equally likely candidates would give bits. The value is called the effective anonymity set size. The min-entropy, of the best guess’s probability, is bits, which corresponds to equally likely candidates. The min-entropy describes the observer’s best single guess, which is what identification needs.
Stated precisely
Let be the candidate set, the observer’s prior probability that candidate performed the action, and everything the observer sees. After seeing , the observer holds the conditional probability §15.43 for each candidate, computed by Bayes’ rule, the rule for updating probabilities after an observation. Two measures are common: the best-guess probability and the min-entropy. A bound on for every the observer can obtain is a claim about identification.
A stronger, relative claim says that the mechanism adds nothing to what the observer knew: for every candidate and every view, or close to it. It is often stated as a game. The observer chooses two candidates and ; a fair coin decides which of them performs the action; the observer sees its view and guesses . Its advantage is , and the claim is that the advantage is at most a small stated number for every strategy within the observer’s powers. With equal priors and views that are identical for all candidates, the best guess is right with probability exactly .
Each such claim holds only for the stated observer, the stated view and the stated prior. A different observer needs a new claim.
Limits and common mistakes
A large candidate set can hide one overwhelmingly likely actor, as the example shows. Count probabilities, not names.
Anonymity is not confidentiality. Encryption hides content but not who sent it, and anonymous delivery does not hide content; content can itself identify the author.
Anonymity is not unlinkability. Actions under one pseudonym can each be anonymous and still all be linked together. Linking helps the observer: if a pseudonym posts only when certain people are online, intersecting the candidate sets of many posts can leave a single person. This is called an intersection attack.
A claim against one observer does not cover another. A single relay hides the sender from the recipient but not from the relay operator. Low-latency anonymity networks such as Tor do not protect against an observer who watches both ends of a connection and matches the timing of the traffic; Tor’s designers state this limitation.
Removing identifiers is not anonymity. Remaining attributes, writing style, timing and metadata, the data about a communication rather than its content, can identify the actor.
Questions answered
What observer, candidate set, and auxiliary knowledge define the anonymity claim?
An anonymity claim is defined by three named things: the observer who tries to identify the actor, the candidate set of everyone who could have acted as far as that observer can tell, and the auxiliary knowledge that the observer brings in. The observer is described by what it sees and can do: for example the recipient, a relay operator, an eavesdropper on one link, a global observer of every link, or an active attacker who delays or inserts messages. The candidate set, also called the anonymity set, contains only actors that remain possible given that observer’s view, such as the users connected at the moment the message was sent. The auxiliary knowledge is the observer’s prior probabilities and outside facts: access lists, time zones, writing style, other data sets.
The claim then states a measure, usually how likely the observer’s best guess at the actor is to be right, and compares it with the chance before observation. Four candidates with probabilities 0.7, 0.1, 0.1 and 0.1 give an observer a 70% chance of naming the right person, even though the set has four members. Changing any of the three elements changes the claim: removing a name from a message hides nothing from an observer who sees the sender’s network address.
Related entries: Unlinkability (§5.46), Traffic analysis defenses (§5.47), Confidentiality (§1.8). Further reading: [99, 100].