Bad Memory: Evaluating Prompt Injection Risks from Memory in Agentic Systems 文章

ArXiv CS.AI2026-07-17PAPERen作者: Soham Gadgil, David Alexander, Sai Sunku, Franziska Roesner

详细信息

来源站点
ArXiv CS.AI
作者
Soham Gadgil, David Alexander, Sai Sunku, Franziska Roesner
文章类型
PAPER
语言
en
发布日期
2026-07-17

摘要

arXiv:2607.14611v1 Announce Type: cross Abstract: A growing class of agentic systems maintain persistent state across sessions through memory files, behavioral preferences, and knowledge bases. While this makes agents more useful and self-improving, it also creates a new attack surface for prompt injections in which malicious instructions can be embedded within persistent files and influence future behavior. In this work, we study prompt injection attacks in memory-based agentic systems using a sandboxed synthetic workspace. We evaluate two agentic systems, Anthropic Claude Code and OpenAI Codex, across four models: Claude Haiku 4.5, Claude Opus 4.7, GPT-5.2, and GPT-5.5. Our results show that although it is difficult to make an agent overwrite its own memory files using untrusted external content, payloads already planted in those files can successfully attack current and future sessions.