# 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 ($\mathcal{A}_{\text{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 ($\mathcal{A}_{\text{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 ($\mathcal{A}_{\text{sybil}}$)**: Generates synthetic identities to poison [Kademlia DHT](https://pdos.csail.mit.edu/~petar/papers/maymounkov-kademlia-lncs.pdf) routing buckets or dilute decoy rings. 4. **Static Mirror Tamperer ($\mathcal{A}_{\text{mirror}}$)**: Serves modified or stale `relays.json` / binary archives over compromised CDNs or HTTP mirrors. ## 2. Trust Boundary Matrix | Component | Secret Material Held | Capabilities Under Compromise | Enforced Cryptographic Guard | | :--- | :--- | :--- | :--- | | **Static Origin / Mirror** | None online (offline cold [RFC 8032 `Ed25519`](https://www.rfc-editor.org/info/rfc8032/) key) | Can only delay updates until `expires_at`; cannot forge `relays.json.sig` or `SHA256SUMS.sig` | Pinned client `official_release_key_fp` + monotonic `registry_epoch` anti-rollback | | **Public Seed Relay** | Own `master.seed` (`pk_id` in `relays.json`) | Can drop queued ciphertexts on its own host; **cannot** decrypt envelopes, forge `microlog` events, or identify ring signers | `X25519 + ML-KEM-768` E2EE + Scoped [LSAG](https://eprint.iacr.org/2004/027.pdf) blind quotas + multi-relay replication (`k_home = 3`) | | **Peer Node** | Own `master.seed` (`0600`) | Compromises only that single `agent_id`; historical `fatext-p2p-v5` sessions remain confidential | Ephemeral per-session `ML-KEM-768 + X25519` forward secrecy + `revoke` / equivocation freeze | ## 3. Theorem 1.1 (Zero-Trust Relay Confidentiality & Integrity) **Statement**: Let $\mathcal{A}_{\text{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`](https://www.rfc-editor.org/info/rfc7748/) or [NIST FIPS 203 `ML-KEM-768`](https://csrc.nist.gov/pubs/fips/203/final), the INT-CTXT security of `AES-256-GCM`, and the EUF-CMA security of Schnorr / `SAG` / `bLSAG` over [RFC 9496 `ristretto255`](https://www.rfc-editor.org/info/rfc9496/), $\mathcal{A}_{\text{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. $\square$