Skip to Content
Remit Docs
Protocol specification

Threat model v1

AdversaryGoalsDefenses in this implementationKnown gaps
Malicious SenderSandbox escape, DoS, exfiltration beyond the grantWasm sandbox with zero ambient imports; per-trust-domain worker processes; fuel/memory/wall/output caps; scan caps; Sender code is only interpreted; bounded result types validated after execution; budgets; optional microVM isolation (one KVM guest per trust domain)process isolation relies on the host kernel's sandboxing; microvm needs Linux with KVM
Malicious Sender, many remitsDifferencing, averaging, reconstructionPer-principal and global per-dataset bit budgets; global ε ledger; identical (remit, params, snapshot) answers served from cache at zero cost (defeats averaging of DP noise); k-thresholds in the plan; targeting a single unit through a filter yields an empty resultA DP answer lost from the result cache (restart, eviction) is a new, charged release
Sybil SendersMultiply per-principal budgets / exhaust global budgetsGlobal ledgers; verified groups required by presets; concurrency capsUnverified principals share a capped slice of global budgets
Transient-execution attackerRead beyond the grant via SpectreWorkers hold only already-granted, post-policy data per trust domain; no clocks or threads in the sandbox
Malicious HolderFabricate results; inject instructions into the SenderSigned receipts with result hashes and data versions; hash-chained log; typed results; Untrusted<string> in SDKs; enum values are Holder-declaredWitness network for tree heads is deployment work
NetworkTamper, replayTLS (deployment), DSSE signatures over canonical payloads, nonce + expiry, holder bindingTLS termination is the deployment's
Confused deputySub-agent misuses delegated authorityBiscuit attenuation (checks only narrow), purpose binding, short expiry

Leakage channels

See status.md. Result value: type capacity, validated after execution, DP for governed data. Status: 3 bits, always charged. Row counts and cap hits: never returned. Timing: bucketed usage, optional padding classes. Diagnostics: visible-catalog terms only. Catalog: per-principal scope.

Adversarial test list (implemented as tests)

  • Escape attempts: no fetch/require/process/WebAssembly/timers; imports rejected.
  • Fuel evasion: infinite loops in main and at top level; host-work pricing.
  • Memory-growth storms: capped by the store limiter.
  • Wall-clock: busy loops with unlimited fuel stop at the deadline.
  • Row/call caps; undeclared reads; hidden columns/resources indistinguishable from nonexistent.
  • k-threshold differencing: single-unit targeting returns nothing; projecting the privacy unit away is rejected.
  • Aggregate-only bypass via raw scans, string_agg/array_agg.
  • Replay (nonce reuse), expiry, wrong holder, wrong signer, non-canonical payloads.
  • Budget exhaustion per principal and globally (Sybil), WAL replay.
  • Receipt log tampering (removal/modification).
  • Unregistered did:key when refused; stolen transport signatures; forged JWTs; SSRF through did:web.
  • Table-function parameter injection; search as an oracle over hidden rows; search over aggregate-only resources.
  • DP: exact HAVING/k, unbounded joins and sums, spoofed privacy units, data-dependent errors, averaging, syntactic variants, outlier contributors.
  • Capacity overflow (timestamp ranges), differential accept/reject of mutated types across four implementations.
  • Cached answers to new principals; client disconnects; crash between reserve and settle; nonce replay across restarts; blob and queue flooding.
  • Process isolation: OS escape self-test, compile bombs, regex/recursion/promise/BigInt/memory storms, cyclic and deep results, Spectre gadgets without clocks, one process per trust domain.
  • RemitBench adversarial track: injection exposure and exfiltration beyond capacity are both 0.

On this page