Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 07:38
· 7 commits to master since this release
ec5b800

Release is done

Container image

docker pull ghcr.io/pigyon/tanuki:0.3.0

Platforms: linux/amd64, linux/arm64
Digest: sha256:5e27bb80f7e2aeecb5826c44391b3c8da804d32d8c477e2ccc8fafe7e741f5d0

Pin this release in compose.yaml:

TANUKI_TAG=0.3.0 docker compose up -d

Security 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_ORG is validated: at least 4 characters, no whitespace, not localhost, not a public suffix. TANUKI_FICTION_ORG=com used to be accepted and disabled the leak check for every .com value.
  • An unparseable .claude/settings.json stops startup instead of being replaced, which used to discard your permissions, env and hooks on every proxy start.
  • add, add-ip and add-account reject anything that is not a domain, address or account ID, and an unknown option stops the command. tanuki add acme.com extra used to map extra and 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 2606 example.* names. Use tanuki add if one of these is your target.
  • A request carrying a Content-Encoding other than identity, 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 verify

Existing 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 add or a scope entry maps it, and tanuki verify finds 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 reset clears 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