22 memory-poisoning attacks on AI agents' shared memory, 2 got through

JeremyCMorgan · x · 2026-11-18

A developer ran 22 memory-poisoning attacks against the shared memory used by Claude Code, Codex, and Cursor; two got through. The interesting failures: when an agent rewrites outside content into its own ordinary note, source stamps don't catch it — self-poisoning remains hard to defend. The author built open-source Monomem, which stamps shared memories with where text came from (tool name taken from Claude Code, not the model) and keeps such text out of the next session's startup briefing; agents can't add or remove stamps. monomem check --attacks replays 26 attacks. Key insight: memory must track where text came from, not just who wrote it.

Original post →

More from coding & agent

coding & agent channel →