Agent Shipped

Directory · Hooks

Lasso Claude Hooks (Prompt Injection Defender)

PostToolUse hook for Claude Code that scans tool outputs for indirect prompt injection patterns and warns Claude when found.

★ 273 stars · last updated 2026-01-08 · Free, open source · View on GitHub

Best for

Install

git clone https://github.com/lasso-security/claude-hooks.git
cd claude-hooks
./install.sh /path/to/your-project

Our take

Detection is regex-based via an editable patterns.yaml, so it is fast and transparent but can miss novel attacks or flag legitimate content. It warns rather than blocks, adding a notice to Claude's context while still passing the content through. Ships Python and TypeScript implementations plus a skill for interactive installation, from security vendor Lasso.

Similar hooks

Get the field guide

Join builders who use coding agents every day. Free, twice a week, unsubscribe in one click.

No spam. The CLAUDE.md starter pack comes in your confirmation email. Not seeing it? Check spam or Promotions.