Data Protection
Summary
Data must be protected in every state: at rest, in transit and in use. SY0-701 lists methods including geographic restrictions, encryption, hashing, masking, tokenization, obfuscation, segmentation and permission restrictions, each suited to different situations.
In plain words
Protect data by its state. Data at rest (in storage) uses whole disk, database or file encryption and ACLs. Data in transit (over a network) uses TLS or IPsec. Data in use (in RAM, registers, cache) can use trusted execution environments (TEEs) such as Intel SGX. Broader methods include geographic restrictions, encryption, hashing (integrity and password storage), masking, tokenization (replacing data with a token, used for payment cards), obfuscation (protecting source code), segmentation and permission restrictions.
Detailed explanation
- Data at rest: Stored data, protected with disk, file and database encryption and access controls.
- Data in transit: Data moving across networks, protected with TLS, IPsec and VPNs.
- Data in use: Data being processed in memory, protected with secure enclaves, access controls and memory protections.
Methods
- Geographic restrictions: Limiting where data can be stored or accessed.
- Encryption: Making data unreadable without the key.
- Hashing: Creating one-way digests to verify integrity or store password verifiers.
- Masking: Hiding parts of data, such as showing only the last digits of a card number.
- Tokenization: Replacing sensitive data with tokens mapped in a secure vault.
- Obfuscation: Making data hard to understand, such as through encoding or scrambling.
- Segmentation: Storing sensitive data on separate networks or systems.
- Permission restrictions: Limiting access through least privilege and access controls.
Important terms
taken from the text above- Data at rest
- Stored data, protected with disk, file and database encryption and access controls.
- Data in transit
- Data moving across networks, protected with TLS, IPsec and VPNs.
- Data in use
- Data being processed in memory, protected with secure enclaves, access controls and memory protections.
- Geographic restrictions
- Limiting where data can be stored or accessed.
- Encryption
- Making data unreadable without the key.
- Hashing
- Creating one-way digests to verify integrity or store password verifiers.
- Masking
- Hiding parts of data, such as showing only the last digits of a card number.
- Tokenization
- Replacing sensitive data with tokens mapped in a secure vault.
- Obfuscation
- Making data hard to understand, such as through encoding or scrambling.
- Segmentation
- Storing sensitive data on separate networks or systems.
- Permission restrictions
- Limiting access through least privilege and access controls.
Examples & real-world scenarios
- TLS protecting data in transit.
- Tokenization replacing a card number in a payment system.
- Masking showing only the last four digits of an SSN.
Scenario
A payment system must avoid storing real card numbers. Tokenization replaces each card number with a random token, so a breach of the token store exposes no usable card data.
Common mistakes
- Encrypting data at rest and in transit but forgetting data in use.
- Confusing masking (partly concealing for display) with tokenization (a random substitute value).
Practical skills
- Match a protection method to a data state.
- Distinguish masking, tokenization and encryption.
What I should remember
- Data in use: Hardest state to protect.
- Tokenization: Common for payment card data.
- Masking: Hides parts of values from view.
- Segmentation: Separates sensitive data from other systems.