Repository navigation
v0.3.0
Container image
docker pull ghcr.io/pigyon/tanuki:0.3.0Platforms: linux/amd64, linux/arm64
Digest: sha256:5e27bb80f7e2aeecb5826c44391b3c8da804d32d8c477e2ccc8fafe7e741f5d0
Pin this release in compose.yaml:
TANUKI_TAG=0.3.0 docker compose up -dSecurity release. Fixes twenty-one cases where target data could reach the Anthropic API, and stops the rewriter corrupting source code. Most were invisible to the fail-closed gate, which shares detection's recognisers; four could switch it off outright.
Breaking changes
TANUKI_FICTION_ORGis validated: at least 4 characters, no whitespace, notlocalhost, not a public suffix.TANUKI_FICTION_ORG=comused to be accepted and disabled the leak check for every.comvalue.- An unparseable
.claude/settings.jsonstops startup instead of being replaced, which used to discard your permissions, env and hooks on every proxy start. add,add-ipandadd-accountreject anything that is not a domain, address or account ID, and an unknown option stops the command.tanuki add acme.com extraused to mapextraand report success.- A bare token whose registrable name is a word code is written with (
self,system,user,config,socket) is no longer detected, nor are package registries, container registries and the RFC 2606example.*names. Usetanuki addif one of these is your target. - A request carrying a
Content-Encodingother thanidentity, or a real target in the query string or a header, is refused. - Removed
tanuki hook --dry-run, which logged that it would rewrite the tool input and then rewrote it.
Upgrading
TANUKI_TAG=0.3.0 docker compose up -d
./tanuki scope add '*.your-target.com' # optional, see Scope in the README
./tanuki verifyExisting engagements work unchanged, checked against a 0.2.0 table including legacy ticket rows and the previous path fiction format. No remapping is needed. Run ./tanuki verify over any report drafted on 0.2.0, since targets on uncommon TLDs may never have been detected.
Known limitations
- A bare two-label hostname on a TLD outside the curated list is not detected without a
://,@or path marker, and nor is one whose registrable name is an everyday word.tanuki addor a scope entry maps it, andtanuki verifyfinds one in a draft report. - An MCP server or tool named after the target leaks that name through
tools[].name. - A kill the proxy cannot catch (
docker kill, the OOM killer, a host crash) leaves the redirect in.claude/settings.json../tanuki resetclears it with the container down.
What's Changed
- fix: stop ambient provider and operator domains becoming targets by @nedlir in #12
- Close nine leak paths in the rewriter and the fail-closed gate by @nedlir in #13
- Stop tanuki damaging the operator's config and its own mapping table by @nedlir in #14
- Add engagement scope, and treat a tool's arguments as content by @nedlir in #15
- Make the CLI and the file lock fail loudly instead of silently by @nedlir in #16
- Correct the detection and gate faults found in review by @nedlir in #17
- Recover from a stopped proxy, and close the last leak paths by @nedlir in #18
Full Changelog: v0.2.0...v0.3.0
