Part 7 · Agentic AI Security
ASI02: Tool Misuse and Exploitation
An agent can cause serious harm using tools it is fully allowed to use.
What it is
Agents can misuse legitimate tools because of prompt injection, misalignment, unsafe delegation, or ambiguous instructions. The result can be data exfiltration, manipulated tool output, or a hijacked workflow.
The agent stays within its granted privileges. The problem lies in how it chooses and combines its tools.
How the attack unfolds
Each tool is acceptable alone. Chained together, they form an exfiltration path.
Common patterns
- Over-privileged tools that do more than the task needs.
- Unsafe chaining of individually harmless tools.
- Tool name confusion between similarly named tools.
- Parameter pollution that alters a tool's arguments.
- Loops that drive up cost or repeat a harmful action.
Defenses
- Define least-agency profiles. Set scope, rate limits, and allowed destinations for each tool.
- Validate arguments. Check every call against a strict schema.
- Authorize each action. Evaluate policy at execution time.
- Sandbox execution. Restrict network access and side effects.
- Add approval for risky chains. Review sensitive combinations before they run.
- Log tool use. Record each call and detect unusual sequences.
Common misconception
Common belief
"Tool misuse requires a software vulnerability."
In practice
The tools may work exactly as designed. The misuse comes from the agent's decisions.
Key takeaways
- Agents can cause harm with tools they are allowed to use.
- Combinations of tools can create new risks.
- Define policy for each tool and destination.