Quick answer: An HSM (hardware security module) is a tamper-resistant physical device that generates, stores and uses cryptographic keys inside secure hardware, so the keys never leave it in readable form. Banks have used HSMs for decades to protect card PINs and payment systems. In crypto custody, HSMs protect private keys or MPC key shares, and are often certified to standards such as FIPS 140-2 or FIPS 140-3.
Key takeaways
- An HSM signs transactions inside the device; the private key is never exposed to the server's memory.
- Tamper protection can erase keys if someone tries to open or attack the device.
- Many regulators and banks expect HSM-level protection for institutional custody.
- Modern custodians often combine HSMs with MPC and strict approval policies.
How does an HSM work in crypto custody?
- Key generation: The private key is generated inside the HSM using a certified random number generator.
- Storage: The key stays in the HSM's protected memory or is exported only in encrypted, wrapped form.
- Signing: The custody system sends a transaction to the HSM, which checks access rights and signs it internally.
- Audit: Every use of the key is logged for compliance and audits.
- Backup: Encrypted backups are stored in other HSMs or secure locations for disaster recovery.
HSM vs MPC vs multisig
| Feature | HSM | MPC | Multisig |
|---|---|---|---|
| Core idea | Protect a key inside certified hardware | Split the key into shares; no full key exists | Require several separate keys on-chain |
| Single point of failure | The device (mitigated by backups and policies) | Removed by design | Removed by design |
| Certification | Formal standards (e.g., FIPS 140-2/140-3) | Depends on implementation and audits | Depends on the blockchain and wallet |
| Blockchain support | Needs support for the chain's signing algorithm | Most chains | Only chains or contracts that support it |
| Typical users | Banks, regulated custodians | Custodians, exchanges, fintechs | DAOs, treasuries, advanced users |
Why banks like HSMs
- Familiar and certified: HSMs are already part of banks' security architecture and audit processes.
- Physical control: Regulators can require keys to stay in specific locations or jurisdictions.
- Strong separation of duties: Access to HSM functions can require several administrators with smart cards.
HSM + MPC: the hybrid model
Many institutional custodians now store MPC key shares inside HSMs. This combines the certified, tamper-resistant protection of hardware with the "no single key" benefit of MPC. Approval policies—who can request, approve and sign—sit on top of both.
Questions to ask a crypto custodian
- Are keys or key shares stored in certified HSMs?
- Is there a single point of failure—person, device or location?
- How are transactions approved, and what limits apply?
- Where are backups stored, and how is recovery tested?
- Are client assets segregated and covered by audits and insurance?
- Which regulator licenses the custody service?
Frequently asked questions
Is an HSM the same as a hardware wallet?
Both protect keys in hardware, but HSMs are enterprise-grade devices built for high-volume, audited operations; hardware wallets are personal devices.
What is FIPS 140-3?
A US government standard for validating cryptographic modules. Higher levels require stronger physical tamper protection.
Do I need an HSM for my personal crypto?
No. For individuals, a reputable hardware wallet and a well-protected seed phrase are usually appropriate.
Master custody, security and institutional crypto in the Iqra Crypto learning packages. This article is educational content only and is not financial advice.
