Privacy by Design and Compliance Controls
ISC2 AI Security · Lesson 13 of 34 · 1:44:44
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Lesson 13 of the free ISC2 AI security series (pilot exam, domain 3, AI data management, privacy, and model security). In this lesson: privacy by design, tokenization and masking, anonymization and differential privacy, GDPR, HIPAA, and PCI DSS, privacy challenges of AI, and compliance evidence. With three quick checks and a recap, and Ravenmoor Payments, a fictional payment provider, as the running example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Useful, but private
Ravenmoor's analysts want to build a model on two years of transaction data, to spot new fraud patterns. The privacy team agrees, on one condition: no analyst, and no model, should expose who made each payment. This lesson covers privacy by design, and the techniques and laws that shape it.
Privacy by design
Privacy by design means building privacy into a system from the start, instead of adding it after launch. Consent, where it is the legal basis, must be informed, specific, and easy to withdraw. Purpose limitation means that data collected for one purpose, like fraud detection, is not silently reused for another, like marketing. Lawful usage requires a legal basis for each processing, and data minimization keeps only the fields that the purpose needs. Privacy by default completes the picture: the most protective settings apply, unless someone chooses otherwise.
Tokenization and masking
Several techniques protect data, while keeping it useful. Tokenization replaces a sensitive value, like a card number, with a token that has no meaning, while the real value stays in a secured vault. Systems can still join and count payments by token, and only the vault can map a token back. Masking hides all or part of a value, like showing only the last four digits, or it replaces real values with realistic fakes in test data. Pseudonymized data can still be linked back to a person, so it remains personal data under GDPR, while truly anonymized data cannot, and falls outside GDPR.
Anonymization and differential privacy
Anonymization is harder than it looks: removing names is not enough, because a few fields, like a postal code, a birth date, and a merchant, can single out a person. K-anonymity makes each row match at least k minus one others on such fields. Differential privacy goes further: it adds calibrated noise, so that a result barely changes whether any one person is in the data or not. A privacy budget, called epsilon, sets the tradeoff: a smaller epsilon means more noise, more privacy, and less accuracy. Noise injection can also happen during training, by adding noise to the model's updates, which limits what the model memorizes about any one person.
GDPR, HIPAA, and PCI DSS
Three regulations come up again and again. GDPR protects the personal data of people in the European Union, wherever the processing happens, with lawful bases, individual rights, and impact assessments for high-risk processing. HIPAA protects health information in the United States, and an AI provider that handles it for a covered entity must sign a business associate agreement. PCI DSS is the payment card industry's security standard for cardholder data, and tokenization can shrink the set of systems in its scope. Many countries and states add their own privacy laws, so map which ones apply to each AI system.
Privacy challenges of AI
AI brings its own privacy challenges. Models can memorize personal data from training, and repeat it in their outputs. The right to erasure is hard to honor once data has shaped the model's weights: you may need to retrain without it, or apply machine unlearning, so keep personal data out of training when you can. Privacy controls can also hide unintentional bias: if you delete every sensitive attribute, you can no longer check whether outcomes differ between groups. Some organizations keep those attributes apart, under strict access, only to test fairness.
Compliance evidence
Compliance needs evidence that these controls exist. Document your processing activities, and run a data protection impact assessment before high-risk AI processing. Sign data processing agreements with providers, or a business associate agreement for health data. And review the controls whenever the model, the data, or the purpose changes.
Recap
Let's recap. Privacy by design builds in consent, purpose limitation, lawful usage, data minimization, and protective defaults from the start. Tokenization and masking protect values, and only anonymized data falls outside GDPR. Differential privacy adds calibrated noise, with epsilon setting the tradeoff between privacy and accuracy. GDPR, HIPAA, and PCI DSS each shape how AI may use personal, health, and card data. And AI adds memorization, the right to erasure in model weights, and the tension between privacy and bias testing.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Ravenmoor’s analysts must link payments made with the same card across tables, without ever seeing card numbers; only the payment system may recover them. Which technique fits?
- Masking all but the last four digits
- Tokenization
- Differential privacy
- Anonymization
Show the answer
Tokenization
Tokenization, which keeps a consistent token for each card, while only the vault maps tokens back to the real numbers. “Masking all but the last four digits” is wrong, since many cards share the same last four digits, so masked values cannot link payments reliably. “Differential privacy” is wrong, because differential privacy protects aggregate results, and it gives no way to recover a value. And “Anonymization” is wrong, since anonymized data can never be traced back, even by the payment system.
Ravenmoor wants to publish fraud statistics by region, built from customer data, with a mathematical guarantee that nobody can learn whether a given customer is in the data. What fits?
- Masking customer names
- Encryption at rest
- Tokenization of card numbers
- Differential privacy
Show the answer
Differential privacy
Differential privacy, which adds calibrated noise to give exactly that kind of guarantee. “Masking customer names” is wrong, since masking names leaves other fields that can single people out. “Encryption at rest” is wrong, because encryption at rest protects stored data, not the published results. And “Tokenization of card numbers” is wrong, since tokenization protects individual values, and it gives no guarantee about statistics.
To protect privacy, Ravenmoor removed every demographic attribute from its credit data, and now it cannot check whether its credit model treats groups fairly. What is the best response?
- Keep them apart, only for fairness tests
- Nothing, since removing them prevents bias
- Add them back as inputs to the model
- Anonymize the model’s decisions
Show the answer
Keep them apart, only for fairness tests
Keep the attributes apart, under strict access, and use them only to test fairness. “Nothing, since removing them prevents bias” is wrong, since proxies can carry the same information, so bias can remain hidden. “Add them back as inputs to the model” is wrong, because using them as inputs can drive unfair decisions. And “Anonymize the model’s decisions” is wrong, since anonymizing the decisions makes the outcomes impossible to compare between groups.