Skip to content

Security Model

Tallow is built with a security-maximalist approach. Every layer is designed to protect your data, even against future quantum computers.

Threat Model

Assets Protected

Asset Protection
File content (plaintext) AES-256-GCM encryption, never leaves your device unencrypted
Key material Zeroized on drop on every lane; on native builds (relay and CLI) pinned in RAM via mlock and never swapped to disk
Metadata (filenames, sizes, file tags) Filenames and sizes encrypted in transit; EXIF/GPS and document metadata can be stripped before send (opt-in, off by default)
Identity (who communicates) Optional Tor anonymity layer (SOCKS5 proxy)

Metadata stripping is opt-in and off by default (the switch lives in settings). Turned on, the browser strips metadata from strippable files: images are redrawn through a canvas, discarding EXIF, GPS, XMP and IPTC; PDFs have Title, Author, Subject, Keywords, Producer and Creator cleared; Office files (.docx/.xlsx/.pptx) have their docProps metadata zeroed. It is off by default because it is not lossless for images — a stripped JPEG/WebP is re-encoded at quality 0.95, and the file you send is the rewritten one. Files whose type is not strippable are sent unchanged, and a file that fails to strip is sent as-is rather than blocking the transfer.

Trust Boundaries

Adversary Profiles

Adversary Capability Mitigation
Shared WiFi attacker Passive packet capture E2E encryption, TLS on relay connection
Compromised relay Full server control Zero-knowledge design, E2E encryption
Nation-state (passive) Backbone taps, metadata collection Tor integration, traffic padding (both opt-in — see Traffic padding)
Nation-state (active) DNS/BGP hijack, quantum computers Post-quantum KEM, DoH, certificate pinning

Cryptographic Algorithms

Key Exchange: Hybrid ML-KEM-1024 + X25519

Tallow uses a hybrid key encapsulation mechanism combining:

Both algorithms must be broken to compromise the key exchange. This provides security against both classical and quantum adversaries.

Symmetric Encryption: AES-256-GCM

Forward secrecy is scoped by lane. One file transfer derives a single 32-byte AES-256-GCM session key from the hybrid handshake and uses it for the whole transfer, with each chunk’s index bound into the AAD. There is no per-chunk or per-message re-keying on the file lane, so no forward secrecy is claimed beyond the lifetime of that transfer session — it is a bounded, ephemeral session. The key is one-shot and is zeroized and destroyed when the session ends. Per-message post-quantum forward secrecy is a property of the ratchet chat path only — see Chat.

Hashing: BLAKE3

Password Hashing: Argon2id

Signatures: Ed25519 + ML-DSA-87

Transport & Certificates

Memory Safety

Browser Hardening

Relay Zero-Knowledge Design

The relay server is designed to know as little as possible:

  1. It receives a room code (a one-way, memory-hard Argon2id derivation of the passcode) — not the passcode itself
  2. It forwards encrypted bytes between participants — it cannot decrypt them
  3. It stores no transfer data or ciphertext — rooms and streams exist only in memory and expire. Nothing about an admission outlives the room: the exchange audit that used to write keyed 8-hex peer and room hashes is switched off (audit.enabled = false), the process writes no journal lines, and TURN writes no session log. The peer-hash key is still held 0600 in a tmpfs directory recreated at every relay start, and is used for rate-limit bucketing that never reaches disk.
  4. Rooms automatically expire after a configurable timeout (default 10 minutes)
  5. Rate limiting prevents abuse without requiring identity

A compromised relay has nothing to hand over: session keys are ephemeral, derived per session and held only in the participants’ memory, and the relay stores no ciphertext to disk. That is a statement about what the relay holds — checkable against its code and configuration — not a promise that no one can ever decrypt anything.

Optional: Tor / Onion Access

Tallow’s site and relay are also reachable as a Tor v3 onion service, for users who want to route around IP-level observation entirely:

STRIDE Analysis

Category Threat Mitigation
Spoofing Impersonation PAKE authentication, safety numbers
Tampering Data modification Per-chunk AEAD authentication tags, plus whole-file Merkle verification on the CLI lane
Repudiation Denial of action Not a design goal (privacy tool)
Information Disclosure Data leakage E2E encryption, zeroization, secure memory
Denial of Service Resource exhaustion Rate limiting, resource caps
Elevation of Privilege Sandbox escape OS sandbox (Landlock + Seccomp on Linux)

Operational hardening evidence

The guarantees above name concrete operating-system controls. Everything in this section describes the native builds — the relay host and the CLI. The browser client has no equivalent controls: it runs inside the browser’s own memory management, and the browser decides paging and crash capture (see Browser Hardening).

The artefacts below are what makes each native control checkable: each claim has a published source or an explicit statement of where the artefact lives (audit rows A09-24…A09-30).

Core dumps disabled — native builds (row A09-25) — kernel and container layer:

/etc/sysctl.d/60-tallow-hardening.conf
kernel.core_pattern = |/bin/false
fs.suid_dumpable = 0
kernel.kptr_restrict = 2
# prod relay image (native) — no core dumps, no ptrace into the process
RUN echo "ulimit -c 0" >> /etc/profile.d/no-core.sh

The relay — a native build — additionally calls prctl(PR_SET_DUMPABLE, 0) at startup, so even a root-invoked gcore on the running process produces nothing.

Key material never reaches swap — native builds (row A09-26):

# /etc/sysctl.d/61-tallow-swap.conf (paired with mlock in the relay and CLI)
vm.swappiness = 0

In native builds (relay and CLI) secrets are pinned with mlock/mprotect in-process (see Memory Safety above). Where such a host cannot disable swap, the swap device must be encrypted — documented as the deployment precondition rather than assumed away.

No crash reporters (row A09-27): “We run no crash reporters. Period.” Neither the relay nor the web application links a Sentry/Bugsnag-class SDK, and no crash path uploads memory context. This is a statement of fact about the build, verifiable by inspecting the dependency tree (cargo tree, pnpm ls).

Structured, allowlist-only logs (row A09-28): the log schema is exactly the field set published on Transparency — timestamp, method, path, status, latency, bytes. The LogSafe proc-macro that makes unsafe fields a compile error lives in the relay repository; publishing its source is pending the source-repository release (D-03 / crypto register), and the field allowlist is the part that is published today.

IP stripping and X-Forwarded-For: which process reads it (row A09-29). Two different processes sit behind that edge, and the rule is different for each — stating the split is the point:

So: the relay reads the header for rate-limit identity and nothing else; the application never reads it at all. Self-hosting the relay is what makes trust_proxy your decision — see Self-Hosting.

The integration test that asserts the application path never consumes X-Forwarded-For is a relay-repository artefact — not published here, because it lives outside the website mandate (D-20); the invariants themselves are what the IP addresses (site access log) and Client address (relay) rows of the transparency table assert.

Rate limiting by proof-of-work (row A09-30): the challenge spec and the target relay configuration are published at Rate Limits (Proof-of-Work); the relay-side migration off IP keying is tracked in the crypto register (pending, not silently assumed).