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
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.
| Class | Capability assumed | Goal |
|---|---|---|
| A1 — The harvester | Copies ciphertext at scale, today, from networks, backups, breaches, and public storage | Decrypt it later, when the cryptography weakens (HNDL) |
| A2 — The future quantum adversary | A cryptographically relevant quantum computer, at an unknown date | Break classical public-key cryptography retroactively; pressure PQ margins |
| A3 — The cryptanalyst | Mathematical progress against one hardness family — lattice or code-based — classical or quantum | Collapse a single family's security assumption |
| A4 — The malicious custodian | Full control of one custodian, one operator, or one key-service replica | Extract the anchor secret, or open objects unilaterally |
| A5 — The oracle abuser | Unlimited chosen-ciphertext submissions to any opening interface | Turn the decapsulation path into a key-recovery oracle |
| A6 — The history rewriter | Control of the operator's database and logs after the fact | Rewrite 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.
| # | Attack | Design answer | Status |
|---|---|---|---|
| T-01 | Harvest now, decrypt later — harvested classical ciphertext opens when quantum hardware arrives | Both KEM slots are post-quantum from birth; there is no classical component in any profile to harvest against | DESIGNED OUT |
| T-02 | Single-family break — ML-KEM or HQC falls to cryptanalysis | AND-survival: a VAULT object still needs the other family's secret and the anchor. Rotation path: beacon announcement → re-wrap → successor verification → burn | SPECIFIED — GATED BY G-1 |
| T-03 | Combiner 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 production | DEMONSTRATED — LOCAL LIMB |
| T-04 | Decapsulation-oracle abuse — chosen-ciphertext probing of the opening path | Implicit rejection in both KEMs; unconditional decapsulation of all slots; a 1,000-invalid-decap budget per epoch key, then quarantine | PARTIAL — ML-KEM SLOT METERED, HQC SLOT UNMETERED (D-20) |
| T-05 | Downgrade — present a VAULT object as CORE, or strip a slot from the slot map | Sealing 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 zero | DEMONSTRATED — LOCAL LIMB |
| T-06 | Slot-4 annex abuse — smuggle trusted data in the trailing annex | The 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 handling | DEMONSTRATED — LOCAL LIMB |
| T-07 | Tampering — mutate header, ciphertexts, wrapped DEK, or body | HMAC-SHA-384 tag over the canonical header, wrapped DEK, and body digest; the body digest is checked after decryption; any mutation fails | DEMONSTRATED — LOCAL LIMB |
| T-08 | Error oracle — distinguish why an opening failed and iterate | One 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 failed | DEMONSTRATED — LOCAL LIMB |
| T-09 | Anchor extraction (A-EXT) — recover S_3 from envelope material or combiner output alone | The 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-1 | ASSUMPTION — UNENDORSED |
| T-10 | Silent anchor compromise — the anchor is copied without any visible sign | The 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 such | OPEN — ACSP DOES NOT PASS |
| T-11 | Timing side channels — measure the opening path to distinguish failure modes | No 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 made | PARTIAL — NO TIMING CLAIM |
| T-12 | History rewriting — alter an object's recorded lifecycle after the fact | Passport 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 operator | DEMONSTRATED — 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).
| 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. |
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.
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.
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.
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:
| Compromised | CORE | VAULT-FEDERAL | VAULT |
|---|---|---|---|
| Slot 1 (ML-KEM) | Opens (by design) | Still needs S_3 | Still needs ss_2 and S_3 |
| Slot 2 (HQC) | n/a | n/a | Still needs ss_1 and S_3 |
| Slot 3 (anchor) | n/a | Still needs ss_1 | Still needs ss_1 and ss_2 |
| Slots 1+2 | Opens 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
servemode:serve --read-onlyrefuses 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.
