fatext v4.0
fatext / proofs / 01-threat-model

Proof 01 — Adversary Model & Zero-Trust Relay Security Boundary

This document defines the adversary classes, trust boundaries, and security guarantees of fatext v4.0 across the static publication anchor, registered public relays, and peer-to-peer mesh.

1. Adversary Classes

  1. Global Passive Network Observer (𝒜net): Records encrypted packets, timestamps, and sizes across Internet links (Store-Now-Decrypt-Later), attempting later decryption with a cryptographically relevant quantum computer (CRQC).
  2. Malicious or Compromised Public Relay (𝒜relay): Controls up to f registered or community --seed relays; inspects Drop-Box headers, attempts to correlate senders via rate-limit tokens, injects forged ReachDescriptor entries, or selectively drops envelopes.
  3. Sybil Mesh Polluter (𝒜sybil): Generates synthetic identities to poison Kademlia DHT routing buckets or dilute decoy rings.
  4. Static Mirror Tamperer (𝒜mirror): Serves modified or stale relays.json / binary archives over compromised CDNs or HTTP mirrors.

2. Trust Boundary Matrix

ComponentSecret Material HeldCapabilities Under CompromiseEnforced Cryptographic Guard
Static Origin / MirrorNone online (offline cold RFC 8032 Ed25519 key)Can only delay updates until expires_at; cannot forge relays.json.sig or SHA256SUMS.sigPinned client official_release_key_fp + monotonic registry_epoch anti-rollback
Public Seed RelayOwn master.seed (pk_id in relays.json)Can drop queued ciphertexts on its own host; cannot decrypt envelopes, forge microlog events, or identify ring signersX25519 + ML-KEM-768 E2EE + Scoped LSAG blind quotas + multi-relay replication (k_home = 3)
Peer NodeOwn master.seed (0600)Compromises only that single agent_id; historical fatext-p2p-v5 sessions remain confidentialEphemeral per-session ML-KEM-768 + X25519 forward secrecy + revoke / equivocation freeze

3. Theorem 1.1 (Zero-Trust Relay Confidentiality & Integrity)

Statement: Let 𝒜relay control all Drop-Box and WebSocket relays traversed by honest agents A and B whose authentic microlog chains are mutually resolved. Under the IND-CCA2 security of either RFC 7748 X25519 or NIST FIPS 203 ML-KEM-768, the INT-CTXT security of AES-256-GCM, and the EUF-CMA security of Schnorr / SAG / bLSAG over RFC 9496 ristretto255, 𝒜relay has negligible advantage in distinguishing message plaintexts or injecting accepted frames.

Proof Sketch:

  1. Every asynchronous payload and p2p_offer / p2p_answer frame encapsulates a fresh 32-byte key under the recipient's microlog-authenticated ek_kem (1216 B) and authenticates sender identity inside the AES-256-GCM plaintext via ristretto255 Schnorr or ring signature.
  2. Any modification of outer kem_ct, iv, ct, or AAD causes either implicit KEM rejection (yielding an independent SHAKE256 pseudorandom key that fails GCM tag verification with probability 1 - 2-128) or direct GCM authentication failure.
  3. Because the static trust anchor never holds master.seed or participates in key exchange, compromise of web hosting infrastructure yields zero decryption capability over past or future traffic. ∎
Raw Markdown: /proofs/01-threat-model.md All specs & proofs: /llms-full.txt