docs: record D-QA-1, the mutual exchange (A-15), the hazmat gate (A-35) and the corrected ml-kem fact
This commit is contained in:
+13
-5
@@ -1,6 +1,6 @@
|
||||
# Arcanum threat model
|
||||
|
||||
Scope: the `arcanum` crate v0.1.0 — the X-Wing hybrid KEM, the key schedule, the WireGuard PSK
|
||||
Scope: the `arcanum` crate v0.1.0 — the X-Wing hybrid KEM, the mutual exchange, the key schedule, the WireGuard PSK
|
||||
derivation and the sealing helper. **Not audited.**
|
||||
|
||||
## Assets
|
||||
@@ -20,7 +20,8 @@ derivation and the sealing helper. **Not audited.**
|
||||
| A break of X25519 | Recovers `ss_X` | Yes | ML-KEM still protects it. |
|
||||
| Active attacker who modifies ciphertexts | Flips bytes in transit | Detected or harmless | Changed `ct_M` → ML-KEM implicit rejection gives an unrelated secret; changed `ct_X` → different `ss_X`; the transcript hash binds both. The peers' PSKs differ and WireGuard simply fails to handshake. Low-order X25519 values are rejected with a typed error. |
|
||||
| Malformed or hostile input | Sends wrong lengths, invalid ML-KEM keys, random bytes | No panic, typed error | Tests 5 and the fuzz target. |
|
||||
| Epoch confusion | Replays an old exchange for a new epoch | Harmless | The epoch number is in every PSK derivation; an attacker who cannot decapsulate cannot compute any epoch's PSK. |
|
||||
| **Impersonating one peer** (QA A-15) | Knows both public keys, sends its own encapsulation as if from the initiator | **Yes** | The exchange is mutual: the PSK needs both directions' secrets, and the responder's encapsulation goes to the real initiator's key. Without that secret key the attacker cannot compute the PSK, even after breaking WireGuard's X25519 keys. |
|
||||
| Epoch confusion | Replays an old exchange for a new epoch | Harmless for secrecy | The epoch is in every PSK derivation; an attacker who cannot decapsulate cannot compute any epoch's PSK. Refusing to re-install an old PSK (rollback) is the caller's job: Arcanum keeps no state. |
|
||||
|
||||
## What Arcanum does NOT protect against
|
||||
|
||||
@@ -28,9 +29,9 @@ derivation and the sealing helper. **Not audited.**
|
||||
|:--|:--|
|
||||
| **Endpoint compromise** | Malware on a device reads keys and plaintext from memory. Zeroisation narrows the window; it does not close it. Keys at rest belong in Custos or Tessera. |
|
||||
| **Traffic analysis** | Who talks to whom, when and how much is visible on the wire. Padding and cover traffic are the Stealth transport's job (Day 7), and only partly. |
|
||||
| **Man in the middle on the public key** | Arcanum v1 does not authenticate. An attacker who substitutes the responder's public key learns that exchange's PSK. In Via, WireGuard's static keys still authenticate the tunnel, so the attacker gets back to classical security, not to plaintext; Via must also sign the Arcanum public key with the device's Tessera key (Day 3). Post-quantum authentication (ML-DSA) is not in v1. |
|
||||
| **A quantum attacker who is also active today** | Without post-quantum authentication, an active quantum attacker could impersonate a peer in real time. v1 targets the passive harvest-now threat. |
|
||||
| **Bad randomness** | The caller supplies the RNG. A broken RNG breaks every scheme. The `_derand` functions are for known-answer tests; reusing their seeds is catastrophic. |
|
||||
| **Substituted public keys** | The mutual exchange authenticates whoever holds the secret keys matching the public keys each side was *given*. An attacker who gets a peer to accept her public key in place of the real one learns that exchange's PSK. In Via, WireGuard's static keys still authenticate the tunnel classically, so this falls back to classical security, not to plaintext. Via must distribute both hybrid public keys signed with Tessera (Day 3). If those signatures are classical (Ed25519), a quantum attacker who can forge them can substitute keys; ML-DSA closes that later. |
|
||||
| **Theft of static secret keys later** | With static key pairs, whoever later steals both secret keys and has recorded the exchanges can recompute their PSKs. Day 3 must add an ephemeral key pair per exchange (as Rosenpass does) or rotate key pairs. |
|
||||
| **Bad randomness** | The caller supplies the RNG. A broken RNG breaks every scheme. The `_derand` functions exist only with the off-by-default `hazmat` feature, for known-answer tests; reusing their seeds is catastrophic. |
|
||||
| **Side channels** | Timing and cache behaviour are those of `ml-kem`, `x25519-dalek`, `sha3` and `chacha20poly1305`. Arcanum adds only fixed-length, data-independent glue, but has not been measured. |
|
||||
| **Reusing one session for many epochs** | Supported, but a leaked session reveals every epoch's PSK derived from it. Forward secrecy needs one exchange per epoch. |
|
||||
| **Denial of service** | An attacker on the path can always drop packets. |
|
||||
@@ -53,3 +54,10 @@ derive a predictable PSK) reduces a Via tunnel to plain WireGuard: still authent
|
||||
classically, but open to harvest-now-decrypt-later. It never reduces it below WireGuard. Sealing
|
||||
(Custos, Tabellarius) is different: there Arcanum is the only layer, which is why those migrations
|
||||
wait for the audit.
|
||||
|
||||
## Residual memory exposure
|
||||
|
||||
Moves in Rust copy stack bytes, and `zeroize` cannot reach those copies; hash and HMAC states are
|
||||
wiped only as far as the crates' `zeroize` features go. A process memory dump taken while Arcanum
|
||||
runs may contain key material. That is accepted for v1 and is one more reason keys at rest live in
|
||||
Custos or Tessera, not in Arcanum's callers.
|
||||
|
||||
Reference in New Issue
Block a user