Join our Newsletter — 33% off our NHI Course
Home› Guides› Hardware security module (HSM) day-2 operations runbook: recurring…
Template Data Security

Hardware security module (HSM) day-2 operations runbook: recurring HSM tasks with steps and evidence

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 14 November 2026 13 min read
On this page

Hardware security modules fail quietly: firmware falls behind its validation, a custodian leaves with a smart card, an application PIN never changes and nobody has restored a partition since the install. This template gives [Organisation] a day-2 runbook for the team that operates HSMs, whether network appliances in your own data centres, PCIe cards in servers or a dedicated cloud HSM service. It sets out each recurring task, the roles involved, the ordered steps, the checks that prove the step worked and the evidence to keep. It assumes the HSMs are already deployed and hardened as described in the HSM Deployment and Operations Guide. The scored quarterly review, with its metrics and thresholds, is the Hardware security module (HSM) health check; this runbook does the work behind it and does not restate those metrics.

How to use this template

  • One runbook per HSM cluster or service: fill in a copy for each group of HSMs that share partitions, a security domain or backup material. Payment HSMs follow scheme rules as well; see Payment HSMs before adapting this template for them.
  • Replace the square brackets: [brackets] mark placeholders and guidance. HSM products use different names for the same ideas (partition, slot, domain, security world; security officer, crypto officer, administrator). Section 1 records the mapping for your product so the rest of the runbook can use the generic terms.
  • On-premises and cloud differ: tasks marked OP apply where you own the hardware; tasks marked CL apply to a dedicated cloud HSM service where the provider handles hardware and some firmware. Access, key, log and backup tasks apply to both.
  • Quorum tasks need planning: anything that requires M of N custodians is booked at least [10] business days ahead with a named deputy for each custodian.
  • Owner and review: [HSM Service Owner], reviewed every [12] months, after each firmware upgrade and after any incident involving keys held in the HSMs.

1. Purpose, scope and terminology

1.1 This runbook covers recurring operation of [HSM cluster name]: firmware and client software maintenance, review of HSM accounts and custody, rotation of HSM credentials and wrapping keys, audit log and tamper alert review, and backup and restore testing.

1.2 Out of scope: generating new root or issuing keys (use the Cryptographic Key Ceremony Template), responding to suspected key compromise (use the Encryption Key Compromise Playbook) and selecting or replacing the HSM platform (see the HSM and Key Management Buyer's Guide).

1.3 Terminology mapping for this product:

Generic term in this runbookMeaningYour product's term
PartitionIsolated key store with its own users and policy[slot, partition, domain, security world]
Security officerInitialises tokens and manages user PINs; the PKCS #11 standard calls this the CKU_SO user type[name]
Crypto userUses keys for operations; PKCS #11 CKU_USER[name]
Appliance administrator (OP)Manages network, firmware and appliance settings, not keys[name]
Quorum or authentication tokenSmart card, key share or device required for M of N approval[name]
Backup materialEncrypted key backups plus whatever key or token decrypts them[name]

2. Roles and responsibilities

RoleResponsibilitiesNamed holder
HSM service ownerApproves calendar, maintenance windows, exceptions; signs quarterly evidence[Name]
HSM operators (primary, deputy)Run firmware updates, log checks, backups and restore tests[Names]
Security officersHold SO credentials; manage crypto user accounts and PINs[Names, never the same people as the operators where staff numbers allow]
CustodiansHold quorum tokens or key shares; attend quorum operations and custody checks[Names and deputies; N issued, M required]
Independent witnessObserves quorum operations and signs the record[Security, audit or risk role]
Application ownersOwn crypto user credentials for their applications; confirm service after maintenance[Distribution list]

3. Operating calendar

TaskCadenceSectionEvidence
Review vendor security advisories, firmware and client release notesWeekly and on notification4Advisory log with decision
Firmware update (OP; CL where customer-scheduled)Planned per advisory decision; security fixes within [90] days4Change record, validation check, post-checks
Client library and integration agent updatesQuarterly4Change record
HSM account reviewQuarterly and on leaver or role change5Signed review
Custody check of quorum tokens and sharesEvery [6] months5Custody register signed by each holder
Rotate crypto user PINs and client certificatesPer policy, at most [12] months; on staff change6Rotation record
Rotate SO and administrator credentialsAnnually and on holder change6Quorum operation record
Audit log delivery and integrity checkWeekly7Pipeline check
Triage tamper, hardware and failed-login alertsOn alert7Case record
Backup after key changesSame day as any key creation or import8Backup log entry
Restore test into isolated HSMAnnually per partition, staggered quarterly8Restore record
Physical inspection (OP)Quarterly7Inspection record

4. Firmware and software maintenance

4.1 Validation check before any firmware change: where [Organisation] relies on FIPS 140 validation, compare the target firmware version with the module's certificate on the NIST Cryptographic Module Validation Program (CMVP) site. CMVP certificates name specific module and firmware versions, so a new firmware release may not yet be covered. The CMVP site states that FIPS 140-2 certificates moved to the Historical list after 21 September 2026, which limits those modules to existing systems; record what this means for your estate and your replacement plan. Decide, with the service owner, between staying validated on older firmware and applying an unvalidated security fix, and record the risk acceptance either way.

4.2 Prepare (OP):

  1. Take a fresh backup of every partition on the target HSM and confirm it completed (section 8).
  2. Confirm the cluster can serve all applications with one HSM out of service.
  3. Check the vendor's notes for upgrade order, minimum intermediate versions, whether the update needs SO or quorum authorisation and whether it is reversible. Some updates cannot be rolled back once applied.
  4. Verify the firmware image signature or hash using the vendor's published method, and record the value.
  5. Book custodians if quorum approval is needed.

4.3 Apply: drain the HSM from the client load balancing or cluster configuration, apply the firmware, let it restart, confirm the reported firmware version, then rejoin it and let replication or key synchronisation complete before moving to the next HSM. Update a non-production HSM first and run the post-checks there for at least [5] business days.

4.4 Cloud (CL): record the provider's maintenance notices and the validation level the provider states for the service, and update the client software you install on your hosts.

4.5 Post-checks: each application performs a signing, decryption or key unwrap operation with a test key; key counts per partition match the pre-change export; policy settings (quorum, key export rules) are unchanged; audit logging still delivers; and no new tamper or self-test errors appear.

4.6 Roll back: if post-checks fail and the update is reversible, revert on the affected HSM only and keep it out of the cluster until fixed. If irreversible, keep it out of service, rely on the remaining HSMs and open a vendor case. Do not restore a backup onto a remaining production HSM as a rollback step.

5. HSM account and custody review

5.1 Export the account list from every partition and from appliance administration (OP). For each SO, crypto user and administrator account, confirm a named owner (an application owner for service accounts), a current purpose and recent use. Remove or lock unused accounts through the SO; record the change.

5.2 Check separation: the same person should not hold both appliance administrator and SO roles, and operators should not hold enough custodian tokens to meet quorum on their own.

5.3 Check which hosts and identities can reach the HSM network interface or client service. Network reachability is the first gate for crypto users; a decommissioned server that still holds a client certificate is a live path to keys.

5.4 Custody check: each custodian produces their token or confirms the sealed envelope or safe location is intact, in front of the witness, without revealing PINs. Update the register. If a holder has left or cannot produce their token, re-issue or rekey (section 6.3) before available holders drop to the quorum number.

5.5 Leavers: on the HR event, revoke HSM accounts and recover tokens within [1] business day.

6. Credential and wrapping key rotation

Credential or keyWho changes itMethodWatch for
Crypto user PIN or passwordSO, or the user with the PKCS #11 C_SetPIN functionSet new value, update the secret store, restart or reload clientsApplications that read the PIN only at start-up
Client certificate for HSM accessApplication owner with PKI teamIssue new, register with HSM, switch clients, revoke oldCertificates pinned on the HSM side
SO and administrator credentialsCurrent holder under quorumChange in a witnessed sessionLockout if done without a second SO
Quorum tokens and their PINsCustodiansRe-issue or rekey ceremonyOld tokens still able to authorise
Backup wrapping or cloning keySO and custodiansNew key, new backups, verified restore, retire old backups per retentionOld backups that only the old key can open

6.1 Store application PINs and client keys in the secrets manager, never in configuration files, and rotate them with the Secrets Rotation Runbook Template. The platform side of that is covered by the Secrets manager day-2 operations runbook.

6.2 Application keys inside the HSM follow cryptoperiods set in the key management policy, informed by NIST SP 800-57 Part 1 Rev. 5; see the Cryptographic Key Management Policy Template. This runbook covers the credentials that guard the HSM, not those keys.

6.3 Wrapping key changes: keep the old wrapping key until every backup that depends on it has passed its retention date or been re-created and restore-tested under the new key. Record the mapping of backup sets to wrapping key versions.

7. Audit log, alert and physical review

7.1 Weekly pipeline check: every HSM delivered logs in the last 24 hours, sequence numbers or counters show no gaps, the destination is protected from HSM operators (NIST SP 800-53 AU-9) and HSM clocks are synchronised to [time source].

7.2 Events to triage:

EventFirst question
Tamper, intrusion or chassis openWas there approved maintenance? If not, take the HSM out of service and follow the compromise playbook
Self-test or hardware faultIs the HSM still in an approved mode, and has it dropped from the cluster?
Repeated failed logins to SO or adminWho and from where; is lockout working as configured?
Account created, role changed or PIN resetDoes it match a request and a witnessed session?
Key export, wrap or clone outside the backup scheduleWas it an approved operation with quorum?
Policy change (quorum, export rules, mode)Was it approved under change control?
Unusual operation volume from one crypto userHas the application changed or is a host misusing its credential?

7.3 Monthly review: list all administrative events and match each to a change or ceremony record. For log platform design, see the CIS Control 8 Audit Log Management Guide.

7.4 Physical inspection (OP): check tamper-evident seals, labels and serial numbers against the asset register, the rack lock and the access log for the room (NIST SP 800-53 PE-3). Photograph seals and keep the images with the record.

8. Backup and restore testing

8.1 After key changes: back up the partition the same day a key is created or imported, confirm the job completed and record the backup identifier and wrapping key version.

8.2 Storage: keep backups and backup tokens in at least two locations, with tokens and backup files never stored together and access limited to named custodians.

8.3 Restore test:

  1. Use an isolated HSM (spare appliance, non-production unit or separate cloud cluster) with no client path from production.
  2. Restore the partition with the real backup material and the real custodians. A test that bypasses the quorum does not prove you can recover.
  3. Confirm the key count and key attributes match the production export, and run a test operation with [3] named keys, comparing signatures or decrypting known test data.
  4. Record elapsed time, people needed and any missing material.
  5. Zeroise the test HSM or partition and record it.

8.4 A failed restore is reported to the service owner the same day and retested within [30] days. Cross-check the result with the wider Disaster Recovery Runbook Template so the HSM recovery time fits the services that depend on it.

9. Evidence log and exceptions

9.1 Keep an evidence log per cluster: date, task, operator, witness where required, result, change reference and artefacts (exports, photographs, signed registers). Retain for [retention period].

9.2 Missed or failed tasks are exceptions approved by the service owner with a new date. Feed completed evidence into the quarterly Hardware security module (HSM) health check; track here only on-time completion and failures per task.

Implementation guidance

  1. Build the registers first: HSM asset register with firmware versions, account list per partition, custody register and backup set register. The first pass usually finds an unowned crypto user or a token held by a former employee.
  2. Rehearse quorum work: run a restore test in non-production before the first production cycle so custodians know the sequence and the timings are realistic.
  3. Small teams: a two or three person team cannot fully separate operators, SOs and custodians; use witnesses from another team and lower the quorum threshold only with written risk acceptance.
  4. Cloud HSM services: drop the physical and most firmware tasks, keep account, custody, log and restore tasks, and record what the provider is responsible for.
  5. Framework mapping: the tasks support NIST SP 800-53 SI-2, MA-2 Controlled Maintenance, AC-2, IA-5, SC-12, AU-6, AU-9, PE-3, CP-9 and CP-4, and NIST CSF 2.0 PR.PS-02, PR.AA-05, PR.PS-04, DE.CM-09, PR.DS-11 and RC.RP-03. For wider key management context see the Cryptographic Key Management Guide.

Sources used for this template: NIST: Cryptographic Module Validation Program; OASIS: PKCS #11 Specification Version 3.1; NIST: SP 800-57 Part 1 Rev. 5 Recommendation for Key Management; NIST: SP 800-53 Rev. 5; NIST: Cybersecurity Framework 2.0; NIST: SP 800-40 Rev. 4 Guide to Enterprise Patch Management Planning; NIST: SP 800-92 Rev. 1 (Initial Public Draft) Cybersecurity Log Management Planning Guide.

Related NHI Mgmt Group resources: HSM Deployment and Operations Guide · Hardware security module (HSM) health check · Cryptographic Key Ceremony Template · Encryption Key Compromise Playbook · Secrets manager day-2 operations runbook

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.