Skip to content

docs(threat-model): record the post-quantum signature posture explicitly - #58

Merged
gonzafg2 merged 7 commits into
mainfrom
docs/threat-model-pq-signature-posture
Jun 11, 2026
Merged

gonzafg2 merged 7 commits into
mainfrom
docs/threat-model-pq-signature-posture

Conversation

@gonzafg2

@gonzafg2 gonzafg2 commented Jun 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Makes the threat model state explicitly what is post-quantum in QuantumSSH and what is not yet: confidentiality is PQ (hybrid KEX, no downgrade); authentication is classical (ssh-ed25519 host and user keys), by deliberate sequencing, with the residual risk, the bound on it, and the migration trigger written down.

Motivation

The model already covers HNDL (§3.2.5, §5.2.1) and primitive breakage (§7, §8.10), but nowhere states that both signature surfaces are classical and why that is acceptable. A reader could infer the entire handshake is post-quantum. For a project whose manifesto values professional honesty, the limit should be in the authoritative document, not in a maintainer's head.

The technical posture being recorded:

  • Signatures carry no harvest-now-decrypt-later exposure — a future CRQC cannot retroactively forge a past authentication — so the PQ migration is correctly sequenced: confidentiality first (done), signatures when an interoperable standard exists.
  • As of June 2026 OpenSSH ships no post-quantum signature algorithm and the IETF drafts are competing (pure ML-DSA: draft-rpe-ssh-mldsa, draft-sfluhrer-ssh-mldsa; composite: draft-josefsson-ssh-ed25519mldsa65, draft-sun-ssh-composite-sigs). Adopting one prematurely would break interop with every deployed client for no present-day gain.
  • The residual risk if a CRQC arrives before migration: an active adversary could MITM new sessions (host key derivation) and impersonate users whose public keys are known. Passive adversaries remain defeated even then. Exposure is bounded by minutes-fast SSH key rotation; the trigger is a settled standard deployed by the reference client; the lane is an RFC under issue design: no mechanism defined for migrating cryptographic primitives as NIST/IETF deprecates them #42.

Changes

Type of change

  • Documentation only

Checklist

  • Commits signed off under the DCO (git commit -s).
  • Conventional Commits.

Security considerations

This PR changes no posture — it documents the existing one precisely, including its limit. Writing the limit down is itself the security improvement (threat model §6.5, documentation as defence).

Related issues

The model covered HNDL and primitive breakage but never stated that
both authentication surfaces (ssh-ed25519 host keys and user keys) are
classical, why that is deliberate sequencing rather than an oversight,
and what the migration trigger is. A reader could infer the whole
handshake is post-quantum; it is not — confidentiality is (hybrid KEX,
no downgrade), authentication is classical like the entire
interoperable SSH ecosystem.

Three additions:
- §6.1: 'Signatures are classical, by deliberate sequencing' — no
  retroactive exposure for signatures, migration sequenced behind an
  interoperable standard.
- §7: the residual-risk entry for a future CRQC against classical
  signatures — active-adversary MITM/impersonation if we have not
  migrated by day zero; passive adversaries stay defeated; exposure
  bounded by minutes-fast key rotation; trigger and lane (issue #42).
- §9: references for openssh.org/pq.html and the four competing IETF
  drafts for post-quantum SSH signatures (pure ML-DSA and composite).

Signed-off-by: Gonzalo Fleming <[email protected]>
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
gonzafg2 added 2 commits June 11, 2026 13:55
…e-RFC marking, RFC-0003 anchor

Three changes from the CI review of #58:

- $7: fast key rotation does not bound a classical break (a
  replacement Ed25519 key is exactly as derivable); reframed as the
  reason adoption can be immediate once the software speaks the new
  algorithm — the single real bound.
- All three 'issue #42's agility mechanism' phrasings treated a
  not-yet-written RFC as existing (issue #42's own title is 'no
  mechanism defined…'); rewritten as future work, tracked under #42.
- $6.1 now anchors the signature choice to accepted RFC-0003,
  making explicit that this section documents the quantum-security
  consequence of an already-RFC-gated decision rather than taking a
  new one.

Signed-off-by: Gonzalo Fleming <[email protected]>
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
gonzafg2 added a commit that referenced this pull request Jun 11, 2026
Every PQ claim in the README is anchored to key exchange and
harvest-now-decrypt-later — accurate, but the most-read document never
said out loud that signatures (host keys and user authentication)
remain classical Ed25519, or why that ordering is deliberate. A casual
reader of the name plus the tagline could over-read the promise. Two
changes:

- Commitment #2 now states the signature scope explicitly and links
  to threat model section 6.1, where the full rationale and the
  residual risk live (lands with #58).
- The 'quantum cliff' paragraph said key exchange relies on
  'Diffie-Hellman over elliptic curves and RSA'; in SSH-2, RSA is a
  signature/host-key algorithm, not a key exchange (RFC 4432 RSA KEX
  is marginal). Reworded: ECDH key exchange authenticated by classical
  signatures, all of which fall to Shor.

Signed-off-by: Gonzalo Fleming <[email protected]>
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
…try; fix attributions

Four review findings from the re-review of #58, applied:

- The host public key travels in cleartext in every handshake
  (RFC 4253 sec. 8), so post-CRQC derivation of the host private key
  needs only passive capture; the active position is required only
  for exploitation (real-time MITM). The section-7 entry now splits
  the two steps and scopes 'passive adversaries remain defeated' to
  session confidentiality and retroactive forgery — with the bound
  that the harvest is voided by rotating or migrating before day
  zero, unlike recorded traffic.
- 'No harvest-now-decrypt-later exposure' narrowed to 'no retroactive
  exposure' in section 6.1, with the cleartext-host-key nuance
  stated.
- 'SSH key material rotates in minutes' replaced by the bound that
  actually holds: no certificate hierarchy to re-roll, so adoption
  proceeds as soon as the software speaks the new algorithm.
- The user-auth algorithm selection is attributed to ADR-0021 (now
  merged) rather than over-attributed to RFC-0003, which selects the
  host keys.

Signed-off-by: Gonzalo Fleming <[email protected]>
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
…otate the openssh.org URL

- Citing sec. 8 (the classical Diffie-Hellman method this project
  forbids) for the cleartext host key was confusing; the property is
  structural to every SSH key-exchange method's reply, including the
  hybrid KEX. Reworded without the section anchor.
- The openssh.org reference keeps getting re-flagged by fresh review
  runs; an inline comment now records the verification (openssh.com
  301-redirects to openssh.org) so reviewers stop tripping on it.

Signed-off-by: Gonzalo Fleming <[email protected]>
Comment thread docs/threat-model.md Resolved
Comment thread docs/threat-model.md Resolved
@claude

claude Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Code review

DCO sign-off missing on merge commits

Two merge commits in this PR lack the Signed-off-by: trailer required by CLAUDE.md:

DCO sign-off on every commit: git commit -s.

Affected commits:

  • 08552c6b — Merge branch 'main' into docs/threat-model-pq-signature-posture (empty body, no sign-off)
  • dae32f7c — Merge branch 'main' into docs/threat-model-pq-signature-posture (empty body, no sign-off)

The five substantive docs(…) commits all carry a correct Signed-off-by: Gonzalo Fleming <[email protected]> trailer. The merge commits were likely created by GitHub's "Update branch" button, which does not add DCO trailers automatically.

Fix: rebase the branch to drop the bare merge commits before landing.

…re, not rotation

Internal-consistency finding from the #58 re-review: section 6.1 said
future impersonation is 'voided by rotating or migrating the key
before day zero' while section 7 correctly states that rotating
within a classically broken algorithm bounds nothing — in SSH usage
'rotate' means same-algorithm replacement, and a replacement Ed25519
key is derivable live once a CRQC exists (the host public key travels
in cleartext in every handshake, no prior harvest needed). Both
passages now say migration, with the rotation caveat cross-referenced.

Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2
gonzafg2 merged commit e4aab37 into main Jun 11, 2026
11 checks passed
gonzafg2 added a commit that referenced this pull request Jun 11, 2026
Every PQ claim in the README is anchored to key exchange and
harvest-now-decrypt-later — accurate, but the most-read document never
said out loud that signatures (host keys and user authentication)
remain classical Ed25519, or why that ordering is deliberate. A casual
reader of the name plus the tagline could over-read the promise. Two
changes:

- Commitment #2 now states the signature scope explicitly and links
  to threat model section 6.1, where the full rationale and the
  residual risk live (lands with #58).
- The 'quantum cliff' paragraph said key exchange relies on
  'Diffie-Hellman over elliptic curves and RSA'; in SSH-2, RSA is a
  signature/host-key algorithm, not a key exchange (RFC 4432 RSA KEX
  is marginal). Reworded: ECDH key exchange authenticated by classical
  signatures, all of which fall to Shor.

Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Jun 11, 2026
Every PQ claim in the README is anchored to key exchange and
harvest-now-decrypt-later — accurate, but the most-read document never
said out loud that signatures (host keys and user authentication)
remain classical Ed25519, or why that ordering is deliberate. A casual
reader of the name plus the tagline could over-read the promise. Two
changes:

- Commitment #2 now states the signature scope explicitly and links
  to threat model section 6.1, where the full rationale and the
  residual risk live (lands with #58).
- The 'quantum cliff' paragraph said key exchange relies on
  'Diffie-Hellman over elliptic curves and RSA'; in SSH-2, RSA is a
  signature/host-key algorithm, not a key exchange (RFC 4432 RSA KEX
  is marginal). Reworded: ECDH key exchange authenticated by classical
  signatures, all of which fall to Shor.

Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2
gonzafg2 deleted the docs/threat-model-pq-signature-posture branch July 18, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant