What is taint-guard?
taint-guard is a Claude Code mod by dortort that remember which sensitive or untrusted sources entered a session and refuse risky tool calls once they have. It is listed under Security and has 4 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | dortort |
| Repository | dortort/claude-plugins |
| Popularity | 4 GitHub stars |
| Category | Security |
| Security | Review before installing (60/100) |
| Rank | #1,513 of 9,397 Claude Code mods; #181 in Security |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 12 events |
| Sees | classic hooks, compaction, every prompt, every tool call |
| Draws on | AbovePrompt |
Is taint-guard safe to install?
taint-guard scores 60/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.keys | keeps its own state |
$.store.set | keeps its own state |
$.ui.ask | draws interface |
$.ui.log | draws interface |
$.ui.resolve | draws interface |
How do I install taint-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/dortort/claude-plugins claude plugin validate ./claude-plugins/plugins/taint-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/dortort/claude-plugins && claude --plugin-dir ./claude-plugins/plugins/taint-guard
Or ask Claude to set it up
Paste this into Claude Code and it installs taint-guard for you:
Install the "taint-guard" Claude Code mod from https://github.com/dortort/claude-plugins/tree/main/plugins/taint-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from dortort/claude-plugins
This repository has 2 Claude Code mods on MCPMods.
- artifact-callbacks: Turn clicks on HTML pages Claude writes into follow-up prompts in the running session, through a loopback-only listener (High risk)