Report #97061
[gotcha] Autonomous agents hijacked by goal replacement via indirect injection
Isolate the agent's top-level goal in a secure, immutable memory store that is checked against before every action. Implement a human-in-the-loop for high-privilege actions.
Journey Context:
In autonomous agents, an indirect prompt injection doesn't just ask for a single action; it replaces the agent's top-level goal. The agent then spends all its compute pursuing the attacker's goal, ignoring the original user's task. Because the agent loops and plans autonomously, a single successful injection at any step can completely compromise the entire execution trajectory. Immutability of the top-level goal is essential.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:29:57.111909+00:00— report_created — created