Repository navigation
Releases
v0.3.1
A review pass over the v0.3.0 additions. Every item was reproduced with a failing test before being changed, and each fix was mutation-verified — the guarding test was watched go red against a reverted fix.
Enforcement fix. A recipient could hide a second party from the author-equality exemption, by two routes. Textually, Customer <customer@example.com>, attacker@evil.example is one string to Customhouse and an address list to a mail server, and v0.3.0 compared only the bracketed span. Structurally, a declared recipient array kept its string elements and silently dropped the rest, so an object element contributed one recipient to the comparison and two to an upstream that accepts them.
Both are closed the same way: a value that is not fully understood no longer produces a shorter list, it stops the exemption. This affects only deployments that opted into author_field and recipient_fields. Measured block and false-positive rates are unchanged — the tightening cost nothing.
Ledger fixes. A record truncated by a crash used to swallow the next one: the next process appended onto the unterminated line and merged two records into one unreadable line. And ids restarted at 0 each run, so a file spanning sessions could repeat them — which matters because ids are cited as references (caused_by_call, server:call_id, and the denial text's "call N").
customhouse init no longer skips servers declared "type": "stdio", the form Cursor and VS Code write for local servers.
Disclosure. SECURITY.md now states two ledger limits that were previously unstated: verification stops at the first unreadable line, so entries past it are unchecked; and the ledger fails open, so a running proxy does not guarantee a written trail. Both are real, neither is fixed in this release.
Full notes and the release-to-commit map: CHANGELOG.md
v0.3.0
Three additions, one of which changes what Customhouse allows.
Destination classification (enforcement). In a session tainted by untrusted content, an external_send call is now allowed if every recipient is the author of the tainted source. Authorship is read only from a structured field the upstream declares — never by searching content, because an attacker who writes a message body must not be able to forge the value that authorises a reply. If any taint source has no author, the sources disagree, or any recipient is a third party, the stricter session rule stands.
This relaxes enforcement in one narrow case, and it opens a residual channel: when the author is the attacker, a reply directed to them is allowed. That is documented in SECURITY.md, recorded in the ledger every time the exemption fires, and pinned by a test that asserts the allow, so closing it later has to be deliberate.
Hash-chained ledger. Every entry carries the SHA-256 of the previous line; customhouse verify-ledger walks the chain and names the first bad line. Tamper-evident, not tamper-proof — an attacker with write access can recompute the whole chain. What is closed is undetected point edits.
customhouse init. Generates a customhouse.toml from the MCP servers Claude Desktop and Cursor already launch. It never marks any upstream trusted, and names every server it skipped rather than omitting it silently.
Measured: false-positive rate 40% → 30% (4/10 → 3/10) over benign workflows that use a sink, attributable to destination classification. Block rate holds at 100% over a set that grew from 11 to 12 scenarios; the added one plants the attacker's address in a poisoned body, which is the case a naive version of this rule would have allowed. Regenerate both with ./demo/run_metrics.sh.
Full notes: CHANGELOG.md
Customhouse v0.2.1
Deterministic provenance enforcement at the MCP tool boundary.
Every upstream is declared trusted or untrusted. Once a session receives a result from an untrusted server, calls that move money or send data out are refused for the rest of that session — no model in the decision path, no pattern matching, no content inspection.
Measured behaviour (regenerate with ./demo/run_metrics.sh): 100% block rate across 11 injection scenarios, 40% false-positive rate across the 10 benign workflows that use a sink. Per-class breakdown and a post-mortem of every false positive are in METRICS.md.
What this release does not do is set out in SECURITY.md.
Changes since 0.2.0: demo fixtures moved to examples/, so cargo install customhouse now installs a single binary.
cargo install customhouse