This chapter covers cryptographic key management, a critical topic for the SY0-701 exam under Objective 1.4 (General Security Concepts). Key management encompasses the generation, storage, distribution, rotation, and destruction of cryptographic keys. Mismanagement of keys undermines even the strongest encryption algorithms, making this a high-risk area that the exam tests heavily. You will learn the specific mechanisms, standards, and pitfalls that every security professional must know.
Jump to a section
Imagine a bank vault that stores millions of dollars in cash and valuables. The vault has a single massive steel door with a combination lock. The bank manager holds the master combination, but they cannot open the vault every time a teller needs to deposit cash. Instead, the bank uses a hierarchical key system: the manager uses the master combination to open a secure inner box that contains daily keys for the tellers. Each teller gets a unique daily key that works only during their shift and only on a specific lockbox within the vault. The master combination is stored in a separate safe in the manager's office, which itself requires two keys held by two different executives (dual control). The daily keys are generated by a key machine that takes the master combination as input and produces cryptographically secure daily keys. If a daily key is lost, it can be revoked without changing the master combination, but a new daily key is issued. The manager periodically changes the master combination (key rotation) and keeps a log of who accessed the inner box (audit). An attacker who steals a daily key can only access one lockbox for one day, not the entire vault. This mirrors cryptographic key management: the master combination is the root of trust (key encryption key), daily keys are data encryption keys, dual control is split knowledge, the key machine is a key derivation function, and the log is an audit trail. The mechanism of hierarchical key derivation and separation of duties protects the most sensitive secret while enabling day-to-day operations.
What Is Cryptographic Key Management?
Cryptographic key management is the set of processes and procedures for handling cryptographic keys throughout their lifecycle: generation, storage, distribution, usage, rotation, backup, recovery, and destruction. The goal is to protect keys from unauthorized access, modification, or loss while ensuring they are available for legitimate use. Even the strongest encryption algorithm (e.g., AES-256) is useless if the key is compromised. The SY0-701 exam focuses on key management best practices, including the use of hardware security modules (HSMs), key encryption keys (KEKs), and key rotation policies.
Key Lifecycle Stages
Every key passes through several stages:
- Generation: Keys must be created using a cryptographically secure random number generator (CSPRNG). Weak random number generators (e.g., using rand() in C) can produce predictable keys. NIST SP 800-133 specifies approved methods for key generation.
- Storage: Keys must be stored securely, often encrypted under a KEK. Storage locations include HSMs, TPMs, or secure enclaves. Storing keys in plaintext on disk or in environment variables is a common vulnerability.
- Distribution: Keys must be transferred securely between parties. This is typically done using asymmetric encryption or key exchange protocols like Diffie-Hellman (RFC 2631) or using a key distribution center (KDC) in Kerberos (RFC 4120).
- Usage: Keys are used for encryption, decryption, signing, or verification. Access to keys should be restricted to authorized processes and users, with audit logging.
- Rotation: Keys should be replaced periodically or after a suspected compromise. Rotation limits the amount of data encrypted under a single key. NIST SP 800-57 recommends rotation intervals based on key type and algorithm.
- Backup and Recovery: Keys must be backed up to prevent permanent data loss. Backups must be encrypted and stored separately from the data they protect. Recovery procedures should be tested.
- Destruction: When keys are no longer needed, they must be securely destroyed. Cryptographic erasure (destroying the key to make data unrecoverable) is a common technique. Physical destruction of HSMs may be required.
Key Management Standards and Frameworks
- NIST SP 800-57: Recommendation for Key Management – defines key types, lifetimes, and management practices. Key types include: - Private/Secret Keys: Symmetric keys or private keys in asymmetric pairs. - Public Keys: Asymmetric keys that can be shared. - Key Encryption Keys (KEKs): Keys used to encrypt other keys. - Data Encryption Keys (DEKs): Keys used to encrypt data. - Root of Trust Keys: Highest-level keys stored in hardware (e.g., HSM, TPM). - PKCS #11 (Cryptoki): Standard API for cryptographic tokens (HSMs, smart cards). - KMIP (Key Management Interoperability Protocol, OASIS standard): Protocol for communication between key management servers and clients. - FIPS 140-2/140-3: Security requirements for cryptographic modules (e.g., HSMs).
Key Storage Options
Hardware Security Module (HSM): Tamper-resistant hardware that generates, stores, and manages keys. Keys never leave the HSM in plaintext. Used in PKI, SSL/TLS termination, and database encryption. Example: AWS CloudHSM, Thales Luna.
Trusted Platform Module (TPM): Chip on the motherboard that stores keys for platform integrity (e.g., BitLocker keys). TPMs are simpler than HSMs but limited in capacity.
Secure Enclave: Isolated processor within a CPU (e.g., Apple T2, Intel SGX) that handles keys for device encryption.
Key Management Service (KMS): Cloud-based service (e.g., AWS KMS, Azure Key Vault) that manages keys in HSMs. Offers automatic rotation and access control via IAM.
Software Key Stores: Keystore files (e.g., Java KeyStore, PKCS#12) protected by a password. These are less secure because the password can be guessed or stolen.
Key Rotation and Expiration
Key rotation replaces an existing key with a new one. Reasons for rotation: - Cryptoperiod expiration: NIST defines cryptoperiods (e.g., 1-2 years for symmetric keys, 2-5 years for asymmetric keys). - Compromise suspicion: If a key is suspected compromised, rotate immediately. - Compliance: Regulations like PCI DSS require key rotation every 12 months.
Rotation can be: - Cryptographic erasure: Encrypt new data with a new key; old data remains encrypted with the old key. The old key is retained until all data encrypted with it is decrypted or re-encrypted. - Re-encryption: Decrypt data with the old key and re-encrypt with the new key. This is resource-intensive.
Key Destruction Methods
Cryptographic erasure: Deleting the key renders the encrypted data unrecoverable. This is the most common method for sanitizing data in cloud environments.
Physical destruction: Degaussing (for magnetic media), shredding, or incineration of HSM or TPM.
Zeroization: Overwriting key memory with zeros or random data. FIPS 140-2 requires zeroization of plaintext keys.
Common Attacks on Key Management
Key theft: Stealing keys from memory (e.g., via Meltdown/Spectre, CVE-2017-5754) or from insecure storage.
Key leakage: Keys accidentally exposed in logs, error messages, or source code repositories (e.g., GitHub dumps).
Man-in-the-middle (MITM): Intercepting key distribution if keys are transmitted in plaintext or with weak authentication.
Side-channel attacks: Timing attacks, power analysis, or electromagnetic emissions that reveal key bits.
Social engineering: Tricking administrators into revealing key passwords or exporting keys.
Tools and Commands
- OpenSSL: Generate RSA key pair:
openssl genpkey -algorithm RSA -out private.pem -aes-256-cbc -pass pass:strongpassword
openssl pkey -in private.pem -pubout -out public.pem- GnuPG: Generate and manage keys:
gpg --full-generate-key
gpg --export-secret-keys --armor > mykey.asc- Microsoft Certificate Services: For PKI key management in Windows domains. - AWS KMS CLI: Create a key:
aws kms create-key --description "My key"
aws kms create-alias --alias-name alias/my-key --target-key-id <key-id>Step-by-Step: Key Rotation Procedure
Step 1: Identify Key to Rotate
Determine which key needs rotation based on policy (e.g., age, compliance, suspected compromise). Check the key's cryptoperiod and usage. For example, an AES-256 key used for database encryption that is 13 months old (exceeding the 12-month PCI DSS limit). Log the key ID and its associated resources.
Step 2: Generate New Key
Use a CSPRNG to generate a new key. In an HSM, call the generate function. For cloud KMS, use the API to create a new key version. Ensure the new key has the same algorithm and length (e.g., AES-256). The old key remains active for decryption of existing data.
Step 3: Update Encryption Configuration
Configure the application or service to use the new key for all new encryption operations. This may involve updating environment variables, configuration files, or cloud IAM policies. For example, in AWS KMS, update the key alias to point to the new key version. Test that new data can be encrypted and decrypted with the new key.
Step 4: Re-encrypt Existing Data (Optional)
If policy requires re-encryption, decrypt data with the old key and re-encrypt with the new key. This can be done during maintenance windows. Use a script that iterates through encrypted records. For large datasets, consider parallel processing. Log all operations for audit.
Step 5: Disable and Destroy Old Key
Once all data is re-encrypted or the old key is no longer needed, disable the old key. In HSMs, delete the key and zeroize memory. In cloud KMS, schedule key deletion (e.g., AWS KMS requires a waiting period of 7-30 days). After deletion, verify that the key is no longer accessible.
Real-World SOC Scenario
Scenario 1: HSM Key Compromise at a Financial Institution
A SOC analyst detects an alert from the HSM monitoring system: multiple failed access attempts on the root key. The HSM logs show a series of invalid PIN entries from an administrative console. The analyst correlates this with an unusual login from an IP address outside the corporate network. The correct response is to immediately disable the root key, generate a new one, and revoke all certificates signed with the compromised key. The analyst must also initiate an incident response process, including forensic analysis of the HSM logs. A common mistake is to ignore the alert, assuming it's a false positive, which could lead to a full compromise of the PKI.
Scenario 2: Cloud KMS Key Exposure in Source Code
A developer accidentally commits an AWS KMS key ID and secret access key to a public GitHub repository. The SOC team receives an alert from a secret scanning tool (e.g., GitHub secret scanning or a third-party tool like GitGuardian). The correct response is to immediately rotate the compromised key in AWS KMS, delete the commit from the repository, and audit any data encrypted with that key. The analyst should also check CloudTrail logs for any unauthorized use of the key. A common mistake is to only delete the commit without rotating the key, leaving the key exposed in cached copies or forks.
Scenario 3: Key Backup Failure During Disaster Recovery
An enterprise experiences a ransomware attack that encrypts its primary database. The DR plan requires restoring the database from backup, but the database encryption key was stored on the same server and was also encrypted by the ransomware. The SOC engineer discovers that the key backup was stored on a network share that was also compromised. The correct response would have been to store the key backup in a separate HSM or offline storage with dual control. The engineer must now attempt to recover the key from any surviving copies or contact the vendor for HSM recovery options. A common mistake is to assume that backing up the key with the data is sufficient; keys must be backed up independently and securely.
Exam Focus Section
What SY0-701 Tests on This Objective
Objective 1.4 covers general security concepts including cryptographic key management. Specifically, the exam expects you to:
Understand the key lifecycle: generation, storage, distribution, rotation, destruction.
Know the differences between key types: symmetric vs asymmetric, KEK vs DEK, root of trust.
Identify secure key storage options: HSM, TPM, secure enclave, KMS.
Recognize best practices: key rotation, dual control, split knowledge, cryptographic erasure.
Apply key management in scenarios: e.g., when to rotate keys, how to securely distribute keys.
Common Wrong Answers and Why
"Keys should be stored in a database alongside encrypted data for convenience." Candidates choose this because it seems efficient, but it violates the principle of separating keys from data. If the database is breached, both data and keys are compromised.
"Key rotation means changing the encryption algorithm." This is incorrect; rotation changes the key, not the algorithm. Candidates confuse rotation with algorithm migration.
"Public keys must be kept secret." This is false; public keys are meant to be shared. Candidates may confuse public keys with private keys.
"Cryptographic erasure is the same as data deletion." Cryptographic erasure destroys the key to make data unreachable, while data deletion removes the data itself. Candidates may think they are equivalent.
Specific Terms and Values
AES-256: Symmetric key length (256 bits).
RSA-2048: Asymmetric key length (2048 bits).
NIST SP 800-57: Key management recommendation.
FIPS 140-2: Security requirements for cryptographic modules.
HSM, TPM, KMS: Key storage.
KEK, DEK: Key types.
Cryptoperiod: Recommended lifetime for keys.
Common Trick Questions
Question asks about "key escrow" and "key recovery." Key escrow is when a third party holds a copy of the key (controversial); key recovery is an internal process to restore lost keys. Candidates may confuse them.
Scenario involving "key distribution" where the answer is "use asymmetric encryption to securely transmit the symmetric key." Candidates may choose "use a secure hash" instead.
Decision Rule for Eliminating Wrong Answers
On scenario questions, ask: (1) Is the key storage location separate from the data? (2) Is the key encrypted when stored? (3) Is there a process for rotation and destruction? (4) Is access to the key logged and restricted? Eliminate any answer that violates these principles.
Misconceptions
Myth 1: "A longer key always means stronger security."
Reality: Key length is only one factor. The algorithm, implementation, and random number generator quality matter. For example, a 256-bit key from a weak RNG is less secure than a 128-bit key from a CSPRNG.
Myth 2: "Public key cryptography is always more secure than symmetric."
Reality: Asymmetric algorithms are slower and used for key exchange or digital signatures. Symmetric algorithms (e.g., AES) are faster and more efficient for bulk encryption. Hybrid systems use both.
Myth 3: "If the key is stored in an HSM, it is completely safe."
Reality: HSMs provide strong protection, but they can still be compromised through physical attacks, side-channel attacks, or administrative errors. Proper access controls and monitoring are still required.
Myth 4: "Key rotation is only needed when a compromise is suspected."
Reality: Regular key rotation is a best practice to limit exposure even without a known compromise. It reduces the amount of data encrypted under any single key.
Myth 5: "Cryptographic erasure is the same as overwriting data."
Reality: Cryptographic erasure only destroys the key, leaving the encrypted data intact but unrecoverable. Overwriting data replaces the actual data bits. Cryptographic erasure is faster and often used in cloud environments.
Comparisons
Comparison 1: HSM vs TPM
HSM: Purpose-built hardware for key management; supports multiple key types; scalable; FIPS 140-2 Level 3 or 4; used in enterprise PKI, SSL termination, database encryption.
TPM: Chip on motherboard; limited key storage (e.g., 20-30 keys); used for platform integrity (e.g., BitLocker, Secure Boot); lower cost; FIPS 140-2 Level 2.
Comparison 2: KEK vs DEK
KEK: Key encryption key; used to encrypt other keys; stored in HSM or KMS; rarely rotated; high security.
DEK: Data encryption key; used to encrypt actual data; generated per session or per file; rotated frequently; may be stored encrypted under KEK.
Key Takeaways
Key management covers the entire lifecycle: generation, storage, distribution, usage, rotation, backup, recovery, and destruction.
Store keys separately from data, preferably in an HSM, TPM, or KMS.
Use KEKs to encrypt DEKs; never store DEKs in plaintext.
Rotate keys regularly based on cryptoperiod (e.g., 1-2 years for symmetric keys).
Destroy keys securely using zeroization or cryptographic erasure.
Implement dual control and split knowledge for high-value keys.
NIST SP 800-57 is the primary standard for key management.
Common attack vectors: key theft, key leakage, MITM, side-channel attacks.
On the exam, remember that public keys are not secret; private keys must be protected.
Cryptographic erasure is a valid method to render data unrecoverable by destroying the key.
FAQ
Question 1: What is the difference between key escrow and key recovery?
Answer: Key escrow involves a third party holding a copy of the key, often for lawful interception. Key recovery is an internal process to restore lost or damaged keys from backups. Escrow is controversial due to privacy concerns. The exam expects you to know that escrow is not the same as backup.
Question 2: How often should keys be rotated?
Answer: Rotation frequency depends on the key type, algorithm, and compliance requirements. NIST SP 800-57 recommends cryptoperiods: for symmetric keys (e.g., AES) 1-2 years; for asymmetric private keys (e.g., RSA) 2-5 years. PCI DSS requires key rotation every 12 months. Always follow organizational policy.
Question 3: What is the purpose of a Key Encryption Key (KEK)?
Answer: A KEK encrypts other keys (DEKs) to protect them at rest. The KEK itself is stored in a secure location like an HSM. This allows DEKs to be stored alongside encrypted data without exposing them. The KEK is rarely rotated to avoid re-encrypting all DEKs.
Question 4: Can I store keys in a database?
Answer: Yes, but only if the keys are encrypted under a KEK. Storing plaintext keys in a database is insecure. Use a dedicated key management system or HSM to protect the KEK. The database should only contain encrypted keys.
Question 5: What is cryptographic erasure?
Answer: Cryptographic erasure is the process of destroying the cryptographic key that protects data, making the encrypted data unrecoverable. It is faster than overwriting data and is commonly used in cloud environments. The data remains encrypted but is effectively inaccessible.
Question 6: What is split knowledge?
Answer: Split knowledge is a security measure where a sensitive key is divided into multiple parts, each held by a different person. All parts must be combined to reconstruct the key. This prevents any single individual from having full access. It is often used with dual control.
Question 7: How does a TPM differ from an HSM?
Answer: A TPM is a low-cost chip on the motherboard, limited to platform integrity tasks (e.g., BitLocker). An HSM is a dedicated, high-performance device for enterprise key management, supporting many keys and cryptographic operations. HSMs are FIPS 140-2 Level 3/4, while TPMs are typically Level 2.
Meta
Meta Title
Cryptographic Key Management for Security+ SY0-701
Meta Description
Master cryptographic key management for SY0-701: lifecycle, HSMs, KEKs, rotation, and exam tips. Learn key concepts with real-world scenarios.
Estimated Read Minutes
25
Identify Key to Rotate
Determine which key needs rotation based on policy (e.g., age, compliance, suspected compromise). Check the key's cryptoperiod and usage. For example, an AES-256 key used for database encryption that is 13 months old (exceeding the 12-month PCI DSS limit). Log the key ID and its associated resources.
Generate New Key
Use a CSPRNG to generate a new key. In an HSM, call the generate function. For cloud KMS, use the API to create a new key version. Ensure the new key has the same algorithm and length (e.g., AES-256). The old key remains active for decryption of existing data.
Update Encryption Configuration
Configure the application or service to use the new key for all new encryption operations. This may involve updating environment variables, configuration files, or cloud IAM policies. For example, in AWS KMS, update the key alias to point to the new key version. Test that new data can be encrypted and decrypted with the new key.
Re-encrypt Existing Data (Optional)
If policy requires re-encryption, decrypt data with the old key and re-encrypt with the new key. This can be done during maintenance windows. Use a script that iterates through encrypted records. For large datasets, consider parallel processing. Log all operations for audit.
Disable and Destroy Old Key
Once all data is re-encrypted or the old key is no longer needed, disable the old key. In HSMs, delete the key and zeroize memory. In cloud KMS, schedule key deletion (e.g., AWS KMS requires a waiting period of 7-30 days). After deletion, verify that the key is no longer accessible.
Scenario 1: HSM Key Compromise at a Financial Institution
A SOC analyst detects an alert from the HSM monitoring system: multiple failed access attempts on the root key. The HSM logs show a series of invalid PIN entries from an administrative console. The analyst correlates this with an unusual login from an IP address outside the corporate network. The correct response is to immediately disable the root key, generate a new one, and revoke all certificates signed with the compromised key. The analyst must also initiate an incident response process, including forensic analysis of the HSM logs. A common mistake is to ignore the alert, assuming it's a false positive, which could lead to a full compromise of the PKI.
Scenario 2: Cloud KMS Key Exposure in Source Code
A developer accidentally commits an AWS KMS key ID and secret access key to a public GitHub repository. The SOC team receives an alert from a secret scanning tool (e.g., GitHub secret scanning or a third-party tool like GitGuardian). The correct response is to immediately rotate the compromised key in AWS KMS, delete the commit from the repository, and audit any data encrypted with that key. The analyst should also check CloudTrail logs for any unauthorized use of the key. A common mistake is to only delete the commit without rotating the key, leaving the key exposed in cached copies or forks.
Scenario 3: Key Backup Failure During Disaster Recovery
An enterprise experiences a ransomware attack that encrypts its primary database. The DR plan requires restoring the database from backup, but the database encryption key was stored on the same server and was also encrypted by the ransomware. The SOC engineer discovers that the key backup was stored on a network share that was also compromised. The correct response would have been to store the key backup in a separate HSM or offline storage with dual control. The engineer must now attempt to recover the key from any surviving copies or contact the vendor for HSM recovery options. A common mistake is to assume that backing up the key with the data is sufficient; keys must be backed up independently and securely.
What SY0-701 Tests on This Objective
Objective 1.4 covers general security concepts including cryptographic key management. Specifically, the exam expects you to:
Understand the key lifecycle: generation, storage, distribution, rotation, destruction.
Know the differences between key types: symmetric vs asymmetric, KEK vs DEK, root of trust.
Identify secure key storage options: HSM, TPM, secure enclave, KMS.
Recognize best practices: key rotation, dual control, split knowledge, cryptographic erasure.
Apply key management in scenarios: e.g., when to rotate keys, how to securely distribute keys.
Common Wrong Answers and Why
"Keys should be stored in a database alongside encrypted data for convenience." Candidates choose this because it seems efficient, but it violates the principle of separating keys from data. If the database is breached, both data and keys are compromised.
"Key rotation means changing the encryption algorithm." This is incorrect; rotation changes the key, not the algorithm. Candidates confuse rotation with algorithm migration.
"Public keys must be kept secret." This is false; public keys are meant to be shared. Candidates may confuse public keys with private keys.
"Cryptographic erasure is the same as data deletion." Cryptographic erasure destroys the key to make data unreachable, while data deletion removes the data itself. Candidates may think they are equivalent.
Specific Terms and Values
AES-256: Symmetric key length (256 bits).
RSA-2048: Asymmetric key length (2048 bits).
NIST SP 800-57: Key management recommendation.
FIPS 140-2: Security requirements for cryptographic modules.
HSM, TPM, KMS: Key storage.
KEK, DEK: Key types.
Cryptoperiod: Recommended lifetime for keys.
Common Trick Questions
Question asks about "key escrow" and "key recovery." Key escrow is when a third party holds a copy of the key (controversial); key recovery is an internal process to restore lost keys. Candidates may confuse them.
Scenario involving "key distribution" where the answer is "use asymmetric encryption to securely transmit the symmetric key." Candidates may choose "use a secure hash" instead.
Decision Rule for Eliminating Wrong Answers
On scenario questions, ask: (1) Is the key storage location separate from the data? (2) Is the key encrypted when stored? (3) Is there a process for rotation and destruction? (4) Is access to the key logged and restricted? Eliminate any answer that violates these principles.
Key management covers the entire lifecycle: generation, storage, distribution, usage, rotation, backup, recovery, and destruction.
Store keys separately from data, preferably in an HSM, TPM, or KMS.
Use KEKs to encrypt DEKs; never store DEKs in plaintext.
Rotate keys regularly based on cryptoperiod (e.g., 1-2 years for symmetric keys).
Destroy keys securely using zeroization or cryptographic erasure.
Implement dual control and split knowledge for high-value keys.
NIST SP 800-57 is the primary standard for key management.
Common attack vectors: key theft, key leakage, MITM, side-channel attacks.
On the exam, remember that public keys are not secret; private keys must be protected.
Cryptographic erasure is a valid method to render data unrecoverable by destroying the key.
These come up on the exam all the time. Here's how to tell them apart.
HSM
Purpose-built hardware for key management
Supports multiple key types
Scalable; FIPS 140-2 Level 3 or 4
Used in enterprise PKI, SSL termination, database encryption
Higher cost
TPM
Chip on motherboard
Limited key storage (e.g., 20-30 keys)
Used for platform integrity (e.g., BitLocker, Secure Boot)
Lower cost
FIPS 140-2 Level 2
KEK
Key encryption key
Used to encrypt other keys
Stored in HSM or KMS
Rarely rotated
High security
DEK
Data encryption key
Used to encrypt actual data
Generated per session or per file
Rotated frequently
May be stored encrypted under KEK
Mistake
A longer key always means stronger security.
Correct
Key length is only one factor. The algorithm, implementation, and random number generator quality matter. For example, a 256-bit key from a weak RNG is less secure than a 128-bit key from a CSPRNG.
Mistake
Public key cryptography is always more secure than symmetric.
Correct
Asymmetric algorithms are slower and used for key exchange or digital signatures. Symmetric algorithms (e.g., AES) are faster and more efficient for bulk encryption. Hybrid systems use both.
Mistake
If the key is stored in an HSM, it is completely safe.
Correct
HSMs provide strong protection, but they can still be compromised through physical attacks, side-channel attacks, or administrative errors. Proper access controls and monitoring are still required.
Mistake
Key rotation is only needed when a compromise is suspected.
Correct
Regular key rotation is a best practice to limit exposure even without a known compromise. It reduces the amount of data encrypted under any single key.
Mistake
Cryptographic erasure is the same as overwriting data.
Correct
Cryptographic erasure only destroys the key, leaving the encrypted data intact but unrecoverable. Overwriting data replaces the actual data bits. Cryptographic erasure is faster and often used in cloud environments.
Key escrow involves a third party holding a copy of the key, often for lawful interception. Key recovery is an internal process to restore lost or damaged keys from backups. Escrow is controversial due to privacy concerns. The exam expects you to know that escrow is not the same as backup.
Rotation frequency depends on the key type, algorithm, and compliance requirements. NIST SP 800-57 recommends cryptoperiods: for symmetric keys (e.g., AES) 1-2 years; for asymmetric private keys (e.g., RSA) 2-5 years. PCI DSS requires key rotation every 12 months. Always follow organizational policy.
A KEK encrypts other keys (DEKs) to protect them at rest. The KEK itself is stored in a secure location like an HSM. This allows DEKs to be stored alongside encrypted data without exposing them. The KEK is rarely rotated to avoid re-encrypting all DEKs.
Yes, but only if the keys are encrypted under a KEK. Storing plaintext keys in a database is insecure. Use a dedicated key management system or HSM to protect the KEK. The database should only contain encrypted keys.
Cryptographic erasure is the process of destroying the cryptographic key that protects data, making the encrypted data unrecoverable. It is faster than overwriting data and is commonly used in cloud environments. The data remains encrypted but is effectively inaccessible.
Split knowledge is a security measure where a sensitive key is divided into multiple parts, each held by a different person. All parts must be combined to reconstruct the key. This prevents any single individual from having full access. It is often used with dual control.
A TPM is a low-cost chip on the motherboard, limited to platform integrity tasks (e.g., BitLocker). An HSM is a dedicated, high-performance device for enterprise key management, supporting many keys and cryptographic operations. HSMs are FIPS 140-2 Level 3/4, while TPMs are typically Level 2.
You've just covered Cryptographic Key Management — now see how well it sticks with free SY0-701 practice questions. Full explanations included, no account needed.
Done with this chapter?