Tool Chaining to Bypass Safety Controls
An AI agent that can call multiple tools can be manipulated into running a sequence of individually harmless operations that together produce a harmful result. This detection looks for that pattern, or for instructions that openly ask the agent to use tool chaining to get around safety checks.
How the attack works
An attacker crafts a request or prompt that breaks a malicious goal into several separate tool calls, each of which looks benign on its own, such as reading a file, then piping it somewhere, then executing a result. Safety checks that only look at each tool call individually approve every step because none of them looks dangerous alone. Once chained together in sequence, the steps produce an outcome the agent would have refused if asked directly, such as data exfiltration or arbitrary code execution. Some variants include instructions that explicitly tell the agent to use this chaining approach to bypass its own safety controls.
Netzilo detection
Netzilo can block this behaviour when it is observed.
- Signature ID
- e2a6d190-3f0b-4a7e-d2a1-6f9b4a1e0c83
- Severity
- High
Why it matters
An organization can lose the protection of its AI agent's safety checks entirely, letting the agent be steered into exfiltrating data, executing unauthorized code, or performing other actions its guardrails were meant to block.
What you can do
- →Evaluate agent actions and safety checks on the full sequence of tool calls, not just each call in isolation.
- →Restrict which tools can be chained together automatically without human review, especially combinations of file access, network access, and code execution.
- →Review logs for shell pipeline patterns and multi-tool sequences that combine read, transfer, and execute steps, and confirm they match known automation scripts.
- →Set a stricter approval flow for any agent-generated command that pipes output from one tool directly into another.
Known benign look-alikes
- Legitimate shell pipelines in authorized automation scripts
- Docker build commands using standard pipe patterns