Key Management Plan: – What needs to be included!!

Key Management Plan, though keys are widely used in various of domains like ATM, HSM, IPSec Tunnel, VPN Tunnels and many others, ways of managing those keys are not widely mentioned. Part of my role is to provide clients with procedures that they could use to manage and maintain the safes.. Lack of defined structure and clarity enables confusion so this is my attempt to standardise the life cycle of sensitive Symmetric Keys.

The Life cycle includes Key Generation, Key Transfer/Conveyance, Key Storage, Key Accounting, Key Destruction, Key Archival and compromise.

High Level Logical Process

  • Provide the high level process to describe the overall cryptographic work flow. Right from task initiation to the different environment the keys or certificate flow into and expected outcome.
  • Provide the high level diagram on different aspects involved and the order the work flows.

Key Generation Process:

  • Provide dates; location details if appropriate.
  • Provide a description of how the key(s) will be sourced. This may be via another agency or may be key(s) generation processes or equipment. It may be required to provide details of the initial key generation or seeding.
  • Provide details on how the key is to be physically loaded into the hardware and/or software cryptographic system.
  • Provide details on how the key(s) are produced and distributed to the relevant parties.
  • Describe how the key(s) are to be used, to the extent that this information is not already covered in sections earlier. Include the following:
  • When encryption and decryption occurs;
  • What data is to be encrypted and decrypted; and
  • The keys and algorithms are to be used in these transformations.
  • Detail the crypto period(s) for the various key(s).
  • Provide details of how the key(s) will be electronically and physically stored. Include security countermeasures that will be used to protect the key(s) from compromise.

Key Accounting:

  • Detail the number of copies of key to be produced and distributed to the various parties.
  • Provide details on the identification of the various key(s) to be produced and/or receipted.
  • Detail the procedures for labelling and recording of the name, version and number of copies that were distributed, and the recipients of the key(s).
  • If appropriate, detail how key(s) are to be destroyed.
  • Provide detailed inventory of various types of key involved with key name, length and type.

Key Distribution 

  • Provide details on how keys will be distributed electronically or physically. This should include security details of courier(s), if used, as well as how the couriers will handle contingencies such as loss or compromise of keys. Electronic distribution of keys may already have been discussed in the section titled “Key Management” above.

Key Contingency 

  • Describe the conditions under which a compromise of cryptographic key material should be declared. This should include loss or theft of keying material, unauthorised access to keys or equipment, and unauthorised extensions of crypto periods.
  • Describe the reporting action that is to be effected as part of a compromise declaration. This should include the addressees of the report, the details of the minimum amount of information that should be included in the report, and any action that is or will be taken to further scope the compromise and/or limit the exposure.
  • Detail the procedures for recovery of keys and encrypted material.

Key Compromise 

  • Detail the key compromise procedure on how the incident will be investigated and how to escalate the incident.
  • Detail some event which is considered as compromise
  • Whenever the HSM is replaced
  • The physical appearance of the HSM indicates a possible tamper
  • The tamper indicator on the HSM is flashing
  • Any safe is unexpectedly found open
  • Any safe is inadvertently left open and unattended by a custodian
  • The seal on an envelope containing a part of the key component is broken
  • The HSM does not accept or validate one or more steps in any key creation or loading procedure
  • The HSM does not accept an authentication attempt from a previously used custodian smartcard
  • Detail the escalation procedure on whom to contact in terms of incident. .

Key Destruction

  • Keys and their bound metadata should be destroyed when they no longer to be used. Destroying a key in a high security application can be a complex process, depending on the storage media of the key. Keys in electronic storage media may be overwritten with zeros or random patterns of zeros and ones repeatedly in a prescribed manner. Magnetic media that has a propensity for retaining low levels of magnetism may be physically destroyed, degaussed, or over-written with various bit patterns numerous times.
  • Provide explanation/procedure on the circumstance under which a key may be destroyed.

Key Archival

  • Key archive involves placing a key in a safe long-term storage facility so that it can be retrieved when needed. Key archiving usually requires provisions for moving the key to new storage media when the old media are no longer readable because of ageing of, or technical changes to, the media readers. Archived keys should be automatically retrieved from the old storage medium and restored on the new storage medium when a storage medium replacement is made.
  • The KMS design shall specify how, where, and the circumstances under which keys and their bound metadata are archived.

Key retrieval

  • Obtaining a cryptographic key from storage, a backup facility, or an archive is considered retrieval if done during normal KMS operation. If there has been an environmental or man-made disaster and the key cannot be normally retrieved and used, the key may have to be recovered by special means or with special permission. The KMS security policy should state the conditions under which a key may be retrieved normally.
  • The KMS design shall specify how, and the circumstances under which, keys and their bound metadata may be retrieved from a key database storage facility.

Key Escrow

  • Key escrow involves providing copies or components of secret or private keys to trusted parties so that the key owner or other authorised parties can recover the key when the owner’s key is destroyed or otherwise unavailable.
  • The KMS design shall specify the security policy (e.g., continuous two-person control) for the protection of escrowed keys.
  • The KMS design shall specify how the security policy is implemented during the key escrow, i.e., how the confidentiality and multi-party control requirements are implemented during transport and storage of the escrowed key.

Hardware and/or Software Maintenance 

  • Detail the maintenance procedures for hardware and/or software items that are critical to successful operation of the cryptographic services. This should include the security measures taken to protect the integrity of the hardware and/or software by uncleared maintenance staff, as well as ensuring hardware and/or software has been adequately sanitised prior to release.
  • Detail the procedures for testing or verification of software upgrades to critical cryptographic services in either the hardware (through firmware) or software.

Key Resources

  • Provide a description of the resources required for operating, maintaining, and supporting the system once it is put into production. Roles to consider include any key custodians, support groups, and any business roles etc.

Risk

  • Outlining the risk aspect of the keys with likelihood, consequences and impact for various likely scenario needed to be outlined.

Forms:

  • Key conveyance and Key Destruction must be tracked either as soft-copy or hard copy, so its best practise to use standard Key conveyance forms/ Key Destruction forms and file them for record purposes.

 

Cryptography

PIN Security and Key Management Control based guidelines

I found this document on PIN Security and Key Management from controls and audit perspective…

Billions of PIN activated transactions are switched through shared ATM and POS networks each year. Each of these transactions is originated using a debit or credit card and Personal Identification Number. With each interchange transaction, the security of the customer’s PIN is under the control of as many as eight or more processing entities. The financial institution, which issues the card, must rely on the security procedures and controls of the acquiring entities with which the card issuer may not have any business relationship.

The number of interchange transactions is increasing, as is the number of organizations processing interchange transactions (merchants, merchant processors, financial institution processors, third party processors, and switches). As the number of organizations involved in processing interchange transactions increases, so does the risk to financial institutions due to ineffective or inadequate security systems and procedures at the acquiring or intermediary systems.

Regional and national interchange networks generally mandate security requirements in their operating rules and procedures. Historically, reviewing security procedures and systems for compliance to the network operating rules was left to the network member or processor. Because the technical expertise in the area of EFT security can vary greatly between and within organizations, the depth of the review can vary greatly. In order to standardize the process for reviewing security processes and procedures, and to eliminate unnecessary redundant compliance documents throughout the industry, this PIN Security Compliance Guideline has been developed.

Full Article is attached as: ANSI X9.24 (Part 1) Retail Financial services compliance guidelines online PIN security and KM

Cryptography

Acronyms widely used in Cryptography

Concept Definition
Accelerated Revocation A key revocation performed on a date sooner than the published key expiry date.
Application The application protocol between the card and the terminal and its related set of data
Application Authentication Cryptogram An Application Cryptogram generated by the card when declining a transaction
Application Cryptogram A cryptogram generated by the card in response to a GENERATE AC command
Authorisation Request Cryptogram An Application Cryptogram generated by the card when requesting online authorisation
Authorisation Response Cryptogram A cryptogram generated by the issuer in response to an Authorisation Request Cryptogram
Asymmetric Cryptographic Technique A cryptographic technique that uses two related transformations, a public transformation (defined by the public key) and a private transformation (defined by the private key). The two transformations have the property that, given the public transformation, it is computationally infeasible to derive the private transformation.
Authentication The provision of assurance of the claimed identity of an entity or of data origin.
Block A succession of characters comprising two or three fields defined as prologue field, information field, and epilogue field.
Byte 8 bits.
Card A payment card as defined by a payment system
Certificate The public key and identity of an entity together with some other information, rendered unforgeable by signing with the private key of the certification authority which issued that certificate.
Certification Authority Trusted third party that establishes a proof that links a public key and other relevant information to its owner.
Ciphertext Enciphered information
Cold Reset The reset of the ICC that occurs when the supply voltage (VCC) and other signals to the ICC are raised from the inactive state and the reset (RST) signal is applied.
Combined DDA/Application Cryptogram Generation A form of offline dynamic data authentication
Command A message sent by the terminal to the ICC that initiates an action and solicits a response from the ICC.
Compromise The breaching of secrecy or security
Concatenation Two elements are concatenated by appending the bytes from the second element to the end of the first. Bytes from each element are represented in the resulting string in the same sequence in which they were presented to the terminal by the ICC, that is, most significant byte first. Within each byte bits are ordered from most significant bit to least significant. A list of elements or objects may be concatenated by concatenating the first pair to form a new element, using that as the first element to concatenate with the next in the list, and so on.
Contact A conducting element ensuring galvanic continuity between integrated circuit(s) and external interfacing equipment.
Cryptogram Result of a cryptographic operation
Cryptographic Algorithm An algorithm that transforms data in order to hide or reveal its information content
Data Integrity The property that data has not been altered or destroyed in an unauthorised manner.
Deactivation Sequence The deactivation sequence defined in section 6.1.5 of Book 1.
Decipherment The reversal of a corresponding encipherment
Digital Signature An asymmetric cryptographic transformation of data that allows the recipient of the data to prove the origin and integrity of the data, and protect the sender and the recipient of the data against forgery by third parties, and the sender against forgery by the recipient.
Dynamic Data Authentication A form of offline dynamic data authentication
Embossing Characters raised in relief from the front surface of a card.
Encipherment The reversible transformation of data by a cryptographic algorithm to produce ciphertext.
Epilogue Field The final field of a block. It contains the error detection code (EDC) byte(s).
Exclusive-OR Binary addition with no carry, giving the following values
Financial Transaction The act between a cardholder and a merchant or acquirer that results in the exchange of goods or services against payment.
Function A process accomplished by one or more commands and resultant actions that are used to perform all or part of a transaction.
Guardtime The minimum time between the trailing edge of the parity bit of a character and the leading edge of the start bit of the following character sent in the same direction.
Hash Function A function that maps strings of bits to fixed-length strings of bits, satisfying the following two properties It is computationally infeasible to find for a given output an input which maps to this output It is computationally nfeasible to find for a given input a second input that maps to the same output.
Hash Result The string of bits that is the output of a hash function.
Integrated Circuit Module The sub-assembly embedded into the ICC comprising the IC, the IC carrier, bonding wires, and contacts
Integrated Circuit(s) Electronic component(s) designed to perform processing and/or memory functions.
Interface Device That part of a terminal into which the ICC is inserted, including such mechanical and electrical devices as may be considered part of it.
Kernel The set of functions required to be present on every terminal implementing a specific interpreter. The kernel contains device drivers, interface routines, security and control functions, and the software for translating from the virtual machine language to the language used by the real machine. In other words, the kernel is the implementation of the virtual machine on a specific real machine
Key A sequence of symbols that controls the operation of a cryptographic transformation.
Key Expiry Date The date after which a signature made with a particular key is no longer valid. Issuer certificates signed by the key must expire on or before this date. Keys may be removed from terminals after this date has passed.
Key Introduction The process of generating, distributing, and beginning use of a key pair
Key Life Cycle All phases of key management, from planning and generation, through revocation, destruction, and archiving
Key Replacement The simultaneous revocation of a key and introduction of a key to replaced the revoked one.
Key Revocation The key management process of withdrawing a key from service and dealing with the legacy of its use. Key revocation can be as scheduled or accelerated
Key Revocation Date The date after which no legitimate cards still in use should contain certificates signed by this key, and therefore the date after which this key can be deleted from terminals. For a planned revocation the Key Revocation Date is the same as the key expiry date.
Key Withdrawal The process of removing a key from service as part of its revocation.
Keypad Arrangement of numeric, command, and, where required, function and/or alphanumeric keys laid out in a specific manner.
Library A set of high-level software functions with a published interface, providing general support for terminal programs and/or applications
Logical Compromise The compromise of a key through application of improved cryptanalytic techniques, increases in computing power, or combination of the two.
Magnetic Stripe The stripe containing magnetically encoded information
Message A string of bytes sent by the terminal to the card or vice versa, excluding transmission-control characters.
Message Authentication Code A symmetric cryptographic transformation of data that protects the sender and the recipient of the data against forgery by third parties.
Nibble The four most significant or least significant bits of a byte.
Padding Appending extra bits to either side of a data string.
Path Concatenation of file identifiers without delimitation
Payment System Environment The set of logical conditions established within the ICC when a payment system application conforming to this specification has been selected, or when a Directory Definition File (DDF) used for payment system application purposes has been selected.
Physical Compromise The compromise of a key resulting from the fact that it has not been securely guarded, or a hardware security module has been stolen or accessed by unauthorised persons.
PIN Pad Arrangement of numeric and command keys to be used for personal identification number (PIN) entry
Plaintext Unenciphered information
Planned Revocation A key revocation performed as scheduled by the published key expiry date.
Potential Compromise A condition where cryptanalytic techniques and/or computing power has advanced to the point that compromise of a key of a certain length is feasible or even likely
Private Key That key of an entity‘s asymmetric key pair that should only be used by that entity. In the case of a digital signature scheme, the private key defines the signature function.
Prologue Field The first field of a block. It contains subfields for node address (NAD), protocol control byte (PCB), and length (LEN).
Public Key That key of an entity‘s asymmetric key pair that can be made public. In the case of a digital signature scheme, the public key defines the verification function.
Public Key Certificate The public key information of an entity signed by the certification authority and thereby rendered unforgeable.
Script A command or a string of commands transmitted by the issuer to the terminal for the purpose of being sent serially to the ICC as commands.
Static Data Authentication Offline static data authentication
Symmetric Cryptographic Technique A cryptographic technique that uses the same secret key for both the originator‘s and recipient‘s transformation. Without knowledge of the secret key, it is computationally infeasible to compute either the originator‘s or the recipient‘s transformation.
Terminal The device used in conjunction with the ICC at the point of transaction to perform a financial transaction. The terminal incorporates the interface device and may also include other components and interfaces such as host communications.
Terminate Card Session End the card session by deactivating the IFD contacts according to section 6.1.5 of Book 1 and displaying a message indicating that the ICC cannot be used to complete the transaction
Transaction Certificate An Application Cryptogram generated by the card when accepting a transaction
Virtual Machine A theoretical microprocessor architecture that forms the basis for writing application programs in a specific interpreter software implementation
Warm Reset The reset that occurs when the reset (RST) signal is applied to the ICC while the clock (CLK) and supply voltage (VCC) lines are maintained in their active state
Cryptography

Key names widely used in Crypto world

Accronym Abbrevation
3DES Triple Data Encryption Standard
AES Advanced Encryption Standard
AWK Acquirer Working Key
CDA Combined Data Authentication
CMK Control Master Key
CVK Card verification key
CVV Card verification Value
DCE Data Communication equipment
DDA Dynamic Data Authentication
DES Data Encryption standard
DL Double Length
EFPTOS Electronic fund transfer at POS
ENC Visa issuer Master Encryption Key
IMKac Master card Issuer Master Key for the generation of AC generation
IMKdac Master card Issuer Master Key for the generation of data Authentication code
IMKmac Master card Issuer Master Key for the generation of Message Authentication Code
IMKsmc Master card Issuer Master Key for the generation of Secure Message confidentiality
IMKsmi Master card Issuer Master Key for the generation of Secure messaging Integrity
IWK Issuer Working Key
KCL Key Compromise List
KCV Key check Value
KMKmac Card unique key derived from IMKmac
LMK Local Master Key
MAC Visa Issuer Message Authentication Code
MDK Visa Issuer Master Derivation Key
MDK enc Issuer Master encryption key for script commands
MDK mac Issuer master MAC key for script commands
MDKac Issuer Master Key for AC generation
MKsmc Card unique key derived from IMKsmc
P1 Public Keys
PAN Primary Account Number
PEK PIN Encipherment Key
PIN Personal Identification Number
PROM Programmable Read only memory
PVK PIN Verification Key
PVKI PIN Verification Key Indicator
PVV PIN Verification Value
RSA Rivest Shamir Adleman (public key cryptography algorithm)
S1 Private key sets
SA Service Agents
SDK Software Development Kit
SDA Static Data Authentication
TAK Terminal Authentication Key
TCP Transport control Protocol
TDK Terminal Derivation Key
TEK Terminal Encryption Key
TMK Terminal Master Key
TPK Terminal PIN Key
UDK card unique key derived from MDK
UDK mac Card unique derived from MAC
UDKenc Card Unique key derived from ENC
VSDC Visa Smart Debit Credit
WK Working Key
WWK Watch World Key
X’NN A 2 Digit Hexadecimal value , used to represent one byte
ZAK Zone authentication Key
ZCMK Zone control Master Key
ZEK Zone encryption Key
ZMK Zone Master Key
ZPK Zone Pin Key
ZTK Zone Transport Key
Cryptography