Skip to content

Releases

TaintTrail 0.5.1 — first public release

Choose a tag to compare

@SRIJAICJ24 SRIJAICJ24 released this 23 Nov 08:37

The first public release of TaintTrail: local runtime security for Claude Code and MCP agents. It tracks untrusted text through the agent's memory and across sessions, and stops that text when it tries to leave your machine.

Install

You need Python 3.11+ and pipx.

pipx install https://github.com/SRIJAICJ24/tainttrail/releases/download/v0.5.1/tainttrail-0.5.1-py3-none-any.whl
tainttrail setup

setup writes a config and starter policy to ~/.tainttrail and registers the Claude Code hooks, leaving any other tool's hooks alone. It also starts the daemon, makes it start at login, and checks that everything answers. It needs no Administrator rights.

It starts in observe mode: everything is logged, and only a short list is blocked:

  • reading ~/.ssh, ~/.aws or .env files;
  • real secrets leaving the machine;
  • an agent tampering with TaintTrail.

tainttrail uninstall reverses all of it and keeps your audit log.

To measure first without installing anything into Claude Code, run tainttrail replay --examples 10. To see the headline attack stopped, run tainttrail demo.

Highlights

  • Taint that survives memory and sessions. Text from web pages, curl output and browser pages is fingerprinted. A memory write derived from it is quarantined, and on recall in a later session the taint comes back. An email, POST, chat message or commit carrying that text is held or blocked.
  • Claude Code hooks and an MCP gateway, on Windows, macOS and Linux. CI runs Python 3.11–3.13 on all three.
  • Measured on real work. In a month in enforce mode on the author's machine, 0.5% of 4,777 tool calls were interrupted. Hook latency is about 7–10 ms p50 for typical calls (scripts/bench_hooks.py). The README covers what is not measured.
  • Fewer false alarms.
    • Deletes inside temp folders, or inside folders you trust, are logged instead of prompting. Trusted folders can be fixed paths or project-relative names like Screenshots.
    • Deletes are followed into bash -c "…", wsl.exe -e bash -c and PowerShell { } blocks.
  • Fixes in this release:
    • Every delete on a greedily matched Remove-Item … -Recurse line is checked. Before, only the first one was.
    • The hook installer matches only its own exact entries. It used to match by substring, so it could touch another tool's hook.

Renamed from AgentGuard

Up to 0.4.x this project was called AgentGuard. Several unrelated projects share that name, and two of them are Claude Code tools using the same command and home folder. Existing installs move over with tainttrail migrate. It copies only this project's files, verifies the audit chain and the quarantine ledger afterwards, and never touches other tools' files. See Upgrading from AgentGuard in the README.

Status

Alpha. It is used daily by its author and has not yet been used by anyone else, so please read Known limitations in the README. False-positive reports (see the issue template) and attack scenarios are very welcome. Report vulnerabilities privately through the Security tab.

Checksums (SHA-256)

781cdff3866fcc4072e8925784386eaaddb63b1da91c504272543cda5466fe26  tainttrail-0.5.1-py3-none-any.whl
fec0dcdce903f44537d0cf20eda7920720533d2176e6637fcc289ff6ac28635d  tainttrail-0.5.1.tar.gz