Stephanie Anne Timmer

Chapter 12

Operations and Incident Response

Staying Quantum-Safe After the Migration Is Complete

The migration program has a finish line. The operational program does not. Quantum-safe security is not a state you achieve and then maintain passively. Keys expire and must be rotated. Algorithms that are secure today may need to be replaced when cryptanalytic research produces unexpected results. Incidents happen — and when they do, the incident response plan for a PQC algorithm compromise is fundamentally different from the plan for a classical key compromise.

This chapter covers the operational disciplines that sustain a quantum-safe security posture after the initial migration is complete: key rotation policies calibrated to PQC algorithm characteristics, cryptographic agility as an operational practice rather than just an architectural principle, a concrete incident response playbook for the scenario every security team needs to be prepared for but few have documented, and performance monitoring that keeps PQC overhead from becoming a service quality problem.

What You Will Learn
Key rotation policies specifically designed for ML-KEM, ML-DSA, and LMS/XMSS key types.
How to operationalize cryptographic agility through configuration management and runbooks.
A step-by-step incident response playbook for a PQC algorithm compromise scenario.
Performance monitoring thresholds and optimization techniques for PQC at scale.
Change management practices that keep your CBOM current as systems evolve.

12.1 Key Rotation Policies for PQC

Key rotation is the practice of periodically replacing cryptographic key material with freshly generated material. For classical algorithms, rotation policies are well-established and widely documented. PQC algorithms introduce characteristics that require adjusting those policies: different key sizes, different performance profiles for key generation, and — for stateful hash-based schemes like LMS — unique operational constraints with no classical equivalent.

ML-KEM Key Rotation Policy

ML-KEM is used for key encapsulation — establishing shared secrets in TLS, IKEv2, and application-layer key exchange. The key material that needs rotation is not the ML-KEM key pair itself (which is ephemeral in TLS 1.3) but rather the long-term asymmetric keys used in static contexts:

ML-KEM Key ContextRotation FrequencyRotation TriggerNotes
TLS ephemeral (X25519MLKEM768)Per-session (automatic)Every TLS handshakeEphemeral by design in TLS 1.3. No manual rotation required.
IKEv2 KE (RFC 9370)Per-SA (automatic)Every IKEv2 SA establishmentEphemeral per RFC 9370. Handled by IKEv2 implementation.
Application-layer static KEM keyAnnual or per sensitivity policyAnnual, or on suspected compromiseLong-term static keys need documented rotation. Store in HSM.
QKD-injected PSK (IPsec)Per rotation schedule or on-demandHourly to daily based on sensitivityQKD key injection agent handles rotation automatically. See Ch. 10.

ML-DSA Key Rotation Policy

ML-DSA keys are used for digital signatures — TLS certificates, code signing, document signing, and authentication. Rotation policy depends on the key’s role in the certificate hierarchy:

ML-DSA Key TypeRecommended LifetimeRotation TriggerNotes
Root CA signing key10–20 yearsScheduled rotation or suspected compromiseLong lifetime; store offline in HSM. Key ceremony required for rotation. Requires trust store redistribution.
Intermediate CA signing key3–5 yearsScheduled expiry or suspected compromiseBalance of security and operational frequency. Rotation requires reissuance of all subordinate certs near expiry.
TLS server certificate (leaf)90–398 daysCertificate expiryAutomate with cert-manager, Certbot, or ACM. CA/B Forum max is 398 days; 90 days recommended for agility.
Code signing certificate1–3 yearsScheduled expiryCoordinate with software release cycles. HSM-backed key storage required.
SSH host key (ML-DSA)AnnualAnnual rotation or suspected compromiseCoordinate with known_hosts updates across all clients. See Ch. 6 SSH migration.
JWT / API signing key90 days to 1 yearScheduled or on suspected compromiseCoordinate with relying party key discovery (JWKS endpoint). Support key overlap during rotation.

LMS / XMSS Key Rotation Policy

LMS and XMSS are stateful hash-based signature schemes used for firmware signing in CNSA 2.0 environments. Their rotation policy is fundamentally different from ML-DSA because they have a finite signature capacity:

⚠ LMS Key Exhaustion Is Irreversible
An LMS key at height h=20 supports exactly 2^20 (approximately 1,048,576) signatures. Once all one-time keys are consumed, the LMS key cannot sign any more messages.
Key exhaustion does not fail gracefully -- it fails silently in implementations that do not check remaining capacity. Configure your HSM to alert at 80% utilization and refuse signing operations at 95%.
Plan key replacement well before exhaustion. The replacement key must be generated, validated, and distributed to all verifying parties before the current key reaches its limit.
LMS ParameterSignature CapacityAt 100 signs/dayAt 1,000 signs/dayRotation Trigger
h=101,024 total~10 days~1 dayAlert at 80% (819 sigs); replace key before capacity reached
h=1532,768 total~327 days~32 daysAlert at 80% (26,214 sigs); annual replacement for 100/day rate
h=201,048,576 total~28 years~2.9 yearsAlert at 80% (~838K sigs); monitor usage rate; plan replacement
h=2533,554,432 total~918 years~91 yearsPractically unlimited for firmware signing. Alert at 80% anyway.

Operational LMS key management requirements:

  1. Monitor remaining signature capacity via HSM management interface. Configure automated alerts at 80% utilization.
  2. Maintain a reserve LMS key pair generated and validated but not yet deployed. Begin distributing the reserve key to verifying parties when the active key reaches 80% utilization.
  3. Execute key rollover before the active key reaches 95% utilization. Allow a 5% buffer for signatures during the rollover window.
  4. After rollover, retain the old key’s public key and past signatures for verification of historical artifacts. Do not delete the old key’s public key.

Automated Key Rotation Implementation

Automate certificate rotation using cert-manager in Kubernetes or ACM auto-renewal in AWS. For non-Kubernetes environments, a simple rotation automation framework:

#!/bin/bash
# pqc_cert_rotation_check.sh -- check for certificates expiring within 30 days
CERT_DIR="/etc/ssl/certs"
WARN_DAYS=30
ALERT_DAYS=7

for cert in $CERT_DIR/*.pem; do
  EXPIRY=$(openssl x509 -enddate -noout -in $cert 2>/dev/null | cut -d= -f2)
  EXPIRY_EPOCH=$(date -d "$EXPIRY" +%s 2>/dev/null)
  NOW_EPOCH=$(date +%s)
  DAYS_LEFT=$(( (EXPIRY_EPOCH - NOW_EPOCH) / 86400 ))

  if [ $DAYS_LEFT -le $ALERT_DAYS ]; then
    echo "CRITICAL: $cert expires in $DAYS_LEFT days -- IMMEDIATE ACTION REQUIRED"
  elif [ $DAYS_LEFT -le $WARN_DAYS ]; then
    echo "WARNING: $cert expires in $DAYS_LEFT days -- schedule rotation"
  fi
done

12.2 Cryptographic Agility: Designing for the Next Migration

Cryptographic agility is the ability to replace cryptographic algorithms through configuration rather than code changes. The PQC migration demonstrated why it matters: organizations with cryptographic agility already built in migrated TLS configurations with a single policy change. Organizations without it spent months refactoring applications. The next migration — whether triggered by a NIST algorithm update, a PQC cryptanalytic break, or an emerging CNSA 3.0 — will be easier for organizations that used this migration to build agility into their systems.

Agility in Practice: Configuration Management

Cryptographic agility at the operational level means that algorithm selection is externalized from application code into configuration that can be changed without rebuilding software:

ComponentAgile PatternNon-Agile Anti-PatternMigration Cost Difference
TLS cipher suitesServer-level config: ssl_protocols, ssl_ecdh_curve parametersHardcoded in application TLS context initializationMinutes (config change) vs. days (code change + rebuild + deploy)
Certificate algorithmCA-issued certificate; app uses whatever cert is presentAlgorithm hardcoded in certificate request codeCertificate reissuance vs. code change + certificate reissuance
Signing key algorithmAlgorithm read from config file; key loaded by pathAlgorithm name compiled into signing codeConfig change vs. code change + rebuild
KMS key typeKey ARN/ID in config; application calls KMS:Sign genericallySpecific RSA or ECDSA padding/algorithm hardcoded in KMS callConfig change vs. code change
PQC library selectionLibrary selected via CMake flag or build configSpecific library hardcoded in source includesBuild config change vs. source code change

The Agility Runbook

Document an algorithm rotation runbook for each system in your CBOM. A runbook answers: how does an operator change the cryptographic algorithm on this system in less than one hour, without application code changes, and with verified rollback capability? If you cannot write this runbook for a system, that system lacks cryptographic agility and needs a refactoring ticket.

Runbook template for a TLS endpoint:

# Runbook: TLS Algorithm Rotation for [System Name]
# Estimated time: 15 minutes
# Rollback time: 5 minutes

## Pre-conditions
# - Access to server/load balancer configuration
# - OpenSSL 3.5 installed on target
# - Backup of current configuration in version control

## Rotation Steps
# 1. Update ssl_ecdh_curve in nginx.conf or equivalent:
#    FROM: ssl_ecdh_curve X25519MLKEM768:X25519;
#    TO:   ssl_ecdh_curve [NEW_ALGORITHM]:[FALLBACK];
# 2. Test configuration: nginx -t
# 3. Reload (zero-downtime): nginx -s reload
# 4. Verify: openssl s_client -connect host:443 | grep 'Server Temp Key'

## Rollback Steps
# 1. Revert nginx.conf from version control
# 2. nginx -t && nginx -s reload
# 3. Verify original algorithm restored

## Verification
# Run: ./pqc_security_scan.sh [hostname] 443
# Expected: all checks pass with new algorithm

Tracking Algorithm Currency

As NIST publishes updates, new algorithm selections, and deprecation notices, your deployed algorithms need to be compared against the current standard. Build an algorithm currency check into your quarterly security review:

#!/bin/bash
# algorithm_currency_check.sh -- compare deployed algorithms against current NIST baseline

# Current NIST-approved PQC algorithms (update this list when NIST publishes changes)
APPROVED_KEMS="ML-KEM-512 ML-KEM-768 ML-KEM-1024"
APPROVED_SIGS="ML-DSA-44 ML-DSA-65 ML-DSA-87 SLH-DSA FN-DSA LMS XMSS"
DEPRECATED="RSA ECDSA ECDH DH"

# Check TLS endpoints in your CBOM
while IFS=',' read -r system host port; do
  CURRENT_ALG=$(openssl s_client -connect $host:$port -tls1_3 2>&1 \
    | grep 'Server Temp Key' | awk '{print $4}')
  if echo "$DEPRECATED" | grep -q "$CURRENT_ALG"; then
    echo "DEPRECATED: $system is using $CURRENT_ALG -- update required"
  else
    echo "CURRENT: $system is using $CURRENT_ALG"
  fi
done < cbom_endpoints.csv

12.3 Incident Response Playbook: Algorithm Compromise

The 2022 SIKE break demonstrated that PQC algorithm compromises are not theoretical. A finalist algorithm trusted by the cryptography community was broken by a classical attack in days. While the probability of a similar break in ML-KEM or ML-DSA is low given the extensive analysis they have undergone, security programs must be prepared for it. An incident response plan that exists only in theory is not an incident response plan.

This section provides a concrete, executable playbook for the scenario: a credible report of a cryptanalytic break in a NIST-standardized PQC algorithm. The playbook is structured for the first 72 hours — the period in which initial containment decisions must be made before full analysis is complete.

Trigger Criteria

Activate this playbook when ANY of the following occur:

⚠ Do Not Activate for Unverified Claims
Not every claim of a PQC break is credible. The 2024 Chen lattice algorithm preprint was evaluated and found flawed within weeks. Activating a full incident response for an unverified claim creates unnecessary disruption.
Initial assessment (Hours 0-4) determines credibility before broader activation. Only escalate to full activation if the claim survives initial technical review.

Phase 1: Initial Assessment (Hours 0–4)

Goal: Determine whether the claimed break is credible and which systems are affected.

StepActionOwnerTime Limit
1.1Assign Incident Commander and notify security leadership.CISO / Security Director30 minutes
1.2Retrieve and read the original claim (IACR ePrint paper, NIST advisory, or NSA/CISA advisory). Do not rely on secondary sources.Cryptography lead1 hour
1.3Convene a technical review panel (internal cryptography expertise + external advisor if available). Assess: Is the claimed attack feasible? Does it apply to deployed parameter sets? What is the claimed security reduction?Cryptography lead + panel2 hours
1.4Consult NIST PQC project page and OQS project announcements for official technical response.Cryptography leadOngoing
1.5Determine scope: Which deployed systems use the potentially affected algorithm? Pull from CBOM.Migration lead2 hours
1.6Make activation decision: Is this a credible break? Escalate to Phase 2 if yes; document and monitor if no.Incident Commander4 hours

Phase 2: Containment (Hours 4–24)

Goal: Reduce exposure while maintaining operational continuity.

StepActionOwnerPriority
2.1Activate cryptographic agility runbooks for all Tier 1 (Critical) systems using the affected algorithm. Switch to backup algorithm (e.g., SLH-DSA if ML-DSA is compromised; HQC if ML-KEM is compromised).Engineering leadsCritical
2.2For systems without agility: identify manual workaround. If no workaround exists, assess whether to take the system offline vs. accept residual risk during remediation window.System ownersCritical
2.3Notify affected system operators and stakeholders. Use pre-approved notification templates.Communications leadHigh
2.4For NSS-scope systems: notify NSA cybersecurity operations per established reporting channels.ISSO / ISSMCritical (if NSS)
2.5Implement enhanced monitoring on all systems still using the affected algorithm. Alert on any anomalous access patterns.SOCHigh
2.6Assess HNDL impact: what data encrypted with the affected algorithm may now be at retroactive risk? Classify by sensitivity tier.Data ownersHigh
2.7Pause any new deployments using the affected algorithm until the incident is resolved.Change managementHigh

Phase 3: Remediation (Hours 24–72 and Beyond)

Goal: Complete migration away from the compromised algorithm.

  1. Execute algorithm rotation for all remaining systems using the affected algorithm, in sensitivity tier order (Tier 1 first).
  2. Issue new certificates if the compromised algorithm was used for certificate signing. Follow the CA hierarchy migration sequence from Chapter 6.
  3. For data at retroactive risk: notify data owners, assess disclosure impact, and initiate regulatory notification procedures if applicable.
  4. Update CBOM to reflect the algorithm change across all affected systems.
  5. Document the incident timeline, decisions made, and systems affected in your A&A / incident tracking system.
  6. Conduct a post-incident review within 30 days: what detection capabilities would have identified the break earlier, and what agility gaps slowed the response?

Backup Algorithm Reference

Know your backup algorithms before an incident occurs. For each primary NIST PQC algorithm, identify the backup you will switch to:

Primary AlgorithmIf Compromised, Switch ToMathematical IndependenceNotes
ML-KEM (lattice)HQC (code-based)Yes — different mathematical problemHQC selected by NIST as 5th PQC algorithm (March 2025). Standard in development.
ML-DSA (lattice)SLH-DSA (hash-based)Yes — hash function security onlySLH-DSA is FIPS 205; already standardized. Larger signatures but unrelated mathematics.
ML-DSA (lattice)FN-DSA (NTRU lattice)Partial — different lattice problemFN-DSA uses NTRU, not Module-LWE. Provides some independence but both are lattice-based.
SLH-DSA (hash)ML-DSA (lattice)Yes — different mathematical basisReverse backup: if SLH-DSA hash assumption fails, ML-DSA provides an alternative.
All PQC (theoretical)QKD for key exchangeYes — physics-based, no math assumptionLast resort: QKD is unaffected by any mathematical cryptanalytic advance.

12.4 Performance Monitoring and Optimization

PQC algorithms impose real computational overhead relative to classical algorithms. For most systems the overhead is negligible. For high-throughput systems — TLS termination at scale, high-volume signing in CI/CD pipelines, API gateways handling millions of requests — PQC overhead can become a service quality concern if not monitored and managed.

Performance Baselines to Establish at Deployment

Capture performance baselines immediately after PQC deployment, before any traffic load changes. These baselines are your reference for detecting PQC-related performance degradation:

Expected Performance Impact by Workload Type

WorkloadClassical BaselinePQC OverheadMitigation if Needed
TLS handshake (key exchange only)X25519: ~0.04 msX25519MLKEM768: ~0.16 ms (4x)Acceptable for almost all workloads. No mitigation typically needed.
TLS handshake (with ML-DSA cert chain)ECDSA P-256 chain: ~3 KBML-DSA-87 chain: ~14 KB (4.7x)Enable OCSP stapling; optimize cert chain serving; consider session resumption.
High-volume TLS termination (10K+ conn/sec)~300 MB/s bandwidth at handshake~1.4 GB/s bandwidth at handshake (4.7x)Scale TLS termination nodes; increase ALB/NLB capacity; enable TLS session tickets.
Code signing (CI/CD pipeline)ECDSA: ~0.05 ms/sigML-DSA-87: ~0.35 ms/sig (7x)Parallel signing; batch signing; dedicated signing service. Rarely a bottleneck in practice.
IKEv2 SA establishmentX25519: ~1 ms totalX25519+MLKEM: ~2 ms total (2x)Acceptable overhead. IKEv2 SA establishment is infrequent relative to data transfer.
JWT signing (auth server)ECDSA P-256: ~0.05 ms/tokenML-DSA-65: ~0.26 ms/token (5x)Token caching; horizontal scaling of auth service; evaluate FN-DSA for smaller sigs.

TLS Session Resumption for PQC Performance

TLS session resumption (session tickets or session IDs) allows clients that have previously completed a full TLS handshake to resume the session without a new key exchange. This is especially valuable for PQC deployments because it eliminates the larger hybrid key exchange overhead for repeat connections from the same client:

# nginx: enable TLS session tickets for PQC performance
ssl_session_cache    shared:SSL:10m;
# 10 MB session cache; ~4,000 sessions per MB
ssl_session_timeout  1d;
# 24-hour session ticket validity
ssl_session_tickets  on;
ssl_session_ticket_key /etc/ssl/session_ticket.key;

# Rotate session ticket keys every 12 hours (separate job)
# 0 */12 * * * root openssl rand -out /etc/ssl/session_ticket.key 80 && nginx -s reload
Session Tickets and Forward Secrecy
TLS session tickets store session keys encrypted with a server-side session ticket key. If the session ticket key is compromised, all resumed sessions using that key are exposed. Rotate session ticket keys frequently (every 12–24 hours) and use separate keys on each server node. For the highest-sensitivity deployments, disable session tickets and rely on session IDs (server-side cache only) to avoid the session ticket key exposure risk.

OCSP Stapling for PQC Certificate Chain Performance

With ML-DSA certificates, each OCSP response is approximately 3–5 KB larger than classical ECDSA OCSP responses. Without stapling, every TLS client fetches an OCSP response on each new connection, adding latency and bandwidth. OCSP stapling pre-fetches and caches the OCSP response on the server, eliminating per-client OCSP lookups:

# nginx: OCSP stapling configuration
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/ssl/certs/ca-chain.pem;
# Full CA chain for OCSP verification
resolver 8.8.8.8 valid=300s;
# DNS resolver for OCSP endpoint lookup
resolver_timeout 5s;

# Apache: OCSP stapling
SSLUseStapling On
SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors Off

Performance Alerting Thresholds

Configure the following alerts to detect PQC-related performance degradation:

MetricAlert ThresholdLikely CauseRemediation
TLS handshake latency p99> 500 msCertificate chain size; CPU saturation on TLS terminatorEnable session resumption; check OCSP stapling; scale TLS nodes
New TLS connections/sec< 50% of baseline capacityCPU saturation from hybrid PQC key exchangeScale TLS termination; enable hardware crypto acceleration
TLS terminator CPU> 80% sustainedPQC key exchange overhead at high connection rateScale horizontally; evaluate AES-NI and ARM crypto extensions
Certificate chain bytes/handshake> 15 KBFull ML-DSA cert chain being served on every connectionVerify OCSP stapling enabled; check session resumption hit rate
Session ticket cache hit rate< 60%Short session timeout; cache too small; key rotation too frequentIncrease cache size; extend session timeout if security policy permits
IKEv2 SA establishment time> 5 secondsPQC key exchange under load; CPU saturationScale IKEv2 terminator; check for stuck retransmissions

Chapter 12 Summary

Before moving to Chapter 13, you should be able to answer these questions:

Operations Is Where Security Programs Succeed or Fail
The migration planning was the strategy. The chapter-by-chapter deployment was the execution. Operations is where the program either holds together or slowly degrades.
Key rotation that is not automated will be forgotten. Incident response plans that are not exercised will fail under pressure. Performance monitoring that is not reviewed will not prevent outages. Cryptographic agility that is not tested will not work when it is needed.
Build operational discipline into your program from the beginning. The quantum-safe security posture you build today is only as durable as the operational practices that maintain it.

What’s Next

Chapter 13, the final chapter, looks ahead: emerging standards and algorithms, the Quantum Internet and future key distribution, and resources for continuing education as the field evolves. It closes the cookbook with a forward-looking perspective on where quantum-safe security is heading over the next decade.

References

[1] NIST SP 800-57 Part 1 Rev. 5. (2020). Recommendation for Key Management. National Institute of Standards and Technology. [Key lifetime recommendations; PQC-specific guidance being incorporated into SP 800-57 Rev. 6 update.]

[2] NIST SP 800-208. (2020). Recommendation for Stateful Hash-Based Signature Schemes. [LMS key management requirements including state tracking and capacity planning.]

[3] NIST. (2025, March). Selection of HQC as Fifth Post-Quantum Cryptography Algorithm. National Institute of Standards and Technology. [Backup KEM algorithm for ML-KEM compromise scenario.]

[4] Chen, Y. (2024). Quantum algorithms for lattice problems. IACR ePrint Archive, Report 2024/555. [The 2024 lattice algorithm preprint that was evaluated and found flawed; referenced in Phase 1 trigger criteria.]

[5] NIST SP 800-61 Rev. 2. (2012). Computer Security Incident Handling Guide. National Institute of Standards and Technology. [Incident response framework underlying the algorithm compromise playbook.]

[6] RFC 5077. (2008). Transport Layer Security (TLS) Session Resumption without Server-Side State. IETF. [TLS session tickets specification referenced in performance optimization section.]

[7] RFC 6066. (2011). Transport Layer Security (TLS) Extensions: Extension Definitions. IETF. [OCSP stapling (status_request extension) specification.]

[8] CISA. (2024, September). Strategy for Migrating to Automated Post-Quantum Cryptography Discovery and Inventory Tools. [CBOM currency as operational requirement; referenced in change management guidance.]