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.

Key insight

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.
Attack surface

Any unbounded work per request becomes a DoS primitive under adversaries.

Model & invariants

Hybrid composition should be explicit and transcript-bound:

ss=HKDF(ssclassical  sspqc, info=transcript).\mathrm{ss} = \mathrm{HKDF}(\mathrm{ss}_\text{classical}\ \Vert\ \mathrm{ss}_\text{pqc},\ \text{info}=\mathrm{transcript}).

Make downgrade resistance explicit and test it like a security feature.

Treat ops as part of the protocol: monitoring, rollback, and incident response.

Invariant

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.
Pitfall

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.

Rule of thumb

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.
Operational note

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

1.
Let’s Encrypt. Let’s Encrypt Incident Reports [Internet]. Web; Available from: https://community.letsencrypt.org/c/incidents/16/l/top
2.
National Institute of Standards and Technology (NIST). Post-Quantum Cryptography [Internet]. Web; Available from: https://csrc.nist.gov/projects/post-quantum-cryptography