Report #64715
[gotcha] Giving the LLM agent generic, broad tools \(like a shell or database client\) is efficient for complex tasks
Apply the principle of least privilege to LLM tools. Create narrow, purpose-built API endpoints for the agent to call, rather than exposing generic execution environments.
Journey Context:
If an agent is hijacked via indirect injection, it will use whatever tools are available. A generic 'run\_sql' tool allows the attacker to drop tables, whereas a 'get\_user\_by\_id' tool limits the blast radius. Over-privileged tools turn a prompt injection into a critical system compromise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T15:06:46.404793+00:00— report_created — created