Cryptography and Data Protection for AI
ISC2 AI Security · Lesson 15 of 34 · 1:58:52
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 15 of the free ISC2 AI security series (pilot exam, domain 3, AI data management, privacy, and model security). In this lesson: data security posture management, DLP and semantic filtering, encryption in every state, key management, purpose-based access, and sanitizing AI storage. 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.
Where is the card data?
Ravenmoor's data now sits in data lakes, vector databases, notebooks, and the logs of three AI providers. When an auditor asks where cardholder data is, and who can reach it, nobody can answer with confidence. This lesson covers the tools and the cryptography that protect AI data.
Data security posture management
Data security posture management, or DSPM, starts by finding the data. It scans cloud stores, databases, and AI pipelines, discovers sensitive data, and classifies it automatically. It then maps who and what can reach that data, and flags risky exposure, such as a public storage bucket, overly broad access, or cardholder data copied into a training area or a vector database. For AI, it answers the question that nobody at Ravenmoor could: where is our sensitive data, and how is it used?
DLP and semantic filtering
Data loss prevention, or DLP, stops sensitive data from leaving where it belongs. Classic DLP matches patterns, like card number formats, keywords, or fingerprints of known documents. AI traffic needs more: semantic filtering understands meaning, so it catches a confidential plan pasted in paraphrase, or a summary that reveals a secret without quoting it. Apply it in both directions: on prompts that leave for a provider, and on outputs that return to users or agents. Tune it to limit false positives, or people will route around it.
Encryption in every state
Encryption must cover data in each of its states. At rest, encrypt databases, data lakes, model weight files, and backups, typically with AES-256. In transit, protect every connection with TLS, including the calls between services, agents, and model providers. In use, data is normally decrypted in memory, so confidential computing keeps it inside trusted execution environments while it is processed. Homomorphic encryption even allows some computing on encrypted data, but it remains slow for most AI workloads.
Key management
Encryption is only as strong as its key management. A key management service, or KMS, creates, stores, and controls keys centrally, often backed by hardware security modules, and it logs every use. With bring your own key, or BYOK, you generate the key material and import it into the provider's KMS, so you can disable it and cut off access to your data. Secrets such as API keys and tokens belong in a secrets manager, not in code, notebooks, or prompts. And key rotation replaces keys on a schedule, and at once after a suspected compromise, which limits the damage of any single key.
Purpose-based access
Role-based access asks who you are, while purpose-based access also asks why you need the data. A fraud analyst may reach payment data for fraud detection, but not to build a marketing list. Restricted data, such as cardholder data, adds stronger conditions, like approvals, masking, or a secure enclave. AI agents need the same discipline: an agentic AI data catalog lists each dataset with its owner, its classification, and the purposes it may serve. The agent then reaches data only through the catalog, which checks the purpose of each task before it grants access.
Sanitizing AI storage
AI storage is dense: GPU servers and large flash arrays hold many models and datasets on a few drives. Overwriting is unreliable on flash, because the drive spreads writes across hidden spare blocks, and degaussing does nothing to it. Cryptographic erasure is the practical answer: if the data was encrypted, destroying the keys leaves it unreadable, in seconds, and the drive can be reused. For the most sensitive data, or for failed drives, destroy the media, for example with micro-shredding into tiny particles. Follow NIST guidance on media sanitization, and keep a certificate for each drive.
Recap
Let's recap. Data security posture management finds and classifies sensitive data, and flags risky exposure. Semantic filtering extends data loss prevention to the meaning of AI inputs and outputs. Encrypt data at rest, in transit, and in use, with keys in a key management service, your own keys where you need control, secrets in a manager, and regular rotation. Purpose-based access and agentic data catalogs limit data to the purpose of each task. And cryptographic erasure or physical destruction sanitizes dense AI storage.
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.
An employee pastes Ravenmoor’s unreleased acquisition plan, rewritten in plain words, into a public AI tool, and pattern-based DLP does not fire. What control would have caught it?
- Semantic filtering on AI inputs
- A stricter card number pattern
- Encryption of the plan at rest
- Monthly key rotation
Show the answer
Semantic filtering on AI inputs
Semantic filtering understands meaning, so it catches confidential content even when it is rewritten. “A stricter card number pattern” is wrong, since the plan contains no card numbers, so a card pattern would not match. “Encryption of the plan at rest” is wrong, because the employee had legitimate access to the plan, and pasted it as plain text. And “Monthly key rotation” is wrong, since key rotation limits the damage of a compromised key, and it does not inspect prompts.
Ravenmoor stores training data with a cloud AI provider, and wants the power to make that data unreadable at any time, without the provider’s help. What fits?
- TLS on every connection
- Masking of the training data
- Its own key, which it can disable
- A higher request quota
Show the answer
Its own key, which it can disable
With bring your own key, Ravenmoor controls the key material, and disabling the key makes the data unreadable. “TLS on every connection” is wrong, since TLS protects data in transit, not stored data. “Masking of the training data” is wrong, because masked data stays readable, and masking gives Ravenmoor no control over storage. And “A higher request quota” is wrong, since a request quota limits usage, and it does not protect data.
Ravenmoor is retiring flash drives that held model weights and cardholder data, and wants to reuse them. The drives were encrypted from day one. What is the best method?
- A single overwrite pass
- Cryptographic erasure
- Degaussing the drives
- Deleting the files and folders
Show the answer
Cryptographic erasure
Cryptographic erasure destroys the keys, so the encrypted data becomes unreadable, and the drives can be reused. “A single overwrite pass” is wrong, since a single overwrite pass can miss the hidden spare blocks of flash drives. “Degaussing the drives” is wrong, because degaussing has no effect on flash memory. And “Deleting the files and folders” is wrong, since deleting files only removes references, and the data remains on the drive.