Back to the course →
Saolix Group · Course takeaway

PIN Security, HSMs and Key Ceremonies

Nine lessons on the most protected four digits in finance - how a PIN travels, the keys that wrap it, the hardware that holds them, and the ceremony that creates them.

Foundations · 9 lessons · about 90 minutes

Used in roles like Payments Operations Analyst · Settlement Officer · Payments Product Manager · Reconciliation Analyst

What the course covers

  1. 1. Four digits, and why they need all this

    A payment PIN is four digits, sometimes six. A thousand guesses would exhaust a four-digit PIN by

  2. 2. The journey of a PIN

    Follow a PIN from a keypad to the bank that checks it, and the architecture explains itself.

  3. 3. PIN blocks, and why the format matters

    A PIN block is not an encrypted PIN. It is an encrypted structure that combines the PIN with

  4. 4. The key hierarchy

    Payment cryptography uses a hierarchy of keys, where keys protect other keys. The structure is

  5. 5. Hardware security modules

    A hardware security module - universally shortened to HSM - is a computer whose purpose is to hold

  6. 6. Key ceremonies, and why the theatre is the control

    A key ceremony is the formal procedure for creating or loading a key that cannot be sent

  7. 7. Verifying a PIN

    Verification happens in one of two places, and the difference matters for both design and customer

  8. 8. What an assessor looks for

    PIN security is one of the most heavily assessed areas in payments, and the assessment has a defined

  9. 9. Running it, and what to do when something goes wrong

    Six practices separate an institution that controls its key estate from one that merely owns one.

Key terms

The PIN is never exposed in clear outside protected hardware · Attempts are counted and bounded · keys and hardware · Every hop needs its own protection · Keys multiply · The procedures are part of the cryptography · Entry · Encryption, immediately · PIN block · Transmission · Translation · translates · Verification · point-to-point encryption · No single party holds everything · The clear PIN exists only inside hardware, ever · structure · The naive design

Where this comes from

  1. PIN Security: the PCI standard for the secure management, processing and transmission of PINs and associated cryptographic keys, and the Qualified PIN Assessor programme
  2. PCI Security Standards Council document library
  3. FIPS 140-3, Security Requirements for Cryptographic Modules: four qualitative security levels, physical security, sensitive security parameter management and self-tests
  4. NIST SP 800-57 Part 1 Revision 5, Recommendation for Key Management: the protection each key type requires and the functions of key management
  5. ISO 9564 (PIN management and security): the standard that defines PIN block formats, published and sold by ISO and deliberately not reproduced in this course
  6. EMV specifications and document library: the chip side of PIN verification
  7. Principles for operational resilience
  8. Principles for financial market infrastructures (Principle 17, operational risk)