Repository navigation
Party Mode and Security
Isllan Toso edited this page Nov 21, 2026
·
2 revisions
-
Key Exchange & Cipher (
bullet-party): Lobby members exchange ephemeralX25519keys and encrypt skin, chroma, form, and profile identity payloads usingXChaCha20-Poly1305with 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 for1 hour;PartyToken'sDebugimpl omits the key so it is never logged). -
By Lobby: Players in the same non-custom lobby derive a room from
partyIdand only announce or apply skins after explicitly accepting the Join Party prompt.
-
By Code (
-
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 viabullet-relay) forwards encrypted frames (max 5 members,256 KBmessage cap,4 KBciphertext cap) without inspecting or storing plaintext skin/identity choices. -
Header Token Auth: Relay connections authenticate using the
x-bullet-relay-tokenrequest 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.
-
Least Privilege (
asInvoker): Bullet never elevates at runtime on Windows (asInvoker) and never suspends game threads or requestsSeDebugPrivilege. -
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_zipbounds, canonical path checks, symlink/junction blocking. - Dangling
.binlinks → 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.
- Malicious
-
No Telemetry: Bullet collects zero analytics or usage telemetry; update checks can be disabled with
BULLET_UPDATE_CHECK=0.
Architecture & Domain
Client & Asset Pipeline
Platform & Security