Monthly research note. Theme: Quantum-Resilient Systems Engineering.
TL;DR
Quantum-Safe VPN Design: Lessons from Implementing a PQ IPSec Stack 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
- Downgrade resistance must be explicit and tested under active attackers.
- Inventory long-lived secrets first; you can’t migrate what you can’t locate.
- Measure cost shifts (CPU/bandwidth) and adapt DoS defenses accordingly.
- Design rollbacks as part of the happy path.
- Automate guardrails; humans are for judgment, not for consistent enforcement.
Why this matters
- Long-lived devices and PKI lifecycles are the hard constraint.
- Quantum risk is uneven: some secrets must last decades, others do not.
- Migration risk is operational: inventory, rollout, rollback, and monitoring.
- Cost changes drive new DoS surfaces; defenses must evolve.
Key questions
- How do you define success metrics for PQ readiness beyond “enabled”?
- What secrets must remain confidential for 10–30 years (and where are they today)?
- How do you manage mixed deployments across regions and vendors?
- Which protocols need hybrid now, and which can wait without regret?
- How do you validate resilience (DoS, side channels, rollback, compromise)?
- How do you stop downgrade under active adversaries?
Assumptions
- Rollouts happen under partial adoption; compatibility matters.
- Some environments require constrained implementations (no_std, embedded).
- Adversaries record traffic today (HNDL) and attack later.
- Key and certificate lifecycles outlive application versions.
Non-goals
- Switching algorithms without inventorying where secrets are used.
- Assuming performance impacts will be negligible.
Any unbounded work per request becomes a DoS primitive under adversaries.
Model & invariants
Hybrid composition should be explicit and transcript-bound:
Make downgrade resistance explicit and test it like a security feature.
Treat ops as part of the protocol: monitoring, rollback, and incident response.
If the system can enter an invalid state, it eventually will—usually during an incident.
Security properties
- Evidence: critical actions emit verifiable audit events.
- Replay resistance: duplicated inputs do not change outcomes.
- Least authority: privileges are scoped by purpose and time.
- Authenticity: actions are bound to identity and purpose.
Failure modes
- Resource exhaustion (CPU/bandwidth/storage) turning into correctness failures.
- Timeout ambiguity causing double-apply or partial state transitions.
- Observability gaps during incidents (missing evidence).
- Mixed-version behavior that violates assumptions silently.
Sampling hides the rare schedule that breaks your invariants.
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.
Bound work per request: parse, validate, and cap cost before you allocate heavy resources.
// PQ migration note: "enabled" is not "safe" unless binding and downgrade resistance are explicit.Verification strategy
- Interop tests across stacks and versions.
- Downgrade simulations with active attackers.
- Rotation drills: certificates, tunnels, device identities.
- Performance profiling under load to quantify DoS risk.
- Side-channel audits for constrained implementations.
Operational notes
- Practice emergency deprecation (turn off broken algorithms quickly).
- Add telemetry for algorithm negotiation and failure modes.
- Roll out hybrid with canaries and explicit rollback triggers.
- Maintain an inventory of long-lived secrets and their lifetimes.
- Define compatibility windows and communicate them to stakeholders.
Make degraded modes explicit: fail closed vs fail open is a policy choice.
What to monitor
- Rollback events and the conditions that triggered them.
- Retry/timeout rates by endpoint and client cohort.
- Invariant violation rate (should be ~0).
- Admission-control / rate-limit rejections (by reason).
- Authz failures and policy denials (unexpected spikes).
Rollback plan
- Preserve evidence (configs, artifacts, audit logs) to reconstruct what changed.
- Define an explicit rollback trigger (metrics + thresholds).
- Prefer backward-compatible changes; avoid “flag day” upgrades.
- Keep dual-write / dual-verify windows where appropriate.
- Use canaries and staged rollout; stop early when signals degrade.
Evidence
- Let's Encrypt Incident Reports (1) — Operational lessons relevant to rotation and recovery at scale.
- Evidence: Rotation and revocation are operational protocols; extract failure patterns into drills and automated rollbacks.
- 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?
- What is your plan for third-party dependencies that can’t migrate quickly?
- How do you prevent configuration drift from re-enabling weak modes?
- Which protocol surfaces are most exposed to HNDL risk in your environment?
Checklist
- Assumptions listed and reviewed.
- Safety properties stated as invariants.
- Failure modes enumerated with mitigations.
- Costs bounded (CPU/memory/bandwidth) under adversarial inputs.
- Rollback plan rehearsed and automated.
- Telemetry captures correctness signals.
Further reading
- RFC 8446: TLS 1.3 — A useful reference for handshake structure and downgrade resistance patterns.
- NIST Post-Quantum Cryptography Project — The standardization baseline for PQC readiness programs.
- Let's Encrypt Incident Reports — Operational lessons relevant to rotation and recovery at scale.
- Site Reliability Engineering (Google) — Error budgets, incident response, and reliability as an engineering discipline.
- Jepsen — Fault injection and correctness testing for distributed systems.
- Learn TLA+ — Practical entry point for specification and model checking.