When a cryptographic algorithm you depend on is broken or formally deprecated, the clock starts for every certificate, key, protocol setting and signed artefact that uses it, and most organisations cannot say quickly where those are. Breaks come in different shapes. SHA-1 weakened over years until the SHAttered team published the first practical collision on 23 February 2017, and NIST later set 31 December 2030 as the date to stop using it. SIKE, a fourth-round candidate in NIST's post-quantum process, fell in a single paper: Castryck and Decru reported recovering a SIKEp434 key in about ten minutes on one core. This template gives [Organisation] a playbook for both: assess exposure, contain, migrate, and verify, with named roles and decision points. It is for cryptography owners, PKI teams and security architects, and it assumes the planned post-quantum migration is run separately.
How to use this template
- Adopt, then tailor: Copy sections 1 to 8 into your incident response plan and replace every [placeholder]. Keep the severity table in section 1 as the single basis for urgency.
- Separate break response from planned migration: This playbook handles an event (a published attack, an emergency deprecation, a flawed implementation). The scheduled move to post-quantum algorithms is covered in the Post-Quantum Cryptography Migration Guide; a break may accelerate it.
- Depend on the inventory: Speed is set by your cryptographic inventory. If you do not have one, section 4 tells you how to build a targeted one under pressure, but start building the full one now with the Cryptographic Inventory and CBOM Guide.
- Use with related plans: If the break forces certificate reissue at scale, run the CA Compromise and Mass Certificate Replacement Playbook alongside this one.
- Review annually and after any significant cryptanalysis result. Owner: [Cryptography Owner].
1. Triggers and severity
1.1 This playbook applies to all cryptographic algorithms, modes, key sizes and parameter sets used by [Organisation] systems, products and suppliers, including hash functions, symmetric ciphers, key exchange, digital signatures, random number generators and post-quantum schemes.
1.2 Triggers:
- Publication of a practical attack (collision, key recovery, forgery, plaintext recovery) against an algorithm or parameter set in use.
- A standards body or regulator deprecating or disallowing an algorithm, for example a revision of NIST SP 800-131A, a NIST retirement announcement, or national guidance such as NCSC timelines.
- A vendor advisory for a flawed implementation (side channel, weak randomness, parameter validation) in a library, HSM or appliance in use.
- Root programme, browser or operating system vendor announcing removal of support for an algorithm.
- A significant reduction in estimated attack cost reported in peer-reviewed cryptanalysis.
1.3 Severity:
| Severity | Definition | Example | Response target |
|---|---|---|---|
| S1 Critical | Practical attack published, usable against [Organisation] use cases now, or exploitation seen | A key recovery attack running in minutes on commodity hardware, as with SIKE | Exposure assessment in [24 hours]; containment in [72 hours] |
| S2 High | Practical attack against some uses (for example collisions affecting signatures but not HMAC) | Chosen-prefix SHA-1 collisions affordable to a well-funded attacker | Assessment in [5 days]; containment in [30 days] |
| S3 Medium | Formal deprecation with a dated deadline, no practical attack on your use | NIST's SHA-1 retirement by 31 December 2030 | Plan in [90 days]; migrate before the deadline |
| S4 Low | Theoretical result or reduced security margin | Academic improvement that does not yet threaten deployed parameters | Record in the risk register; review at next cycle |
1.4 Severity is set per use, not per algorithm. A hash collision matters greatly for certificate signatures and much less for HMAC or for non-security checksums. The [Cryptography Owner] records the severity and the reasoning in the incident record.
2. Roles
| Role | Responsibilities | Named person |
|---|---|---|
| Cryptography Owner (incident lead) | Declares the event, sets severity, owns the decision log and closure | [Name] |
| Cryptographic analyst | Interprets the attack: which uses, parameter sets and modes are affected; tracks updates from authors and standards bodies | [Name or external adviser] |
| PKI service owner | Certificates, CAs, signature algorithms, trust stores, reissue | [Name] |
| Platform and application owners | Configuration and code changes in their systems | [Per system, from inventory] |
| Supplier manager | Vendor and HSM advisories, firmware timelines, contractual commitments | [Name] |
| Risk and compliance | Regulatory and contractual obligations, exceptions, customer communication | [Name] |
| Communications | Internal updates and, if needed, customer statements | [Name] |
2.1 Decision rights: the Cryptography Owner may order emergency configuration changes for S1 events; disabling an algorithm that would break a customer-facing service needs [CISO] approval.
3. Phase 1: assess exposure
3.1 Characterise the break. The cryptographic analyst records: affected algorithm and parameter sets; attack type (collision, preimage, key recovery, forgery, side channel); preconditions (chosen prefix, known endomorphism ring, oracle access, local access); cost and time; whether code is public; and whether the issue is the algorithm or a specific implementation. The SIKE result, for example, needed knowledge of the starting curve's endomorphism ring, which SIKE's design supplied.
3.2 Query the inventory. Search the cryptographic inventory or CBOM for the algorithm, by use:
- Certificates and PKI: signature algorithms in issued certificates and CA hierarchies, OCSP and CRL signing, and trust anchors.
- Protocols: TLS, SSH, IPsec and VPN cipher suites and key exchange groups on servers, load balancers and clients.
- Signing: code signing, firmware signing, package and container signatures, document signing, JWT and SAML signing keys.
- Data at rest: encryption of stored data, backups and archives, including data that must remain confidential for years.
- Keys and secrets: HSM and KMS key types, machine identities, API tokens and service account credentials that rely on the algorithm.
- Suppliers: products, SaaS and libraries that embed the algorithm and are outside your direct control.
3.3 No inventory? Build a targeted one: scan external and internal TLS endpoints, export certificate inventories from your CAs and certificate lifecycle tooling, search code repositories and dependency manifests for the algorithm and library names, query HSM and KMS key listings, and send a short questionnaire to critical suppliers. Record gaps explicitly.
3.4 Rate each affected use: exposure (internet-facing, internal, offline), data lifetime, whether an attacker can exploit it retroactively (stored ciphertext, previously signed artefacts), and ease of change. Retroactive risk raises priority: signed artefacts can be forged against old keys, and recorded traffic can be decrypted later.
3.5 Decision point: confirm or adjust severity per use. Record in the decision log.
4. Phase 2: contain
4.1 Containment reduces exploitability while migration is prepared. Options, in order of preference:
| Containment option | When to use | Risk |
|---|---|---|
| Disable the algorithm where an alternative is already negotiated | Protocol suites where peers support a safer option | Breaks legacy peers; test with logs first |
| Prefer the safer option and keep the weak one as fallback | Mixed estates during transition | Downgrade attacks remain possible (ATT&CK T1689 Downgrade Attack) |
| Add a second, independent algorithm (hybrid) | Key exchange or signatures where a hybrid mode is supported | More complexity and larger messages |
| Restrict scope (shorter validity, network isolation, rate limits) | Where the algorithm cannot be removed yet | Reduces but does not remove exposure |
| Stop issuing new artefacts with the algorithm | Always, from day one | None; prevents the problem growing |
4.2 Stop the bleeding first: change CA profiles, signing pipelines and default library configurations so no new certificates, signatures or keys use the broken algorithm.
4.3 Collect evidence: preserve current configurations, certificate lists, signing logs and scan output before changes, so you can show what was exposed and when.
4.4 For S1 events where forgery is possible, review signing and certificate transparency logs for artefacts you did not issue, and treat any finding as a security incident under [Incident Response Plan].
4.5 Decision point: approve containment changes per system; record exceptions with owner and expiry date.
5. Phase 3: migrate
5.1 Choose replacements from current approved lists (for US federal and many regulated sectors, NIST guidance such as SP 800-131A; for UK organisations, NCSC guidance). For post-quantum replacements, the standards are FIPS 203 (from CRYSTALS-Kyber), FIPS 204 (from CRYSTALS-Dilithium) and FIPS 205 (from SPHINCS+), approved in August 2024. Do not replace a broken algorithm with one that is still a candidate in a standards process.
5.2 Sequence the work:
- Trust anchors and CAs: new roots or intermediates with the replacement algorithm, distributed to trust stores before end-entity reissue.
- Internet-facing services and high-value signing keys.
- Internal services and machine identities, using certificate lifecycle automation where possible. See the Machine Identity PKI Certificate Lifecycle Guide.
- Stored data: re-encrypt or re-sign data whose protection must outlast the break.
- Supplier products: track vendor commitments with dates; plan compensating controls or replacement where none exist.
5.3 Test each change in a pilot ring, with rollback ready: keep the previous configuration deployable, run old and new certificates in parallel where clients allow it, and monitor handshake and verification failures.
5.4 Where identity fits: many affected keys belong to non-human identities (service accounts, workloads, devices, CI/CD signing). Rotate them through their normal credential lifecycle, update every consumer, and revoke the old credential after cutover.
6. Phase 4: verify and close
6.1 Verify by measurement, not by tickets: rescan endpoints, re-query the inventory and confirm the broken algorithm is absent or covered by an approved exception.
6.2 Closure criteria: no new artefacts use the algorithm; S1 and S2 uses migrated or contained with exceptions approved; supplier dependencies have dated plans; the inventory reflects the end state.
6.3 Metrics to report:
- Affected uses identified, and the share with a named owner.
- Percentage migrated, by severity, against target dates.
- Open exceptions and their expiry dates.
- Time from trigger to completed exposure assessment.
- Inventory coverage gaps found during the event.
7. Crypto-agility prerequisites
7.1 The response is only as fast as the agility built in beforehand. [Organisation] maintains:
- Inventory: a cryptographic inventory covering certificates, protocols, keys, libraries and suppliers, refreshed at least [quarterly]. NCSC's PQC timelines ask organisations to complete discovery by 2028, and the same discovery serves break response.
- Abstraction: algorithm choice set in configuration or central libraries, not hard-coded.
- Automation: certificate and key rotation that can reissue at scale within [days].
- Policy: an approved algorithm list with owners, review dates and a deprecation process.
- Supplier terms: contractual requirements for vendors to support algorithm changes within defined periods.
7.2 See the Crypto-Agility Guide for design patterns and the Crypto-Agility Assessment Template to measure readiness.
8. Lessons from past breaks
| Break | What happened | Lesson for this playbook |
|---|---|---|
| SHA-1 | Collision attacks undermined SHA-1 for years before SHAttered (2017) produced two different PDFs with the same hash, at roughly 6,500 CPU-years and 110 GPU-years of computation; a chosen-prefix collision followed in 2020. NIST retired SHA-1 in December 2022 with a deadline of 31 December 2030 and plans FIPS 180-5 to remove it | Slow breaks still need a deadline-driven programme; severity differs by use (signatures versus HMAC); expect a long tail in legacy systems and modules |
| SIKE | A key recovery attack on SIDH, published in 2022, broke SIKEp434 in about ten minutes on a single core, while SIKE was a fourth-round candidate | New schemes can fail suddenly; prefer standardised algorithms, use hybrid modes during early adoption, and keep the ability to swap quickly |
8.1 After each event, the Cryptography Owner runs a review: time to assess, inventory gaps, blocked migrations, and improvements to agility prerequisites, recorded in the risk register.
Implementation guidance
- Tabletop first: run an S1 scenario (for example, a practical break of a signature algorithm used in your code signing) with the roles above, and time each phase.
- Measure inventory readiness: pick an algorithm at random and see how long it takes to list every use. That number is your real assessment time.
- Pre-approve emergency changes: agree in advance which protocol changes the Cryptography Owner can make without a change board.
- Track standards status: NIST SP 800-131A Rev. 2 (March 2019) is current, with a Rev. 3 initial public draft posted for comment in October 2024; NIST IR 8547, Transition to Post-Quantum Cryptography Standards, was finalised on 27 October 2026. Check both before setting deadlines.
- Small organisations: rely on vendor advisories and managed services for most of the inventory, but keep a list of your own keys, certificates and signing processes.
Framework mapping
| Framework | Reference | Playbook link |
|---|---|---|
| NIST SP 800-53 Rev. 5 | SC-12, SC-13 | Key management and approved cryptography |
| NIST SP 800-53 Rev. 5 | CM-8, RA-3, SI-5 | Inventory, risk assessment, acting on advisories |
| NIST SP 800-53 Rev. 5 | IR-4, SA-22 | Incident handling; unsupported components |
| NIST CSF 2.0 | ID.RA-01, ID.RA-08, GV.SC-07 | Vulnerability identification, disclosure handling, supplier risk |
| ISO/IEC 27001:2022 Annex A | 8.24 Use of cryptography | Approved algorithms and key management rules |
| MITRE ATT&CK | T1600 Weaken Encryption; T1689 Downgrade Attack | Threats that exploit weak or fallback algorithms |
Standards and references
- NIST: SP 800-131A Rev. 2, Transitioning the Use of Cryptographic Algorithms and Key Lengths
- NIST: IR 8547, Transition to Post-Quantum Cryptography Standards
- NIST: NIST Retires SHA-1 Cryptographic Algorithm
- NIST: Post-Quantum Cryptography FIPS Approved
- NCSC: Timelines for migration to post-quantum cryptography
- IACR ePrint: An efficient key recovery attack on SIDH (Castryck and Decru)
- CWI and Google: SHAttered, the first SHA-1 collision
Related NHI Mgmt Group resources: Post-Quantum Cryptography Migration Guide · Crypto-Agility Guide · Cryptographic Inventory and CBOM Guide · CA Compromise and Mass Certificate Replacement Playbook