Pseudonymisation (spelled pseudonymization in American English) replaces the details that identify a person, such as a name, with a code, such as a customer number, and keeps the link between the code and the person in a separate, protected place. The people working with the data can still tell one customer from another, but they cannot see who each customer really is.
Many tasks need to follow individuals without knowing their identity. An analytics team studying card use needs to know that the same customer made these ten purchases, but not that customer’s name. A research team following patients over several years needs to connect each new result to the right earlier one, and it may one day need to contact a participant, so the way back has to be kept rather than destroyed.
Pseudonymisation is one member of the family of data obfuscation techniques, and it sits under CISSP Domain 2, Asset Security, where the ISC2 exam outline asks candidates to determine data security controls and compliance requirements. This guide explains what it is, where it goes wrong, and why it is not anonymisation.
What is pseudonymisation?
The term comes from the General Data Protection Regulation (GDPR), the European Union’s data protection law and the main reference privacy law for this topic. GDPR protects personal data, which in plain words is any information about a person who is identified or can be identified, either directly by a name or indirectly through details such as an account number, a location or a combination of facts.
GDPR Article 4(5) defines pseudonymisation as processing personal data so that it can no longer be linked to a specific person without additional information. That additional information, usually a lookup table or a key, must be kept separately and protected by technical and organisational measures. The UK GDPR, which kept the EU text in UK law, uses the same definition.
Three properties follow from the definition:
- A code replaces the identity. The working data holds codes in place of names and other direct identifiers.
- A way back is kept on purpose. The lookup table, or the key, can turn each code back into the real person.
- The way back is held apart. The table is stored separately from the pseudonymised data, under its own access control, so that the people who use the data cannot reach it.
Still personal data
The most important consequence is legal. Because someone can still restore the identity, GDPR Recital 26 says that pseudonymised data is still personal data. GDPR also names pseudonymisation as a safeguard: Article 25 lists it as a measure for data protection by design, and Article 32 lists it among the measures for security of processing. It lowers the risk, and it can reduce the harm of a breach, but the law still applies in full.
How pseudonymisation works on one record
Take one customer record (sample data, not a real person or card), and follow it in two steps:
| Step | Name | Card number |
|---|---|---|
| Original record | Gagan Singh | 4539 1488 0353 6467 |
| Name swapped only | Customer 48213 | 4539 1488 0353 6467 |
| Card masked as well | Customer 48213 | •••• •••• •••• 6467 |
In the first step only the name is swapped for a code. The name is gone, so it is tempting to call the record anonymous. It is not, because the full card number is still there, and a card number points to one person just as clearly as a name does.
In the second step the card number is masked as well, and only the last four digits stay. The analytics team now works with Customer 48213 and a partial card, which is enough to group purchases by customer and study patterns.
The link is not destroyed. A separate lookup table records that Customer 48213 is Gagan Singh. Anyone who holds that table can turn the code back into the real name, which is why the table is stored apart from the pseudonymised data and protected separately. Deciding to pseudonymise, and who may hold the table, is a decision for the data controller; the data security roles guide explains how the controller, the processor and the other roles divide that responsibility.
Common ways to produce the code
The choice of method affects how safe the result is:
- A counter: each new person gets the next number. It is simple, but the order of the numbers can reveal the order in which people joined.
- A random code: each person gets a random value, recorded in the lookup table. Nothing about the code reveals the person.
- A keyed hash: a function such as HMAC combines the real value with a secret key to produce the code. The same person always gets the same code, so records stay joined up, and the secret key plays the part of the additional information. A plain hash without a key is weak, because anyone can hash a list of likely names or email addresses and compare the results.
- Encryption: the identifier is encrypted, and the decryption key is the additional information. Whoever holds the key can restore the value.
- Tokenization: tokenization swaps a value for a stand-in and keeps the real value in a protected vault. Used on personal data, it is one way of achieving pseudonymisation, with the vault acting as the lookup table.
In every case the table, the key or the vault is the way back, so it has to be kept separately and protected.
Where pseudonymisation is used
Pseudonymisation fits wherever people need to follow individuals in the data without knowing who they are:
- Research, especially medical and social research, where results are linked over time and a participant may need to be contacted later. GDPR Article 89 also mentions pseudonymisation among the safeguards for research and statistics.
- Analytics, where a team studies behaviour per customer without seeing names.
- Internal sharing, where one department passes data to another that needs records, not identities.
It also supports data minimisation: the people using the data receive only what the task needs.
Where pseudonymisation goes wrong
Treating pseudonymised data as anonymous
A code in place of a name looks anonymous, so teams may relax their controls or share the data more widely. But the identity can still be restored by whoever holds the lookup table, so the data is still personal data, and every rule that applied before still applies.
Another field still points to one person
Swapping the name is not enough on its own. In the sample record, the full card number identified the customer as clearly as the name. Email addresses, phone numbers, exact dates of birth, full postcodes and rare combinations of details can do the same. Any field that still points to one person is masked, generalised or removed.
The lookup table is kept too close
The protection depends on the table being separate. If the table sits in the same database, or the same people can read both the data and the table, the code adds very little. The same applies to a weak code: a plain unkeyed hash of an email address can be matched without any table, by hashing a list of known addresses.
Pseudonymisation vs anonymisation
Pseudonymisation’s nearest neighbour is anonymisation, and the two are often confused because both remove the name.
| Pseudonymisation | Anonymisation | |
|---|---|---|
| Way back to the person | Yes, through the lookup table or key | No; no table exists |
| How it is done | The name is swapped for a code | Details are removed or generalised |
| Example output | Customer 48213 •••• •••• •••• 6467 | Male, 40 to 45, London region |
| Status under GDPR | Still personal data | Outside GDPR, if truly anonymous |
| Typical use | Research, analytics, internal sharing | Publication and open statistics |
| Main weakness | Whoever holds the table can restore the identity | Combinations of fields can still single out a person |
Anonymisation turns details into broader categories, such as an age band and a region, and keeps no lookup table at all. The goal is that the person can no longer be identified by any means reasonably likely to be used, from this data alone or combined with other available information.
A simple rule separates them: if anyone can bring the identity back, it is pseudonymisation, and the data is still personal data.
How a CISSP scenario may test pseudonymisation
Scenarios on data obfuscation tend to describe a business need and ask which technique meets it. Patterns worth recognising:
- A research or analytics team needs to follow individuals over time without knowing who they are. That points towards pseudonymisation.
- The scenario says the identity may need to be restored later, for example to contact a participant. Pseudonymisation keeps that option; anonymisation does not.
- The stem calls pseudonymised data anonymous and suggests relaxing controls. A candidate is expected to see that the data is still personal data under GDPR.
- The lookup table is stored with the data, or the same team can read both. The answer is likely to be separating the table and protecting it.
- A name is replaced but another identifier remains, such as a full card number or an email address. A candidate is expected to see that the record still points to one person.
Asking four questions usually separates the options: does the original need to come back, who may bring it back, is the stored data changed or only what is shown, and what other data could identify the person. For pseudonymisation the answers are: yes, it may; only whoever holds the separately kept lookup table; the stored working data changes, with the link held apart; and every remaining field still needs checking.
Conclusion
Pseudonymisation swaps a person’s name for a code and keeps the link in a separate, protected lookup table. It lets teams follow individuals without seeing who they are, and GDPR names it as a safeguard because it lowers risk. Remember that the data is still personal data, because the way back exists, and that swapping the name achieves little if another field still points to one person or the table is not kept apart.
Ready to test that under exam conditions? Our LSM CISSP practice tests are built around scenario questions like these: choosing the right data protection technique for the business need, and spotting when pseudonymised data is being treated as anonymous, with full explanations for every answer.
Quick reference for the CISSP exam
Pseudonymisation replaces a person’s identifying details with a code and keeps the link in a separate, protected lookup table. Under GDPR, the result is still personal data.
Pseudonymisation defined
- Source: GDPR Article 4(5); the UK GDPR uses the same definition.
- Changes: the identifiers in the working data, replaced with codes.
- Way back: yes, through the lookup table or key, kept separately and protected.
- Purpose: research, analytics and internal sharing that need records, not identities.
The pseudonymisation vs anonymisation discriminator
- Pseudonymisation: a way back exists; still personal data.
- Anonymisation: no way back by any means reasonably likely to be used; outside GDPR.
The traps
- Pseudonymised data is not anonymous; whoever holds the lookup table can restore the identity.
- Swapping the name is not enough if another field, such as a full card number, still points to one person.
- A lookup table stored with the data, or a plain unkeyed hash, adds little protection.
Key takeaway
Pseudonymised data is still personal data, because whoever holds the lookup table can restore the identity.