Collecting less, and holding it in safer forms

8 min 4 sections 5 practice questions 4 sources citedISC2 objective 2.4

Every detail an organisation collects about a person is a detail it must then protect, keep accurate and one day destroy. The cheapest protection is not to collect what is not needed. Where data must be held, it can often be held in a form that reveals less. No background is assumed. A security professional needs the rules of fair collection and four methods that are easily confused: masking, tokenisation, pseudonymisation and anonymisation.

By the end of this unit you will be able to:

  • Explain why collecting less data reduces risk at every later stage
  • Explain notice, lawful basis, purpose limitation and data minimisation
  • Tell apart masking, tokenisation, pseudonymisation and anonymisation
  • Choose the method that fits a described need, and say whether the result is still personal data

A loyalty card that asked for a driving licence

An illustrative example

A bakery with four shops launches a loyalty card. Its sign-up form, copied from a template, asks for name, email, home address, date of birth and mobile number. It also asks for a photograph of a driving licence, to stop people opening two accounts.

The bakery uses only the email address, to send a voucher after every tenth loaf. Two years later its sign-up website is broken into. The details and licence photographs of 9,000 customers are copied.

Which of the stolen details did the bakery ever need, and what would the thief have got if the form had asked only for those?

Data that was never collected cannot be lost

Data collection is the moment an organisation obtains information: from a form, a purchase, a camera, a sensor or another organisation. It is where the life of the data begins. What is decided here fixes how much there is to protect at every later stage.

Each item collected has a cost that lasts as long as the item does. It must be classified, stored safely, kept accurate, produced if the person it describes asks to see it, and destroyed on time. If the store is broken into, it is one more thing stolen.

The first control is therefore to collect less. The bakery needed an email address. Everything else on its form was with no return. A form that never asks for a passport number can never leak one.

Limiting collection in this way is often called collection limitation. The approves what a form or a system collects. The security professional's part is to ask, of each item, what it is for.

Four rules for collecting personal data

laws turn that good sense into duties. The European Union's General Data Protection Regulation (GDPR) is the usual reference, and many other laws follow its pattern.

Notice
At the time of collection, people are told who is collecting their data, for what purposes, on what legal basis and who will receive it. The document that tells them is a privacy notice. Collecting in secret, or for a purpose not stated, breaks this rule.
Lawful basis
The collector needs one of the grounds the law allows. The GDPR lists six: the person's consent, a contract with the person, a legal obligation, protecting someone's life, a public task, and the collector's legitimate interests.
Purpose limitation
Data is collected for specified, explicit and legitimate purposes and is not then used for something incompatible. An address given for a delivery is not permission to send advertising.
Data minimisation
Only data that is adequate, relevant and limited to what the purpose needs is collected.

The four rules apply together. A form can have a lawful basis and a clear notice and still fail, because it asks for more than its purpose needs.

Four ways to hold less identifying data

Some data must be held, yet most of the people and systems that touch it do not need all of it. Four methods reduce what they see. De-identification is the general term for any process that removes the link between data and the person it describes.

Masking hides part of a value when it is shown or copied. A screen shows a card number as twelve stars and the last four digits. A copy of a customer database made for testing has every name replaced. The real value still exists in the original system.

Tokenisation replaces a value with a token: a stand-in with no meaning of its own, usually a random number of the same length. The real value is kept in one heavily protected store, the token vault, with the table that links each token to its value. Other systems keep and pass around only tokens. Payment cards are the standard use. A thief who copies a shop's tokens has nothing that can be spent.

Pseudonymisation replaces the details that identify a person, such as name and address, with a code. The list that links each code to a real person is kept separately and protected. A hospital gives researchers records under patient codes and keeps the list itself.

Anonymisation removes or alters data so that no person can be identified from it by anyone, and no list exists to reverse it. Published statistics, such as the number of patients each ward treated, are the usual result.

One purchase record, four ways

Masked: Asha Verma, card XXXX XXXX XXXX 9010, spent 42 pounds.

Tokenised: Asha Verma, card 7731 0098 4412 6605, spent 42 pounds. The card number shown is a token, and the real number is in the vault.

Pseudonymised: customer K-2041 spent 42 pounds. A separate, protected list says that K-2041 is Asha Verma.

Anonymised: 310 customers spent between 40 and 50 pounds in March.

Which can be undone, and which is still personal data

Four methods compared
MethodWhat it doesCan it be reversedStill personal dataTypical use
MaskingHides part of a value on display or in a copyNot from the masked copy. The original is unchangedThe original isCard numbers on screens and receipts, test copies
TokenisationSwaps a value for a meaningless stand-inFor a random token, only by looking it up in the token vaultYes, while the vault existsPayment card numbers
PseudonymisationSwaps identifying details for a codeBy whoever holds the list of codesYesResearch and analysis on records about people
AnonymisationRemoves the link to any person for goodNoNoPublished statistics

The legal line falls between the last two rows. The GDPR treats pseudonymised data as , because the list can restore the link. Truly anonymous information is outside the law altogether.

Anonymisation is harder than it sounds. Removing names is not enough when the details left behind can be matched against other sources. That matching is re-identification, a form of inference. A set of data is anonymous only when such matching has been tried and fails.

Tokenisation and differ in one way that matters. Encrypted data can be recovered by anyone who obtains the key, wherever the data is. A token drawn at random and kept in a vault cannot be worked back to its value by any calculation. The value is found only by asking the vault. Some systems make tokens by encrypting the value. Those tokens are encrypted data and are protected only as well as the key.

Mask to hide part. Tokenise to swap a value. Pseudonymise to swap an identity and keep the list. Anonymise to cut the link for good.

A question, worked through

A hospital wants a university to study five years of treatment records, to find which patients are most likely to be readmitted. The researchers need each patient's age, conditions and admission dates across the five years. They do not need names or addresses. If the study flags a patient as high risk, the hospital wants to be able to contact that patient. The privacy officer asks how the records should be prepared.

Which method BEST meets the hospital's needs?

  1. Anonymise the records before they are sent
  2. Pseudonymise the records and keep the list
  3. Mask the names when the records are shown
  4. Encrypt the records and send the key too
Decide on your answer, then open the reasoning
  1. Three needs must be met at once. The researchers must not see who the patients are. One patient's admissions must still link together across five years. The hospital must be able to get back to a real patient.
  2. Rule out d: encryption protects the records on the way. Once the researchers use the key, they see everything, names included.
  3. Rule out c: masking a name on display hides it from a viewer. It gives the researchers no steady code to link one patient's admissions, and no route back to the patient.
  4. Between a and b: both hide identity from the researchers. Anonymisation cuts the link for good, so a high-risk patient could never be contacted.
  5. Pseudonymisation gives each patient a code, and the hospital keeps the list. That is option b. The coded records are still personal data, so the university needs a contract and proper safeguards.

Answer: B. Pseudonymise the records and keep the list

Choosing between good answers

One answer avoids collecting a detail and the others protect it after collection
prefer the answer that avoids collection, if the purpose can be met without the detail.
The organisation must be able to get back to the real person or value
rule out anonymisation. Choose pseudonymisation for records about people and tokenisation for values such as card numbers.
A question says the data must fall outside privacy law
choose anonymisation, and only where re-identification is not reasonably possible.
Only part of a value needs hiding on a screen, a receipt or a test copy
choose masking.
An answer treats consent as the only lawful way to collect personal data
reject it. Consent is one of six lawful bases under the GDPR.

Try it

A product collects more than its privacy notice says. Decide what to do when told to keep quiet.

Loading the preview.

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

Match each method to the need it fits best.

Choose the match for each entry. Every match has to be right.

What to remember

  • Collect only what the purpose needs. Data never collected cannot be lost, and costs nothing to protect.
  • Personal data is collected with notice, on a lawful basis, for stated purposes, and limited to what those purposes need.
  • Masking hides part of a value. Tokenisation swaps a value for a meaningless stand-in whose real value sits in a vault.
  • Pseudonymisation swaps identifying details for a code and keeps the list. The result is still personal data.
  • Anonymisation cuts the link to any person for good. Only anonymous data is outside privacy law, and removing names alone does not achieve it.

Say it from memory

  1. What rules govern the collection of personal data?

    Collect only what the purpose needs: data minimisation. Tell people who is collecting, why and on what legal basis: notice. Have a lawful basis, of which consent is one of six under the GDPR. Use the data only for the purposes stated: purpose limitation. The data owner approves what is collected.

    Read this part again

  2. What is collection limitation, who approves what a form collects, and what does the security professional ask?

    Limiting what is collected, because each item carries a cost for as long as it is held, and a form that never asks for an item can never leak it. The data owner approves what a form or a system collects. The security professional asks, of each item, what it is for.

    Read this part again

  3. How do masking, tokenisation, pseudonymisation and anonymisation differ?

    Masking hides part of a value when it is shown or copied. Tokenisation replaces a value with a meaningless stand-in, keeping the real value in a token vault. Pseudonymisation replaces identifying details with a code, keeping the linking list separately. Anonymisation removes or alters data so no person can be identified by anyone, with no list to reverse it.

    Read this part again

  4. Under the GDPR, which of these methods still leaves personal data, and how does a random token differ from encrypted data?

    Pseudonymised data is still personal data, because the list can restore the link; truly anonymous information is outside the law. Encrypted data can be recovered by anyone who obtains the key. A random token cannot be worked back by any calculation; the value is found only by asking the vault.

    Read this part again

Sources