Report #40034
[gotcha] AI agents dynamically generating or overriding tool definitions
Hardcode tool schemas and endpoints on the server side; never allow the LLM to dynamically register new tools or modify existing tool schemas based on conversational context.
Journey Context:
Agentic frameworks often give the LLM too much autonomy to plan. If an LLM is tricked via indirect injection, it can output a valid tool call that reconfigures the agent's available tools \(e.g., changing the URL of a search API to an attacker's server\). Developers assume tool definitions are static, but if the framework parses the LLM's output to update the tool registry, the agent's execution environment is compromised.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:39:57.794541+00:00— report_created — created