Skip to content

Party Mode and Security

Isllan Toso edited this page Nov 21, 2026 · 2 revisions

Party Mode and Security

Party Mode (End-to-End Encrypted Sync)

  • Key Exchange & Cipher (bullet-party): Lobby members exchange ephemeral X25519 keys and encrypt skin, chroma, form, and profile identity payloads using XChaCha20-Poly1305 with a random 192-bit nonce per message.
  • Room Code vs. Lobby Room:
    • By Code (BULLET1:...): Room key is derived solely from the 32-byte secret in the shared code (valid for 1 hour; PartyToken's Debug impl omits the key so it is never logged).
    • By Lobby: Players in the same non-custom lobby derive a room from partyId and only announce or apply skins after explicitly accepting the Join Party prompt.
  • Anti-Spoof Roster Verification: Every peer announcement is verified against the real match/lobby roster (PUUID + championId); mismatched announcements are discarded.
  • Zero-Knowledge Relay (relay-worker/ & bullet-relay): The relay (hosted on Cloudflare Workers with Durable Objects, or self-hosted via bullet-relay) forwards encrypted frames (max 5 members, 256 KB message cap, 4 KB ciphertext cap) without inspecting or storing plaintext skin/identity choices.
  • Header Token Auth: Relay connections authenticate using the x-bullet-relay-token request header over TLS (wss://).
  • Identity Sanitization (IdentityLoadout): Incoming icons, borders, banners, titles, and tokens are strictly validated against XSS, CSS injection, and path traversal before rendering.

Process & Runtime Security

  • Least Privilege (asInvoker): Bullet never elevates at runtime on Windows (asInvoker) and never suspends game threads or requests SeDebugPrivilege.
  • Signed Releases & Verified Self-Update: Official releases publish SHA256SUMS, an Ed25519 signature (SHA256SUMS.sig), and a GitHub build provenance attestation. Bullet verifies the Ed25519 signature against its pinned public key (RELEASE_PUBLIC_KEY) and re-hashes the installer before launching it.
  • Threat Model Summary:
    • Malicious .fantome/.zip → safe_extract_zip bounds, canonical path checks, symlink/junction blocking.
    • Dangling .bin links → refused/repaired before injection to prevent loading-screen crashes.
    • Untrusted relay/peer payload → AEAD authenticated decryption + field validation + roster anti-spoof.
    • Tampered update → TLS + Ed25519 SHA256SUMS.sig + pre-launch SHA-256 re-check.
  • No Telemetry: Bullet collects zero analytics or usage telemetry; update checks can be disabled with BULLET_UPDATE_CHECK=0.

Clone this wiki locally