Threat Model
340 words1 min read4 subsectionsFrom the README at ft 0.15.21
What ft is designed to resist, and what's explicitly out of scope.
In scope
- Low-trust pane output. A malicious agent on pane A printing pattern-matching text cannot fire a workflow whose actions land on a high-trust pane B (workflow trigger-policy allowlists, ft-j0ufc).
- Secret leakage through read-path APIs. Every outbound text return (get-text, search, web/SSE, notifications) routes through the redactor before emission.
- Privilege amplification via
pubfield bypass. The substrate-audit family closed dozens of public-field bypass sites; constructors/builders own the invariants. - Rubber-stamp safety verdicts.
is_safe()methods cannot returntruebefore a measurement is recorded (substrate-audit family). - Replay attacks on the wire protocol. Per-sender sequence-number dedup rejects out-of-order and duplicate envelopes.
- Unbounded inputs causing DoS. Float validators reject NaN / Inf / non-finite; size limits enforced at codec boundaries; circuit breakers stop retry storms.
- Argv flag injection. Anywhere a user-controlled string reaches argv, flag-prefix bytes are normalized or rejected (cass argv flag-injection closure).
- Path traversal in browser auth.
browser::sanitize_path_componentblocks bare.and..(br-ft-klznn). - Unredacted output in incident bundles. Bundle truncation honors per-file and per-excerpt size limits (br-ft-cw0j3, br-ft-6j9ig); redaction runs before bundle assembly.
Out of scope
- Compromised operator workstation. If an attacker has root on the host running
ft, they can read the SQLite DB directly.ftdoes not encrypt the DB at rest. - Compromised mux process.
fttrusts the mux to report pane state honestly. A compromised mux can lie. - Side-channel attacks via timing.
ftis not designed to resist timing-channel attacks against the redactor or policy gate. - Coercive credential extraction. If a user is forced to enter credentials,
ftcannot detect that. - Adversarial agent collusion within the same trust principal. Workflow trigger-policy allowlists prevent cross-trust-principal amplification; intra-principal collusion is the user's problem.
Distributed-mode-specific
See docs/security/distributed-threat-model.md for the wire-protocol-specific threat model and diff-fuzz coverage.
Audit and forensics surface
When something does go wrong, the policy_denied_audit table (schema v24+), the audit_actions table, the events table with full taxonomic filters, and the incident-bundle live collectors are all designed for post-incident reconstruction. Even when defense-in-depth fails, the operator has the data needed to understand what happened.