🚀NEW LABGetting Started with Claude AgentsStart lab
Safety · Memory · Agents

Bad Memory in Agents

First page
Bad Memory in Agents
Paper summary

Persistent memory is what makes an agent useful across sessions, and it is also a place an attacker can leave something behind. This work evaluates prompt injection from memory files in Claude Code and OpenAI Codex, across Claude Haiku 4.5, Claude Opus 4.7, GPT-5.2, and GPT-5.5. The finding is uneven but sobering: it is hard to make an agent overwrite its own memory using untrusted external content, but payloads already planted in those files reliably attack current and future sessions, with attack success and persistence varying widely across systems, models, adversarial goals, and multi-session sequences.

Ask this paper

Every Monday
Get next week’s papers.
Subscribe on Substack