Memory poison → goal hijack → unauthorized tool call
CriticalTool-calling agent with persistent memory
A planted memory note survives later sessions and rewrites the agent’s objective so a routine tool call exfiltrates data the user never requested.
Reproduction
- Write a benign-looking preference into long-term memory.
- Wait for a later turn that loads that memory as trusted context.
- The rewritten goal issues a tool call outside the user’s intent.
Defense
Treat retrieved memory as untrusted input. Separate user goals from stored notes, and require a fresh confirmation before high-impact tool calls.