Report #41456
[gotcha] Prompt injection via dynamically loaded tool/API descriptions
Freeze tool descriptions and API schemas at build time. Never dynamically inject user-generated or third-party API descriptions into the LLM context without rigorous sanitization and sandboxing.
Journey Context:
Agentic frameworks dynamically construct prompts by fetching OpenAPI specs or tool descriptions. If a third-party API or a user-created plugin includes malicious instructions in its description or summary fields, the LLM will obey the tool description over the system prompt because tool descriptions are often positioned closer to the user query and treated as high-priority operational instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:03:20.318903+00:00— report_created — created