UW study finds agent memory can keep prompt-injection payloads armed for the next session

rohanpaul_ai · x · 2026-07-26

A University of Washington paper studies prompt injection risks in agent memory files such as CLAUDE.md, AGENTS.md, and behavior notes. The key finding is that even when a model refuses a malicious instruction, it often leaves the malicious line in place for the next session.

The researchers ran sandboxed experiments across Claude Code and OpenAI Codex on four models, with multi-session probes over ten trials each. They found that memory persistence creates a new attack surface: an agent may block the attack in the current run but keep the payload armed for future sessions, including future runs by sub-agents or cheaper models.

The paper argues that persistent memory changes the threat model for prompt injection and that defenses should protect memory updates without removing useful adaptation.

Original post →

More from Safety

Safety channel →