Tokenization replaces a sensitive value, such as a payment card number, with a stand-in value called a token. Systems that only need to refer to the card keep the token, and the real card number is held in one secured place, the token vault, where only authorised systems are allowed to swap a token back.
The reason it exists is exposure. Order history, refunds, recurring billing, fraud reports and customer support all need to refer to a card. If every one of those systems stores the real number, every one is a place it can be stolen from and falls under the card industry’s security requirements. Tokenization is designed to keep the real card out of most of those systems, so that a breach of an order database exposes tokens instead of cards.
Tokenization 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 the vault model, one worked record, the traps, and the contrast with encryption.
What is tokenization?
A token is a stand-in value with no meaning on its own. The most common design, and the one this guide teaches, is the vault model, defined by three properties:
- The token is random. In the vault model, the token is generated with no mathematical link to the original card number.
- The mapping sits in a secured token vault. The vault records which token stands for which real value, and is the only place that can map a token back.
- Only authorised systems may swap a token back. Turning a token back into the real value is called detokenization. The vault allows it only for systems granted that permission, such as the payment system.
The other fields in the record are left as they are.
How tokenization works on one record
Take one customer record (sample data, not a real person or card; the card number does not pass the Luhn check that real issued card numbers pass):
| Field | Original value | Value in business systems |
|---|---|---|
| Name | Gagan Singh | Gagan Singh |
| Card number | 4539 1488 0353 6467 | 7710 2291 5836 6467 |
When the card number first arrives, it is sent to the tokenization system. The system generates a random token, stores the pair 4539 1488 0353 6467 and 7710 2291 5836 6467 in the vault, and hands the token back. From then on, the order, reporting and support systems store only 7710 2291 5836 6467. The name is left as it was.
Notice the last four digits. This scheme keeps 6467 unchanged, so a support agent can still confirm the card with a customer (“the card ending 6467”) without ever seeing the full number. Token schemes vary in what they keep.
Unlike a masked copy, there is a way back. When the payment system needs the real card for a refund or a renewal, it sends the token to the vault, and the vault looks the token up and returns the card number. A thief who steals the order database gets tokens that do not reveal the real card, because in the vault model only the vault can map them back.
Variants of tokenization
The vault model is not the only design. The PCI Security Standards Council’s Tokenization Guidelines (2011) list random, hash-based and cryptographic ways of generating tokens.
- Vault-based (random) tokens: the design above. The token is looked up, not calculated.
- Vaultless and cryptographic tokens: the token is derived from the original using a secret key or a cryptographic algorithm, with no lookup table. These schemes use keys, so key management applies, and “a token has no key” is true only of the vault model.
- Hash-based tokens: the token is produced by hashing the original. A plain hash of a card number is weak, because there are few enough possible card numbers to try them all, so these schemes need a secret key as well.
- Format-preserving tokens: the token keeps the length and shape of the original, as in the sample, so existing databases and forms keep working. A well-designed scheme still lets systems tell a token from a real card; the sample token also fails the Luhn check.
- Single-use and multi-use tokens: a single-use token stands for one transaction; a multi-use token always stands for the same card, which supports recurring billing.
Where tokenization is used
Payment cards are the classic case, but the idea fits any value many systems refer to and few need to read:
- Merchants storing cards for refunds, subscriptions and one-click purchases.
- Payment providers that run the vault, so the merchant stores only tokens.
- Call centres and support teams, who confirm a card by its last four digits.
- Other sensitive identifiers, such as bank account or national identity numbers.
Scope is the main reason businesses adopt it. PCI DSS, the card industry’s security standard from the PCI Security Standards Council, applies to the cardholder data environment: the systems, people and processes that store, process or transmit card data, and those connected to them. Scope means the systems that must meet the standard and be audited. Replacing card numbers with tokens can reduce the number of systems in PCI DSS scope, depending on how the tokens are used. A system that holds only tokens, and cannot reach the vault or real card numbers, may fall outside it. The scope itself is set through the PCI DSS scoping process and confirmed at assessment.
Where tokenization goes wrong
Tokenization moves risk rather than removing it.
The vault stays in scope and becomes a high-value target
Every real card number now sits in one place, together with the map to every token. The vault stays in PCI DSS scope, and an attacker who breaches it may reach every card at once. It needs the strongest protections in the environment: strict access control, encryption of the stored card numbers and monitoring.
Systems that can detokenize stay in scope
Any system that can swap a token back for a real card is, in effect, a system with access to card data. The tokenization system and every system allowed to detokenize stay in scope. Granting detokenization widely, for convenience, keeps more systems in scope, so detokenization rights need least privilege.
Scope reduction is not automatic
Introducing tokens does not by itself take a system out of scope. A system that still receives real card numbers somewhere, keeps old card numbers in logs or backups, or shares a network with the vault without segmentation, may still be in scope. The assessment decides, not the project plan.
The rest of the record is still personal data
Tokenizing the card does nothing for the name next to it. In the sample, Gagan Singh is still there in full. Tokenization of a direct identifier can be one way of achieving pseudonymisation in the GDPR sense, but data that can be linked back to a person is still personal data.
Tokenization vs encryption
Tokenization’s nearest neighbour is encryption, which turns data into an unreadable form called ciphertext, often with symmetric encryption. Both replace a readable value with an unreadable one, which is why they are easy to confuse.
| Tokenization (vault model) | Encryption | |
|---|---|---|
| How the stand-in is made | Generated at random | Calculated from the original with a key |
| Link to the original | None, mathematically | A mathematical transformation |
| How the original comes back | Looked up in the vault | Decrypted with the key |
| Who can bring it back | Only systems the vault authorises | Anyone who holds the key |
| What an attacker needs | Access to the vault | The key |
| Typical effect on PCI DSS scope | Token-only systems may leave scope | Encrypted card data is usually still in scope |
The difference shows when data is stolen. Anyone who obtains the key can decrypt an encrypted card number, wherever the ciphertext has travelled. A vault token has no key, because it is looked up in the vault, so a stolen token is useful only to someone who can also get the vault to answer.
A simple rule separates them: encryption protects data so that key holders can read it anywhere, while tokenization keeps the real value in one place and gives everyone else a stand-in.
How a CISSP scenario may test tokenization
Scenarios on data obfuscation tend to describe a business need and ask which technique meets it. Patterns worth recognising:
- A retailer wants to reduce the number of systems handling card data while still supporting refunds or recurring billing. That points towards tokenization.
- The stem asks what remains in scope after tokenization. A candidate is expected to see that the vault, the tokenization system and any system that can detokenize stay in scope.
- Tokenization and encryption appear as options side by side. The deciding detail is likely to be whether those systems should hold a key, or nothing that reveals the card.
- A breach of the token vault is described. The answer is likely to concern vault protection and detokenization access.
- Support staff need to confirm a card without seeing it. A token that keeps the last four digits and a screen that shows only those digits may both appear; read whether the stored value changes.
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 tokenization the answers are: yes, only authorised systems through the vault, the stored value changes in the systems that hold tokens while the real value is kept in the vault, and the other fields in the record still need checking.
Conclusion
Tokenization keeps the real card number in one secured vault and gives every other system a stand-in that does not reveal it. In the vault model the token is random and the only way back is through the vault, for authorised systems. That is why it can reduce PCI DSS scope, and why the vault and every system that can swap a token back stay in scope.
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 what stays in scope after a control is applied, with full explanations for every answer.
Quick reference for the CISSP exam
In the vault model, a token is looked up, not decrypted, and the vault and any system that can swap a token back stay in scope.
Tokenization defined
- Replaces: a sensitive value, such as a card number, with a stand-in token.
- Token: random in the vault model, with no mathematical link to the original.
- Way back: the token vault, for authorised systems only (detokenization).
The tokenization vs encryption discriminator
- Encryption: calculated with a key; anyone who holds the key can decrypt.
- Tokenization (vault model): no key for the token; it is looked up in the vault.
- Vaultless and cryptographic schemes use keys.
PCI DSS scope
- Tokens can reduce the number of systems in scope, depending on how they are used.
- Scope is set through the PCI DSS scoping process and confirmed at assessment.
- The tokenization system and any system that can detokenize stay in scope.
The traps
- The vault stays in scope and becomes a high-value target.
- Wide detokenization rights keep more systems in scope.
- A token protects the card, not the name beside it.