Key management

Short description: Management of cryptographic keys

For other uses, see Key management (disambiguation).

Key management refers to management of cryptographic keys in a cryptosystem. This includes dealing with the generation, exchange, storage, use, crypto-shredding (destruction) and replacement of keys. It includes cryptographic protocol design, key servers, user procedures, and other relevant protocols.[1][2]

Key management concerns keys at the user level, either between users or systems. This is in contrast to key scheduling, which typically refers to the internal handling of keys within the operation of a cipher.

Successful key management is critical to the security of a cryptosystem. It is the more challenging side of cryptography in a sense that it involves aspects of social engineering such as system policy, user training, organizational and departmental interactions, and coordination between all of these elements, in contrast to pure mathematical practices that can be automated.

## Contents

* 1 Types of keys
* 2 Inventory
* 3 Management steps
* 3.1 Key exchange
* 3.2 Key storage
* 3.3 Key encryption use
* 4 Challenges
* 5 Compliance
* 6 Management and compliance systems
* 6.1 Key management system
* 6.2 Standards-based key management
* 6.3 Key Management Interoperability Protocol (KMIP)
* 6.3.1 Closed source
* 6.4 Non-KMIP-compliant key management
* 6.4.1 Open source
* 6.4.2 Closed source
* 6.4.3 KMS security policy
* 6.4.4 Bring your own encryption / key
* 6.5 Public-key infrastructure (PKI)
* 6.6 Multicast group key management
* 7 See also
* 8 References
* 9 External links

## Types of keys

Main article: Cryptographic key types

Cryptographic systems may use different types of keys, with some systems using more than one. These may include symmetric keys or asymmetric keys. In a symmetric key algorithm the keys involved are identical for both encrypting and decrypting a message. Keys must be chosen carefully, and distributed and stored securely. Asymmetric keys, also known as public keys, in contrast are two distinct keys that are mathematically linked. They are typically used together to communicate. Public key infrastructure (PKI), the implementation of public key cryptography, requires an organization to establish an infrastructure to create and manage public and private key pairs along with digital certificates.[3]

## Inventory

The starting point in any certificate and private key management strategy is to create a comprehensive inventory of all certificates, their locations and responsible parties. This is not a trivial matter because certificates from a variety of sources are deployed in a variety of locations by different individuals and teams - it's simply not possible to rely on a list from a single certificate authority. Certificates that are not renewed and replaced before they expire can cause serious downtime and outages. Some other considerations:

* Regulations and requirements, like PCI-DSS,[4] demand stringent security and management of cryptographic keys and auditors are increasingly reviewing the management controls and processes in use.
* Private keys used with certificates must be kept secure[5] or unauthorised individuals can intercept confidential communications or gain unauthorised access to critical systems. Failure to ensure proper segregation of duties means that admins who generate the encryption keys can use them to access sensitive, regulated data.
* If a certificate authority is compromised or an encryption algorithm is broken, organizations must be prepared to replace all of their certificates and keys in a matter of hours.

## Management steps

Once keys are inventoried, key management typically consists of three steps: exchange, storage and use.

### Key exchange

Main article: Key exchange

Prior to any secured communication, users must set up the details of the cryptography. In some instances this may require exchanging identical keys (in the case of a symmetric key system). In others it may require possessing the other party's public key. While public keys can be openly exchanged (their corresponding private key is kept secret), symmetric keys must be exchanged over a secure communication channel. Formerly, exchange of such a key was extremely troublesome, and was greatly eased by access to secure channels such as a diplomatic bag. Clear text exchange of symmetric keys would enable any interceptor to immediately learn the key, and any encrypted data.

The advance of public key cryptography in the 1970s has made the exchange of keys less troublesome. Since the Diffie-Hellman key exchange protocol was published in 1975, it has become possible to exchange a key over an insecure communications channel, which has substantially reduced the risk of key disclosure during distribution. It is possible, using something akin to a book code, to include key indicators as clear text attached to an encrypted message. The encryption technique used by Richard Sorge's code clerk was of this type, referring to a page in a statistical manual, though it was in fact a code. The German Army Enigma symmetric encryption key was a mixed type early in its use; the key was a combination of secretly distributed key schedules and a user chosen session key component for each message.

In more modern systems, such as OpenPGP compatible systems, a session key for a symmetric key algorithm is distributed encrypted by an asymmetric key algorithm. This approach avoids even the necessity for using a key exchange protocol like Diffie-Hellman key exchange.

Another method of key exchange involves encapsulating one key within another. Typically a master key is generated and exchanged using some secure method. This method is usually cumbersome or expensive (breaking a master key into multiple parts and sending each with a trusted courier for example) and not suitable for use on a larger scale. Once the master key has been securely exchanged, it can then be used to securely exchange subsequent keys with ease. This technique is usually termed key wrap. A common technique uses block ciphers and cryptographic hash functions.[citation needed]

A related method is to exchange a master key (sometimes termed a root key) and derive subsidiary keys as needed from that key and some other data (often referred to as diversification data). The most common use for this method is probably in smartcard-based cryptosystems, such as those found in banking cards. The bank or credit network embeds their secret key into the card's secure key storage during card production at a secured production facility. Then at the point of sale the card and card reader are both able to derive a common set of session keys based on the shared secret key and card-specific data (such as the card serial number). This method can also be used when keys must be related to each other (i.e., departmental keys are tied to divisional keys, and individual keys tied to departmental keys). However, tying keys to each other in this way increases the damage which may result from a security breach as attackers will learn something about more than one key. This reduces entropy, with regard to an attacker, for each key involved.

A recent method uses an oblivious pseudorandom function to issue keys without the key management system ever being in a position to see the keys.[6]

### Key storage

However distributed, keys must be stored securely to maintain communications security. Security is a big concern[7][8] and hence there are various techniques in use to do so. Likely the most common is that an encryption application manages keys for the user and depends on an access password to control use of the key. Likewise, in the case of smartphone keyless access platforms, they keep all identifying door information off mobile phones and servers and encrypt all data, where just like low-tech keys, users give codes only to those they trust.[7]

In terms of regulation, there are few that address key storage in depth. "Some contain minimal guidance like 'don’t store keys with encrypted data' or suggest that 'keys should be kept securely.'" The notable exceptions to that are PCI DSS 3.2.1, NIST 800-53 and NIST 800–57.[8]

For optimal security, keys may be stored in a Hardware Security Module (HSM) or protected using technologies such as Trusted Execution Environment (TEE, e.g. Intel SGX) or Multi-Party Computation (MPC). Additional alternatives include utilizing Trusted Platform Modules (TPM),[9] virtual HSMs, aka "Poor Man's Hardware Security Modules" (pmHSM),[10] or non-volatile Field-Programmable-Gate-Arrays (FPGA) with supporting System-on-Chip configurations.[11] In order to verify the integrity of a key stored without compromising its actual value a KCV algorithm can be used.

### Key encryption use

The major issue is length of time a key is to be used, and therefore frequency of replacement. Because it increases any attacker's required effort, keys should be frequently changed. This also limits loss of information, as the number of stored encrypted messages which will become readable when a key is found will decrease as the frequency of key change increases. Historically, symmetric keys have been used for long periods in situations in which key exchange was very difficult or only possible intermittently. Ideally, the symmetric key should change with each message or interaction, so that only that message will become readable if the key is learned (e.g., stolen, cryptanalyzed, or social engineered).

## Challenges

Several challenges IT organizations face when trying to control and manage their encryption keys are:

1. Scalability: Managing a large number of encryption keys.
2. Security: Vulnerability of keys from outside hackers, malicious insiders.
3. Availability: Ensuring data accessibility for authorized users.
4. Heterogeneity: Supporting multiple databases, applications and standards.
5. Governance: Defining policy-driven access control and protection for data.[12] Governance includes compliance with data protection requirements.

## Compliance

Key management compliance refers to the oversight, assurance, and capability of being able to demonstrate that keys are securely managed. This includes the following individual compliance domains:

* Physical security – the most visible form of compliance, which may include locked doors to secure system equipment and surveillance cameras. These safeguards can prevent unauthorized access to printed copies of key material and computer systems that run key management software.
* Logical security – protects the organization against the theft or unauthorized access of information. This is where the use of cryptographic keys comes in by encrypting data, which is then rendered useless to those who do not have the key to decrypt it.
* Personnel security – this involves assigning specific roles or privileges to personnel to access information on a strict need-to-know basis. Background checks should be performed on new employees along with periodic role changes to ensure security.[1][13]

Compliance can be achieved with respect to national and international data protection standards and regulations, such as Payment Card Industry Data Security Standard, Health Insurance Portability and Accountability Act, Sarbanes–Oxley Act, or General Data Protection Regulation.[14]

## Management and compliance systems

### Key management system

A key management system (KMS), also known as a cryptographic key management system (CKMS) or enterprise key management system (EKMS), is an integrated approach for generating, distributing and managing cryptographic keys for devices and applications. They may cover all aspects of security - from the secure generation of keys over the secure exchange of keys up to secure key handling and storage on the client. Thus, a KMS includes the backend functionality for key generation, distribution, and replacement as well as the client functionality for injecting keys, storing and managing keys on devices.

### Standards-based key management

Many specific applications have developed their own key management systems with home grown protocols. However, as systems become more interconnected keys need to be shared between those different systems. To facilitate this, key management standards have evolved to define the protocols used to manage and exchange cryptographic keys and related information.

### Key Management Interoperability Protocol (KMIP)

Main article: Key Management Interoperability Protocol (KMIP)

KMIP is an extensible key management protocol that has been developed by many organizations working within the OASIS standards body. The first version was released in 2010, and it has been further developed by an active technical committee.

The protocol allows for the creation of keys and their distribution among disparate software systems that need to utilize them. It covers the full key life cycle of both symmetric and asymmetric keys in a variety of formats, the wrapping of keys, provisioning schemes, and cryptographic operations as well as meta data associated with the keys.

The protocol is backed by an extensive series of test cases, and interoperability testing is performed between compliant systems each year.

* Individual interoperability tests performed by each server/client vendor combination since 2012

* Results of 2017 OASIS KMIP interoperability testing

A list of some 80 products that conform to the KMIP standard can be found on the OASIS website.

#### Closed source

* Bloombase KeyCastle [15]
* Cryptsoft KMIP C and Java Servers[16]
* Fornetix Key Orchestration[17]
* Fortanix Data Security Manager[18]
* Gazzang zTrustee[19]
* HP Enterprise Secure Key Manager[20]
* IBM Distributed Key Management System (DKMS)[21]
* IBM Enterprise Key Management Foundation[22]
* IBM Security Key Lifecycle Manager[23]
* IBM Cloud Hyper Protect Crypto Services[24]
* Oracle Key Vault [25]
* Oracle Key Manager[26]
* P6R KMIP Client SDK[27]
* QuintessenceLabs qCrypt Key and Policy Manager[28]
* RSA Data Protection Manager[29]
* Gemalto’s SafeNet KeySecure[30]
* Thales Key Management[31]
* Townsend Security Alliance Key Manager[32]
* Venafi Trust Protection Platform[33]
* Vormetric Data Security Platform[34]

### Non-KMIP-compliant key management

#### Open source

* Barbican, the OpenStack security API.[35]
* KeyBox - web-based SSH access and key management.[36]
* EPKS - Echo Public Key Share, system to share encryption keys online in a p2p community.[37]
* Kmc-Subset137[38] \- key management system implementing UNISIG Subset-137 [39] for ERTMS/ETCS railway application.
* privacyIDEA \- two factor management with support for managing SSH keys.[40]
* StrongKey - open source, last updated on SourceForge in 2016.[41] There is no more maintenance on this project according to its home page.
* Vault - secret server from HashiCorp.[42]
* NuCypher
* SecretHub \- end-to-end encrypted SaaS key management
* Infisical \- end-to-end open-source secret management platform.

#### Closed source

* Amazon Web Service (AWS) Key Management Service (KMS) [43]
* Bell ID Key Manager[44]
* Bloombase KeyCastle[15]
* Cryptomathic CKMS[45]
* Doppler SecretOps Platform[46]
* Encryptionizer Key Manager (Windows only)
* Google Cloud Key Management
* IBM Cloud Key Protect [47]
* Microsoft Azure Key Vault[48]
* Porticor Virtual Private Data[49]
* SSH Communications Security Universal SSH Key Manager[50]
* CipherTrust Manager
* Akeyless Vault[51]

#### KMS security policy

The security policy of a key management system provides the rules that are to be used to protect keys and metadata that the key management system supports. As defined by the National Institute of Standards and Technology NIST, the policy shall establish and specify rules for this information that will protect its:[13]

* Confidentiality
* Integrity
* Availability
* Authentication of source[52]

This protection covers the complete key life-cycle from the time the key becomes operational to its elimination.[1]

#### Bring your own encryption / key

Main article: Bring your own encryption

Bring your own encryption (BYOE)—also called bring your own key (BYOK)—refers to a cloud-computing security model to allow public-cloud customers to use their own encryption software and manage their own encryption keys. This security model is usually considered a marketing stunt, as critical keys are being handed over to third parties (cloud providers) and key owners are still left with the operational burden of generating, rotating and sharing their keys.

### Public-key infrastructure (PKI)

Main article: Public key infrastructure

A public-key infrastructure is a type of key management system that uses hierarchical digital certificates to provide authentication, and public keys to provide encryption. PKIs are used in World Wide Web traffic, commonly in the form of SSL and TLS.

### Multicast group key management

Group key management means managing the keys in a group communication. Most of the group communications use multicast communication so that if the message is sent once by the sender, it will be received by all the users. The main problem in multicast group communication is its security. In order to improve the security, various keys are given to the users. Using the keys, the users can encrypt their messages and send them secretly. IETF.org released RFC 4046, entitled Multicast Security (MSEC) Group Key Management Architecture, which discusses the challenges of group key management.[53]

## See also

* Dynamic secrets
* Hardware security
* Key ceremony
* Key derivation function
* Key distribution center
* Key encapsulation
* Physical key management
* Keystore
* KMIP
* KSD-64
* List of cryptographic key types
* NSA's Electronic Key Management System (EKMS)
* Over-the-air rekeying
* Pseudorandom function family
* Oblivious Pseudorandom Function
* Public key infrastructure

## References

1. ↑ 1.0 1.1 1.2 Turner, Dawn M.. "What Is Key Management? A CISO Perspective". Cryptomathic. http://www.cryptomathic.com/news-events/blog/what-is-key-management-a-ciso-perspective.
2. ↑ Krähenbühl, Cyrill; Perrig, Adrian (2023), Mulder, Valentin; Mermoud, Alain; Lenders, Vincent et al., eds., "Key Management" (in en), Trends in Data Protection and Encryption Technologies (Cham: Springer Nature Switzerland): pp. 15–20, doi:10.1007/978-3-031-33386-6_4, ISBN 978-3-031-33386-6
3. ↑ Boyle, Randall; Panko, Ray (2015). Corporate Computer Security (Fourth ed.). Upper Saddle River New Jersey: Pearson. p. 278.
4. ↑ "Official PCI Security Standards Council Site - Verify PCI Compliance, Download Data Security and Credit Card Security Standards". https://www.pcisecuritystandards.org/document_library?category=pcidss&document=pci_dss.
5. ↑ "How do you manage encryption keys and certificates in your organization?" (in en). https://www.linkedin.com/advice/1/how-do-you-manage-encryption-keys-certificates-1c.
6. ↑ Jarecki, Stanislaw; Krawczyk, Hugo; Resch, Jason (2019). "Updatable Oblivious Key Management for Storage Systems". Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security. pp. 379–393. doi:10.1145/3319535.3363196. ISBN 978-1-4503-6747-9.
7. ↑ 7.0 7.1 "An ancient technology gets a key makeover". Crain's New York. 20 November 2013. http://www.crainsnewyork.com/article/20131120/TECHNOLOGY/131129993/an-ancient-technology-gets-a-key-makeover.
8. ↑ 8.0 8.1 "Lost in translation: encryption, key management, and real security" (in en). https://cloud.google.com/blog/products/identity-security/how-encryption-and-key-management-enable-real-security.
9. ↑ Gopal, Venkatesh; Fadnavis, Shikha; Coffman, Joel (2018). "Low-Cost Distributed Key Management". 2018 IEEE World Congress on Services (SERVICES). pp. 57–58. doi:10.1109/SERVICES.2018.00042. ISBN 978-1-5386-7374-4.
10. ↑ Cifuentes, Francisco; Hevia, Alejandro; Montoto, Francisco; Barros, Tomás; Ramiro, Victor; Bustos-Jiménez, Javier (2016). "Poor Man's Hardware Security Module (PMHSM): A Threshold Cryptographic Backend for DNSSEC". Proceedings of the 9th Latin America Networking Conference. pp. 59–64. doi:10.1145/2998373.2998452. ISBN 978-1-4503-4591-0.
11. ↑ Parrinha, Diogo; Chaves, Ricardo (2017). "Flexible and low-cost HSM based on non-volatile FPGAs". 2017 International Conference on ReConFigurable Computing and FPGAs (ReConFig). pp. 1–8. doi:10.1109/RECONFIG.2017.8279795. ISBN 978-1-5386-3797-5.
12. ↑ "Security Policy and Key Management: Centrally Manage Encryption Key". Slideshare.net. 2012-08-13. http://www.slideshare.net/Tina-stewart/security-policy-and-enterprise-key-management-from-vormetric.
13. ↑ 13.0 13.1 Reinholm, James H.. "Simplifying the Complex Process of Auditing a Key Management System for Compliance". Cryptomathic. http://www.cryptomathic.com/news-events/blog/simplifying-the-complex-process-of-auditing-a-key-management-system-for-compliance.
14. ↑ Stubbs, Rob. "Buyer's Guide to Choosing a Crypto Key Management System". Cryptomathic. https://www.cryptomathic.com/news-events/blog/buyers-guide-to-choosing-a-crypto-key-management-system.
15. ↑ 15.0 15.1 "Bloombase KeyCastle - Enterprise Key Life-Cycle Management - Bloombase - Intelligent Storage Firewall". https://www.bloombase.com/products/keycastle.
16. ↑ "Cryptsoft". Cryptsoft. http://www.cryptsoft.com/KMIP/.
17. ↑ "VaultCore - Encryption Key Management Platform | Fornetix". 29 August 2019. http://fornetix.com/products/.
18. ↑ "Fortanix Data Security Manager". Fortanix. https://www.fortanix.com/products/data-security-manager/saas.
19. ↑ "Gazzang zTrustee". Gazzang.com. http://www.gazzang.com/products/ztrustee.
20. ↑ "Data Encryption - Enterprise Secure Key Manager | HP® Official Site". H17007.www1.hp.com. http://h17007.www1.hp.com/us/en/products/network-security/HP_Enterprise_Secure_Key_Manager/index.aspx?jumpid=reg_r1002_usen.
21. ↑ "IBM Enterprise Key Management Foundation (EKMF)". 03.ibm.com. http://www-03.ibm.com/security/cccc/products/dkms.shtml.
22. ↑ "IBM Enterprise Key Management Foundation". http://public.dhe.ibm.com/common/ssi/ecm/en/zss03081usen/ZSS03081USEN.PDF.
23. ↑ Fridli, Roman; Greenfield, Andrew; Dufrasne, Bert; Redbooks, I.B.M. (2016-12-28). Data-at-rest Encryption for the IBM Spectrum Accelerate Famil. ISBN 9780738455839. https://books.google.com/books?id=n5_ODQAAQBAJ&q=IBM+Security+Key+Lifecycle+Manager+Tivoli&pg=PA28. Retrieved 2017-06-12.
24. ↑ "Getting started with IBM Cloud Hyper Protect Crypto Services". 4 June 2024. https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started.
25. ↑ "Key Manager | Database". Oracle. http://www.oracle.com/technetwork/database/options/key-management/overview/index.html.
26. ↑ "Key Manager | Storage". Oracle. http://www.oracle.com/us/products/servers-storage/storage/storage-software/oracle-key-manager/overview/index.html.
27. ↑ "P6R". P6R. https://www.p6r.com/software/skc.html.
28. ↑ "qCrypt". Quintessencelabs.com. http://www.quintessencelabs.com/products/qcrypt-and-qcrypt-xstream/.
29. ↑ "RSA Data Protection Manager - Data Encryption, Key Management". EMC. 2013-04-18. http://www.emc.com/security/rsa-data-protection-manager.htm.
30. ↑ "Cryptographic Key Management System - Gemalto's SafeNet KeySecure". Safenet.Gemalto.com. https://safenet.gemalto.com/data-encryption/enterprise-key-management/key-secure/.
31. ↑ "Key Management: keyAuthority - a proven solution for centralizing key management". Thales-esecurity.com. http://www.thales-esecurity.com/Products/Key Management Tools.aspx.
32. ↑ "Encryption Key Management | Encryption Key Management, Cloud Security, Data Protection". Townsendsecurity.com. http://townsendsecurity.com/products/encryption-key-management.
33. ↑ "What We do – Venafi". https://www.venafi.com/what-we-do/.
34. ↑ "Vormetric Data Security Platform". Vormetric.com. http://www.vormetric.com/products/vormetric-key-management.
35. ↑ "Barbican - OpenStack". https://wiki.openstack.org/wiki/Barbican.
36. ↑ SSHKeyBox - Services and Products
37. ↑ "Big Seven Crypto Study - Wikibooks, open books for an open world". https://en.wikibooks.org/wiki/Big_Seven_Study.
38. ↑ "KMC-Subject137 Library Project". http://www.kmc-subset137.eu/.
39. ↑ "On-line Key Management FFFIS". http://www.era.europa.eu/Document-Register/Documents/SUBSET-137 v100.pdf.
40. ↑ Authentication System privacyIDEA
41. ↑ "StrongKey". 6 April 2016. https://sourceforge.net/projects/strongkey/.
42. ↑ Manage secrets and protect sensitive data with Vault
43. ↑ "Key Management Service (AWS KMS) - Amazon Web Services (AWS)". https://aws.amazon.com/kms/.
44. ↑ "Key Management System". Bell ID. http://www.bellid.com/products/key-manager.
45. ↑ Landrock, Peter. "Cryptomathic Key Management System". Cryptomathic. http://www.cryptomathic.com/products/key-management/crypto-key-management-system.
46. ↑ "Doppler | SecretOps Platform" (in en). https://www.doppler.com/.
47. ↑ "IBM Cloud Docs". https://cloud.ibm.com/docs/services/key-protect?topic=key-protect-about.
48. ↑ "What is Azure Key Vault?". 18 December 2022. https://azure.microsoft.com/en-us/documentation/articles/key-vault-whatis/.
49. ↑ "About Virtual Private Data". Porticor.com. http://www.porticor.com/porticor-virtual-private-data/.
50. ↑ "UKM Zero Trust SSH Encryption Key Management". http://www.ssh.com/products/universal-ssh-key-manager.
51. ↑ "Encryption & Key Management Overview". https://docs.akeyless.io/docs/encryption-key-management-overview.
52. ↑ Barker, Elaine; Smid, Miles; Branstad, Dennis; Chokhani, Santosh. "NIST Special Publication 800 -130: A Framework for Designing Cryptographic Key Management Systems". National Institute of Standards and Technology. http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-130.pdf.
53. ↑ Baugher, M.; Canetti, R.; Dondeti, L.; Lindholm, F. (2005). Multicast Security (MSEC) Group Key Management Architecture. doi:10.17487/RFC4046.

## External links

* Barker, Elaine (2020). Recommendation for key management. doi:10.6028/NIST.SP.800-57pt1r5.
* NIST Cryptographic Toolkit

Q* The IEEE Security in Storage Working Group (SISWG) that is creating the P1619.3 standard for Key Management

* American National Standards Institute \- ANSI X9.24, Retail Financial Services Symmetric Key Management
* The OASIS Key Management Interoperability Protocol (KMIP) Technical Committee
* The OASIS Enterprise Key Management Infrastructure (EKMI)Technical Committee
* "Key Management with a Powerful Keystore"
* "Intelligent Key Management System - KeyGuard | Senergy Intellution"
* IBM Security Key Lifecycle Manager, SKLM
* NeoKeyManager - Hancom Intelligence Inc.
* KMS Key

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Key management. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Key_management&oldid=4299617"