The Bitcoin WorldA division of Global Digital Treasury

Hardware security modules (HSMs) in Bitcoin custody

By Muhammad Bana4 min readCustody
Key takeaways
  • An HSM is tamper-resistant hardware that generates and uses keys without exposing them to ordinary computers
  • Certification, such as FIPS 140 levels, tests the device, not the processes and people around it
  • Boards should ask who can instruct the HSM, how policies are enforced and how keys are backed up and recovered

A hardware security module (HSM) is a tamper-resistant device that generates, stores and uses private keys inside protected hardware, so the keys are never exposed to ordinary servers or staff laptops. In Bitcoin custody, HSMs are used by custodians and larger self-custody operations to protect keys and to enforce rules about when those keys may sign.

An HSM is a strong control, but it is only one layer. Its value depends on who can instruct it, what policies it enforces and how its keys are backed up.

What a hardware security module does in Bitcoin custody

Banks and payment networks have used HSMs for decades to protect card PINs and payment keys. The same principle applies to Bitcoin.

An HSM typically:

  • Generates keys inside the device using a certified random number source.
  • Keeps keys inside the hardware boundary, so they cannot be copied out in plain form.
  • Signs transactions internally when an authorised request arrives.
  • Detects physical tampering and, in many designs, erases key material if attacked.
  • Records administrative actions in an audit log.

The key point for a finance team: the private key is used, but not seen. Nobody, including system administrators, should be able to read it.

Certification and what it means

HSMs are commonly evaluated against FIPS 140, a US government standard for security modules, now in its 140-3 version. Products are certified at levels from 1 to 4. Higher levels add stronger physical tamper resistance and response. Some devices are also evaluated under Common Criteria.

Certification is useful evidence that the hardware meets a defined bar. It does not show:

  • How the custodian configured the device.
  • Who holds administrator cards or credentials.
  • Whether signing policies are enforced inside the HSM or in software around it.
  • How backups are made, stored and tested.

Those questions sit with the provider's processes and should be covered in its SOC 1 Type II and SOC 2 Type II reports.

Where HSMs sit in a custody design

HSMs appear in several places in corporate Bitcoin custody:

Use Role of the HSM What to check
Custodian online or warm wallets Signs routine withdrawals under policy How approvals reach the HSM; rate and value limits
Offline or deep cold storage Holds keys in an isolated environment Physical access, ceremony records, backup sites
MPC schemes Protects each key share Whether every share is in certified hardware
Multisig schemes Protects one or more of the keys Separation between key holders and sites

HSMs can be combined with either signing model. Our comparison of MPC vs multisig explains those models.

HSMs compared with hardware wallets

Smaller self-custody setups often use consumer or prosumer hardware wallets rather than HSMs. Both keep keys off general-purpose computers. The differences are mostly about scale and control:

  • HSMs are built for data-centre use, high availability and integration with approval systems.
  • HSMs usually support role-based administration, with separate officers needed to change settings.
  • Hardware wallets are simpler and cheaper, and are often used for individual keys in a multisig arrangement.

Neither is automatically right. The design should match the size of the holding, how often it moves and the team's capability.

The governance questions that matter most

Who can instruct the HSM?

An HSM signs what it is told to sign, within its rules. If an attacker controls the systems that send requests, the HSM may sign a fraudulent transaction perfectly. Ask how requests are authenticated and how many independent approvals are required before a request reaches the device.

Where is policy enforced?

Some designs enforce limits, whitelists and quorums inside the HSM's secure boundary. Others enforce them in surrounding software. Rules inside the hardware are harder to bypass. Ask which rules live where.

How is administration split?

Changes to HSM configuration should require several administrators, often using physical smart cards held by different people. No single administrator should be able to change policy or export keys in any form.

Backup and recovery

Keys are usually backed up in encrypted form to other HSMs or secure media at separate sites. Ask how many backups exist, where they are, who can restore them and when recovery was last tested. This links to your succession and continuity planning.

Practical tip: when a provider mentions its HSMs, ask to see the section of its SOC 2 Type II report that covers HSM administration and key backup. The hardware is rarely the weak point; the processes around it can be.

Limits of HSMs

  • Insider risk moves rather than disappears. Whoever controls the approval workflow controls what the HSM signs.
  • Vendor and firmware risk. Devices need patching, and the update process itself must be controlled.
  • Cost and complexity. Running HSMs well requires specialist staff, which is why most companies rely on a custodian's infrastructure.
  • Continuity. If the only HSM holding a key fails and backups are inaccessible, funds can be frozen.

Questions to put to a provider

  • Which HSM models are used, and what certification level do they hold?
  • Are keys generated inside the HSM? Can they ever leave it, even encrypted?
  • Which signing rules are enforced inside the hardware boundary?
  • How many administrators are needed to change configuration?
  • Where are backups held, and when was a full restore last tested?
  • Are HSM controls in scope for your SOC reports, and were there exceptions?

These belong in a structured custodian due diligence process.

How The Bitcoin World helps

We help finance teams understand how a provider's hardware and key controls fit their own governance, and we document the findings for the board within our custody architecture work. We do not hold keys or client assets. Custody and execution are carried out by licensed third-party institutions.

Thinking about Bitcoin for your company?

Book a short call. We will talk through your situation and tell you plainly how we would approach it.