AU-13: Outside content comes in without a guard
Area: Permissions · Severity: medium · Catalogue version 1.104.0
Why it matters
A fetched page or a tool result can hold hidden instructions, and without a hook before or after the call nothing checks what comes in.
Before (example)
Example: a web page says “ignore all previous instructions”, and the agent follows it.
How to fix it
Add a hook before and after the calls of these tools that checks the call and its result, or let the tool ask. In the tier premium, the guard of the reference package sets these hooks up.
After (example)
Before: "permissions": {"allow": ["WebFetch"]}
After: "permissions": {"allow": ["WebFetch"]}, "hooks": {"PreToolUse": [{"matcher": "WebFetch", "hooks": [{"type": "command", "command": ".claude/hooks/check-call.sh"}]}], "PostToolUse": [{"matcher": "WebFetch", "hooks": [{"type": "command", "command": ".claude/hooks/check-result.sh"}]}]}Check it yourself
Open the settings and check whether fetching pages, searching the web or using a whole tool server is allowed without asking, and whether any hook stands before or after those tool calls.