Skip to content

Releases

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 21:23
86028c2

Thumbs up

Container image

docker pull ghcr.io/pigyon/tanuki:0.3.1

Platforms: linux/amd64, linux/arm64
Digest: sha256:4c5d25fa54ff2bdd0a0eb61e6956357235b7001e2f9fdabe59af8dae4dcda64d

Pin this release in compose.yaml:

TANUKI_TAG=0.3.1 docker compose up -d

Fixes two ways a target's org name could reach the Anthropic API through percent-encoded URLs, and rebuilds the image on patched Go and x/net releases.

Fixes

  • Percent-encoded hostnames are detected whole. In a URL like redirect_uri=https%3A%2F%2Facme.com%2Fcb, the hex digits of the escape were read as part of the hostname, so the target was registered as 2facme.com with the org name 2facme. In an engagement with no scope entry for the target, a later bare Acme or acme_prod was then sent upstream unrewritten. The leak gate didn't catch it because it checks mapped org names. %40 did the same to email addresses. The rewrite also damaged the encoded URL: %2F%2Fapi.acme.com became %2F%<fiction>.
  • An org name right after an encoded delimiter is rewritten. In https%3A%2F%2Fgithub.com%2Facme%2Frepo, the F of %2F was read as part of the next word, so the org rule never matched acme. The leak gate uses the same word boundaries, so it didn't refuse the request either. This happened after any delimiter escape ending in A–F (%2F, %3D, %3A, %5B, …), with or without a scope, and was also present in 0.3.0.
  • The encoded forms %3A%2F%2F, %40 and %2F now count as host markers, so an encoded return URL on an uncommon TLD (%2F%2Fportal.acme.in%2F) is detected too.

Upgrading

Run ./tanuki map on any engagement you used with 0.3.0. A real value that begins with 2f, 3a or 40 (for example 2facme.com) came from an encoded URL. That engagement may have sent the target's name upstream, and the stale row keeps rewriting encoded URLs wrongly, so start a fresh engagement with ./tanuki init. Run ./tanuki verify over any report drafted on 0.3.0.

Build and supply chain

  • Built with Go 1.27.4 and x/net 0.62.0. The v0.3.0 image was built with go1.27.3 and x/net 0.61.0, and is flagged for GO-2026-6859 (net/http) and for GO-2026-6860 and GO-2026-6866 (x/net/html). Tanuki isn't exposed to any of them: the proxy reads the whole request body before it writes any headers, and it uses only x/net/publicsuffix, not x/net/html. Scanners will still flag the old image; this one scans clean.
  • The builder image is pinned by tag and digest, so a rebuild uses the same toolchain, and Dependabot proposes each Go release.
  • CI tests on Go 1.27, the release the image ships with (it was testing on 1.26), with golangci-lint v2.15.0 (was v2.13.2).
  • golang.org/x/sys 0.50.0, docker/login-action 4.8.0.

What's Changed

  • deps: bump golang.org/x/net from 0.61.0 to 0.62.0 in the go-dependencies group by @dependabot[bot] in #20
  • ci: bump docker/login-action from 4.6.0 to 4.7.0 in the actions group by @dependabot[bot] in #19
  • deps: bump golang.org/x/sys from 0.49.0 to 0.50.0 in the go-dependencies group by @dependabot[bot] in #21
  • ci: bump docker/login-action from 4.7.0 to 4.8.0 in the actions group by @dependabot[bot] in #22
  • Detect percent-encoded hostnames whole, and ship the Go release CI tests by @nedlir in #23
  • docs: point the compose pin example at 0.3.1 by @nedlir in #24
  • Treat the end of a percent-escape as a word edge by @nedlir in #25

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 07:38
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

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 12 Oct 14:46

Release is done

Container image

docker pull ghcr.io/pigyon/tanuki:0.2.0

Platforms: linux/amd64, linux/arm64
Digest: sha256:41a20fc8d9358ec656fb0be318d0e4c310d4dca5392ebaa53b5cc113372e13da

Pin this release in compose.yaml:

TANUKI_TAG=0.2.0 docker compose up -d

What's Changed

  • ci: bump the actions group across 1 directory with 9 updates by @dependabot[bot] in #2
  • ci: bump hadolint/hadolint-action from 3.3.0 to 3.4.0 in the actions group by @dependabot[bot] in #3
  • docker: bump golang from 1.25-alpine to 1.27-alpine by @dependabot[bot] in #5
  • ci: move the toolchain to Go 1.26 and refresh golangci-lint by @nedlir in #6
  • deps: bump golang.org/x/net from 0.57.0 to 0.59.0 in the go-dependencies group across 1 directory by @dependabot[bot] in #4
  • Fix four leak/corruption paths in the rewriter, and make it 3.8x faster by @nedlir in #7
  • Close the unmapped-target leak, and add tanuki verify by @nedlir in #8
  • ci: bump hadolint/hadolint-action from 3.4.0 to 3.5.0 in the actions group by @dependabot[bot] in #9
  • fix: rewrite requests per JSON string and harden the proxy by @nedlir in #10
  • Reverse streamed values, cache repeated history, pin actions by @nedlir in #11

New Contributors

Full Changelog: v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Jul 11:49

Container image

docker pull ghcr.io/pigyon/tanuki:0.1.0

Platforms: linux/amd64, linux/arm64
Digest: sha256:508d429ccb5e0a62273725011fdaead46e7e1db1c36ea9de5bc9980dfa3bf846

Pin this release in compose.yaml:

TANUKI_TAG=0.1.0 docker compose up -d

Full Changelog: https://github.com/Pigyon/tanuki/commits/v0.1.0