MemMorph Research Reveals Tool Hijacking Vulnerabilities in LLM Agents via Memory Poisoning

A new research paper titled MemMorph: Tool Hijacking in LLM Agents via Memory Poisoning highlights a critical vulnerability in how large language model agents utilize external tools. While previous security research focused primarily on prompt injection and data leakage, MemMorph demonstrates that an agent's memory or dialogue history can be intentionally corrupted. This poisoning causes the agent to select incorrect tools or execute unauthorized actions without direct command interference.
Primary source
Open arXiv ↗This article summarizes the source. Check the original for full details and conditions.
Comparison
| Aspect | Before / Alternative | After / This |
|---|---|---|
| Attack Vector | Direct prompt injection into current input | Long-term memory or dialogue history contamination |
| Impact Scope | Immediate session-based command hijacking | Persistent manipulation of tool selection logic |
| Detection Difficulty | Relatively high via input filtering and sanitization | Low due to the subtle influence of historical context |
| Primary Target | The immediate model response generation | The agent's internal tool-calling decision mechanism |
Action Checklist
- Implement strict validation for tool-calling arguments Ensure parameters align with expected schemas regardless of historical context.
- Sanitize and monitor long-term memory storage Regularly audit dialogue histories for anomalous or repetitive patterns.
- Enforce human-in-the-loop for high-privilege actions Require manual approval for tools that handle sensitive data or infrastructure.
- Apply context-window filtering techniques Use secondary models to summarize or verify the integrity of past interactions.