Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By StackOneHQ Verified Orgv3.2.1MITIn 1 marketplace
Prompt-injection and jailbreak detection for tool results via on-device ML classifier. Installs as a PostToolUse hook and flags risky content to Claude.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
On-device prompt-injection and jailbreak detection for Claude Code. Runs as a PostToolUse hook, scans every tool result with a local ML classifier, and quietly cues Claude to review anything risky before acting on it.
No telemetry, no cloud dependency, and no network egress during scanning. The classifier runs entirely on your machine. (First-run install fetches the ML dependencies from npm; subsequent scans are fully offline.)
Links · Built into StackOne, learn more · Defender in the StackOne docs · @stackone/defender on npm (the underlying library this plugin wraps)
LLM agents act on whatever lands in their context window. A malicious payload tucked into a fetched webpage, a poisoned issue comment, or a doctored support ticket can talk the agent into running commands the user never asked for. This class of attack is called indirect prompt injection, and it bypasses any defense that only watches user input. Defender is built into the StackOne platform; for product background and benchmarks, see StackOne Prompt Injection Guard.
Defender sits in the agent loop and scans tool outputs (the path most injection payloads ride in on) using an on-device multi-head ML classifier trained on real attack and benign-content data. When the classifier flags something, Defender doesn't block the call or interrupt you; it injects a one-line hint into Claude's next turn so the model can decide.
Requires Node ≥ 22.
1. Add the StackOne marketplace to Claude Code. This makes all StackOne plugins discoverable in /plugin install.
/plugin marketplace add stackonehq/agent-plugins
2. Install the Defender plugin. This registers the PostToolUse hook and the bundled skill.
/plugin install stackone-defender@stackone-agent-plugins
3. Trigger the first run. Use any tool that returns tool output (e.g. Read a file, or WebFetch any URL). The hook self-installs its ML dependencies (@stackone/defender, onnxruntime-node, @huggingface/transformers, fasttext.wasm) into the plugin's own node_modules on this first call. Expect a one-time 5–10 second pause; subsequent calls reuse a persistent daemon over ~/.claude/defender.sock and complete in low milliseconds.
That's it. There's no API key, no config file to edit, and no account to create. Defender is active from the next tool call onward.
The PostToolUse hook is wired to fire on:
Bash | Read | WebFetch | WebSearch | Monitor | ReadMcpResourceTool | mcp__.*
That covers the highest-risk surfaces: shell output, files Claude reads, fetched web content, search results, log streams, and the full universe of MCP tool responses. Only very tiny payloads (under ~32 bytes, i.e. the JSON wrapper around a sub-10-character string) are skipped to save an IPC round-trip.
flowchart LR
T[Tool result<br/>Bash · Read · WebFetch · …] --> D[Defender<br/>local ML scan]
D -->|flagged| C[Claude reviews<br/>before next action]
D -->|benign| P[silent pass]
skills/stackone-defender/SKILL.md) is loaded into Claude's context and governs how the model reacts to flags. Default behavior: silent review on suspected false positives, refuse-and-tell-user on confirmed attacks, no flag-related noise otherwise.In day-to-day use, you mostly don't experience Defender at all. It runs in the background; flags are private cues to Claude. The asymmetry is intentional:
The previous "notify on every flag" behavior generated noise on legitimate documentation, code, and meta-discussion of attacks. The current behavior trains Claude to use Defender's signal for its own precision check rather than dumping the recall problem on you.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub stackonehq/agent-plugins --plugin stackone-defenderPlugins from other owners that cover similar ground