Home/Documentation/Threat Model & Security

Threat model & attack analysis

Who NIRVQ is designed against, the twelve attack analyses the design answers — each with its mitigation and its honest residual status — and the quantum-relevant test programme, T-COMB-15, that gates the combiner.

ADVERSARY CLASSES 6 ATTACK ANALYSES 12 T-COMB-15 SPECIFIED · NOT IMPLEMENTED

Adversary classes

The threat model names six adversary classes. Every design decision in NIRVQ traces to at least one of them — and the classes NIRVQ does not defend against are named just as explicitly, at the end of this page.

ClassCapability assumedGoal
A1 — The harvesterCopies ciphertext at scale, today, from networks, backups, breaches, and public storageDecrypt it later, when the cryptography weakens (HNDL)
A2 — The future quantum adversaryA cryptographically relevant quantum computer, at an unknown dateBreak classical public-key cryptography retroactively; pressure PQ margins
A3 — The cryptanalystMathematical progress against one hardness family — lattice or code-based — classical or quantumCollapse a single family's security assumption
A4 — The malicious custodianFull control of one custodian, one operator, or one key-service replicaExtract the anchor secret, or open objects unilaterally
A5 — The oracle abuserUnlimited chosen-ciphertext submissions to any opening interfaceTurn the decapsulation path into a key-recovery oracle
A6 — The history rewriterControl of the operator's database and logs after the factRewrite an object's provenance, hide a compromise, forge a lifecycle

The twelve attack analyses

Each analysis states the attack, the design answer, and — in the status column — what is actually demonstrated today versus what is specified or still open. Nothing in this table is upgraded beyond its evidence.

#AttackDesign answerStatus
T-01Harvest now, decrypt later — harvested classical ciphertext opens when quantum hardware arrivesBoth KEM slots are post-quantum from birth; there is no classical component in any profile to harvest againstDESIGNED OUT
T-02Single-family break — ML-KEM or HQC falls to cryptanalysisAND-survival: a VAULT object still needs the other family's secret and the anchor. Rotation path: beacon announcement → re-wrap → successor verification → burnSPECIFIED — GATED BY G-1
T-03Combiner recombination — mix components from two envelopes to forge a third (the GHP18 two-query class)Every derivation input is framed and bound to the header hash, ciphertexts, and object context; T-COMB-14 runs the recombination battery at N=100 per profile against an oracle stronger than productionDEMONSTRATED — LOCAL LIMB
T-04Decapsulation-oracle abuse — chosen-ciphertext probing of the opening pathImplicit rejection in both KEMs; unconditional decapsulation of all slots; a 1,000-invalid-decap budget per epoch key, then quarantinePARTIAL — ML-KEM SLOT METERED, HQC SLOT UNMETERED (D-20)
T-05Downgrade — present a VAULT object as CORE, or strip a slot from the slot mapSealing aborts rather than emit a reduced-slot envelope; openers enforce the policy floor for the expected profile; slot_map bit 3 and bits 4–7 must be zeroDEMONSTRATED — LOCAL LIMB
T-06Slot-4 annex abuse — smuggle trusted data in the trailing annexThe annex sits outside the tag and the KDF by construction; openers skip it by length and never trust its contents; T-COMB-4/5 cover the handlingDEMONSTRATED — LOCAL LIMB
T-07Tampering — mutate header, ciphertexts, wrapped DEK, or bodyHMAC-SHA-384 tag over the canonical header, wrapped DEK, and body digest; the body digest is checked after decryption; any mutation failsDEMONSTRATED — LOCAL LIMB
T-08Error oracle — distinguish why an opening failed and iterateOne error, ERR-OPEN-FAILED, on every path; policy failures still run the full decap/tag path before returning, so behaviour does not leak which check failedDEMONSTRATED — LOCAL LIMB
T-09Anchor extraction (A-EXT) — recover S_3 from envelope material or combiner output aloneThe anchor enters envelopes only as a SHA-384 commitment; A-EXT is adopted as a formalised assumption (Option A) — and is unendorsed until an independent reviewer rules on it at G-1ASSUMPTION — UNENDORSED
T-10Silent anchor compromise — the anchor is copied without any visible signThe ACSP simulation programme exists precisely to test detection. Result: scenarios S3–S6 pass; S1/S2 fail — a silent attacker went undetected. Detection here is an open engineering problem, recorded as suchOPEN — ACSP DOES NOT PASS
T-11Timing side channels — measure the opening path to distinguish failure modesNo short-circuiting: decapsulation and tag verification run unconditionally, and the tag comparison is constant-time. A statistical timing campaign (Welch's t) is Absent in the reference build — no timing claim is madePARTIAL — NO TIMING CLAIM
T-12History rewriting — alter an object's recorded lifecycle after the factPassport records are HMAC-chained, countersigned with threshold PQ signatures, and Merkle-anchored in an append-only log; verify_from_log checks history from public keys and the log alone, without trusting the operatorDEMONSTRATED — LOCAL LOG

ACSP — Anchor Compromise-Simulation Programme

ACSP — Anchor Compromise-Simulation Programme

One question per scenario: if the anchor secret is copied with no visible sign — no failed opening, no alarm, no log entry — does anything notice? A silent compromise is the hardest case in the threat model (adversary class A4, the malicious custodian).

ACSP GATE DOES NOT PASS — S1 FAIL · S2 FAIL

Scenario D-1 · HSM liveness D-2 · Canary objects D-3 · Reconstruction audit D-4 · Custodian telemetry Verdict
S1 — One anchor custodian compromised Silent case: not fired. Careless-attacker sub-case: fired, 3,600 s (simulated) Not fired Not fired Not fired FAIL
Silent copy undetected; refresh never triggered.
S2 — Threshold of anchor custodians compromised Not fired Not fired Not fired Not fired FAIL
Quorum reconstructs S₃; 0/300 objects opened with S₃ alone, but the copy itself is undetected.
S3 — Key-service administrator compromised — — — — PASS
No single admin action reconstructs S₃, admits a custodian in breach of the §31.4 caps, or suppresses a filed complaint without a second logged author.
S4 — Cross-epoch share compromise — — — — PASS
Refresh forces the attacker to start again: < t shares in any one generation are useless after refresh (10/10 dummy completions wrong per generation).
S5 — Malicious key-service operator Not fired Not fired Fired, 1,800 s (simulated) Not fired PASS
Fabricated attestation detected; 2 suppressed attestations block the burn; operator-alone burn refused (1-of-9 vs 5-of-9). Open finding OF-5.1 recorded.
S6 — Simultaneous compromise of anchor + one KEM family Not fired Fired, 0 s Not fired Not fired PASS
0/100 VAULT objects opened in both variants; all-but-one criterion holds where one component survives.
The four limbs

D-1 HSM liveness — share-integrity challenge (simulable parts only). D-2 Canary objects — canary-share tripwires, the implementable limb. D-3 Reconstruction audit — ceremony reconciliation (simulable parts only). D-4 Custodian telemetry — environment compromise, monitored-only.

The stated limit

No oracle detects a perfectly silent, never-used copy — that limit is stated up front in the design. The gate passes only under a re-scoped criterion or a carried residual: a register decision, not an implementation claim. Recommended combination: D-2 + D-3 + D-1, D-4 monitored-only.

“—” in S3/S4 means no limb firing is recorded in the results file for that scenario — the pass is structural, not a detection firing.

Figure — ACSP. Six scenarios test detection of a silent anchor compromise across four limbs (HSM liveness, canary objects, reconstruction audit, custodian telemetry). Gate does not pass — S1/S2 fail. Full page: ACSP Detection →

The Anchor Compromise-Simulation Programme exists to test one thing: if the anchor secret is copied without any visible sign, does anything notice? Six scenarios run against four detection limbs — D-1 HSM liveness, D-2 canary objects, D-3 reconstruction audit, and D-4 custodian telemetry. The result: scenarios S3–S6 pass and S1/S2 fail — a silent attacker went undetected in those limbs. The ACSP gate does not pass and is carried as accepted residual R-ACSP-1. Detection of a silent anchor compromise is an open engineering problem for the next phase, recorded here and in the proposal — not smoothed over. The D-2 canaries have landed, the core open-path wiring has landed, and the canary fraction is decided at p = 0.05 per profile (VAULT and VAULT-FEDERAL only; CORE refused). See the ACSP Detection page for the full picture.

T-COMB-15 — the quantum-relevant attack-model tests

Specified in v4.1 Patch 1 as part of the G-COMB pass condition. Status: Specified, not implemented — recorded by a skipping test, not by silence.

The classical T-COMB battery proves the combiner behaves correctly against today's adversary. T-COMB-15 asks the three questions that only matter because the archive must live for decades:

  • (a) HNDL against the anchor — assume the adversary has harvested envelopes for years and later obtains an anchor leak. Do harvested copies plus the leak open historical objects? The test models the leak against the harvested set, not against a fresh seal.
  • (b) Grover-era margins — symmetric components (SHA-384, AES-256, HMAC) under generic quantum search. The design uses 384-bit hashing and 256-bit keys precisely so the post-Grover margins remain wide; the test states the margin argument explicitly rather than assuming it.
  • (c) Family-break timing — a break is a process, not an instant: partial results, weakening parameters, then collapse. The test models whether the beacon → re-wrap → burn rotation completes inside a realistic break-arrival window — the race the whole lifecycle design exists to win.
Why T-COMB-15 gates funding

G-COMB cannot pass without T-COMB-15, and build funding cannot release without the independent review engagement that G-COMB requires. The programme's own funding structure therefore refuses to scale past Phase 1 on a combiner that has only been tested against a classical adversary. That is deliberate — and it is also why the gate is still open.

What a break of one component gives an attacker

Repeated from the security model, because it is the table every evaluator asks for:

CompromisedCOREVAULT-FEDERALVAULT
Slot 1 (ML-KEM)Opens (by design)Still needs S_3Still needs ss_2 and S_3
Slot 2 (HQC)n/an/aStill needs ss_1 and S_3
Slot 3 (anchor)n/aStill needs ss_1Still needs ss_1 and ss_2
Slots 1+2Opens if anchor also known—Still needs S_3

Two honest qualifications on this table. First, the VAULT column's "both families broken" row depends on A-EXT (T-09 above) — formalised, unendorsed. Second, CORE's behaviour is not a flaw: CORE is a single-family profile by design, which is exactly why it is never the default and why choosing it must be a documented decision.

Out of scope — stated, not implied

  • Endpoint compromise. If the machine that opens an envelope is compromised, the plaintext is exposed at the moment of legitimate opening. No sealing system prevents this; NIRVQ's boundary ends at the open call.
  • Plaintext handling after open. What an application does with opened material is the application's responsibility.
  • Host side channels. Power, EM, and OS-level leakage of the host are outside the reference implementation's model; the erasure limits of CPython are recorded as D-14.
  • Availability. NIRVQ protects confidentiality and integrity of sealed material. Denial of service against the key service is an operational problem (see the Operations Runbook), not a cryptographic one.
  • The live signing path. NIRVQ never signs transactions or participates in consensus. Post-quantum signatures and HSMs own that problem.

Threat residuals — decision-review rulings (Dec 6, 2026)

The deep-dive-25 threat-residual items were ruled on by the decision-review wave (15/15 ruled, 0 open). Each residual below is accepted openly, not closed by invention:

  • TR-01 — Operator compromise: accepted residual + guardrail shipped. Insider collusion is bounded, not prevented (proposal p. 40). The guardrail that shipped is read-only serve mode: serve --read-only refuses epoch-create, seal, rewrap, and burn with 403 {"error": "read-only mode"} after auth; open and GETs still work. A separate destructive-op credential was NOT adopted (the same operator holds both). Process separation is a follow-up workstream.
  • TR-02 / TR-03 / TR-05 — accepted residuals. Plaintext pads on disk (TR-02), plaintext F7 store (TR-03), and the at-rest encryption bind (TR-05) stay accepted residuals. A passphrase-KEK is SPECIFIED, not adopted. TR-03 is bounded: the DB exposure is metadata + ciphertext + provenance, not plaintext (envelopes are ciphertext at rest).
  • TR-07 — resolved by G6. The Passport master key IS in G6's in-memory-only set; the audit file's "BLOCKED" label was stale. Consequence accepted: F2 verification does not survive restart (fail-closed).
  • TR-08 — accepted residual / out of scope. No per-object ACL in the Phase 1 reference implementation — the proposal specifies none, and no per-caller identity exists (the bearer token is one shared secret). ACL work needs per-caller identity first.
  • TR-12 — accepted residual. HSM / threshold custody is genuinely blocked on external hardware and deployment (proposal p. 48: "no HSM named"). The in-build step is the process-separation workstream (TR-01(a)); read-only mode is the guardrail that shipped.