Monthly research note. Theme: Quantum-Resilient Systems Engineering.
TL;DR
Quantum-Safe Secure Boot: Firmware Roots and PQ Signatures as an engineering constraint: write down assumptions, make invariants executable, and design operational recovery as part of correctness.
Most failures are boundary failures: parsing, persistence, concurrency, retries, and upgrades.
Key takeaways
- Define success metrics beyond “enabled”: cohorts, failures, and evidence.
- Measure cost shifts (CPU/bandwidth) and adapt DoS defenses accordingly.
- Inventory long-lived secrets first; you can’t migrate what you can’t locate.
- Prefer protocols and APIs that make invalid states hard to express.
- Bind security decisions to evidence (audit, invariants, telemetry).
Why this matters
- Hybrid protocols fail if binding is unclear or downgrade is possible.
- Cost changes drive new DoS surfaces; defenses must evolve.
- Migration risk is operational: inventory, rollout, rollback, and monitoring.
- Long-lived devices and PKI lifecycles are the hard constraint.
Key questions
- Which protocols need hybrid now, and which can wait without regret?
- How do you manage mixed deployments across regions and vendors?
- What secrets must remain confidential for 10–30 years (and where are they today)?
- How do you stop downgrade under active adversaries?
- What does rotation look like at fleet scale (devices, certs, tunnels, identities)?
- How do you define success metrics for PQ readiness beyond “enabled”?
Assumptions
- Some environments require constrained implementations (no_std, embedded).
- Operational teams need safe playbooks; crypto changes are not one-off.
- Key and certificate lifecycles outlive application versions.
- Adversaries record traffic today (HNDL) and attack later.
Non-goals
- Treating PQ migration as a single deployment event.
- Switching algorithms without inventorying where secrets are used.
Negotiation and fallbacks are where security silently becomes optional—treat them as hostile.
Model & invariants
Risk is a function of exposure and lifetime:
Make downgrade resistance explicit and test it like a security feature.
Inventory first. You can’t migrate what you can’t locate.
Make the “impossible state” observable: a metric or alert that fires when invariants drift.
Security properties
- Downgrade resistance: negotiation can’t silently weaken security posture.
- Authenticity: actions are bound to identity and purpose.
- Integrity: invalid transitions are rejected (and detectable).
- Replay resistance: duplicated inputs do not change outcomes.
Failure modes
- Config drift that weakens security posture over time.
- Recovery paths that only work when nothing is broken.
- Observability gaps during incidents (missing evidence).
- Mixed-version behavior that violates assumptions silently.
Caches tend to become sources of truth unless you can recompute and validate them.
Design sketch
flowchart TD
inventory["Inventory"] --> prioritize["Prioritize"]
prioritize --> hybrid["Hybrid Deploy"]
hybrid --> monitor["Monitor"]
monitor --> cutover["Cutover"]
cutover --> deprecate["Deprecate Old"]Implementation notes
Design hybrid modes with explicit binding and observable outcomes.
If you can’t explain a timeout outcome, you can’t make retries safe.
// PQ migration note: "enabled" is not "safe" unless binding and downgrade resistance are explicit.Verification strategy
- Rotation drills: certificates, tunnels, device identities.
- Performance profiling under load to quantify DoS risk.
- Side-channel audits for constrained implementations.
- Downgrade simulations with active attackers.
- Interop tests across stacks and versions.
Operational notes
- Add telemetry for algorithm negotiation and failure modes.
- Maintain an inventory of long-lived secrets and their lifetimes.
- Roll out hybrid with canaries and explicit rollback triggers.
- Define compatibility windows and communicate them to stakeholders.
- Practice emergency deprecation (turn off broken algorithms quickly).
Make degraded modes explicit: fail closed vs fail open is a policy choice.
What to monitor
- Authz failures and policy denials (unexpected spikes).
- Admission-control / rate-limit rejections (by reason).
- Rollback events and the conditions that triggered them.
- Error budget burn + tail latency under load.
- Retry/timeout rates by endpoint and client cohort.
Rollback plan
- Define an explicit rollback trigger (metrics + thresholds).
- Use canaries and staged rollout; stop early when signals degrade.
- Keep dual-write / dual-verify windows where appropriate.
- Preserve evidence (configs, artifacts, audit logs) to reconstruct what changed.
- Prefer backward-compatible changes; avoid “flag day” upgrades.
Evidence
- Learn TLA+ (1) — Practical entry point for specification and model checking.
- Evidence: Model the smallest thing that can break; use model checking to validate invariants before optimizing.
- NIST Post-Quantum Cryptography Project (2) — The standardization baseline for PQC readiness programs.
- Evidence: Treat PQ migration as a program (inventory, interop, rollback). Use NIST status to drive prioritization and timelines.
Open questions
- What is your minimal ‘safe mode’ when PQ paths fail?
- Which protocol surfaces are most exposed to HNDL risk in your environment?
- What is your plan for third-party dependencies that can’t migrate quickly?
- How do you prevent configuration drift from re-enabling weak modes?
Checklist
- Safety properties stated as invariants.
- Telemetry captures correctness signals.
- Rollback plan rehearsed and automated.
- Failure modes enumerated with mitigations.
- Assumptions listed and reviewed.
- Costs bounded (CPU/memory/bandwidth) under adversarial inputs.
Further reading
- RFC 8446: TLS 1.3 — A useful reference for handshake structure and downgrade resistance patterns.
- Let's Encrypt Incident Reports — Operational lessons relevant to rotation and recovery at scale.
- NIST Post-Quantum Cryptography Project — The standardization baseline for PQC readiness programs.
- Jepsen — Fault injection and correctness testing for distributed systems.
- Designing Data-Intensive Applications (Kleppmann) — The systems-engineering baseline for correctness, replication, and failure.
- Learn TLA+ — Practical entry point for specification and model checking.