For most of the last two years, using an AI chatbot meant starting from zero every time: no memory of what you'd told it last week, no sense of which project you were working on, no accumulated context at all. That's changed quickly and quietly. ChatGPT and Claude both now carry memory across sessions on many plans, building up a running sense of who you are, what you're working on, and how you like answers framed, without you having to re-explain it each time. Coding agents have gone further still: Anthropic's Claude Code keeps its own persistent memory files, separate from the chat-level memory, that store standing instructions about how a given project should be built, tested, and deployed. All of this is a genuine convenience improvement, and it's spreading into business use faster than most companies have thought about what it actually means to have a tool that remembers.
What memory actually changes is subtle but consequential: something written into it in one session can resurface, treated as established fact, in a completely unrelated session much later. That's exactly the point when what gets written is the user's own stated preference or project detail. It becomes a different kind of problem the moment something other than the user's intentional input finds its way into that store, because the tool has no reliable way to distinguish a memory it should trust from one it shouldn't. A model deciding what to do next doesn't re-derive that decision from scratch each time memory is involved; it reads what it has already recorded as settled, and acts on it.
Cisco's own AI security team turned that theoretical concern into a documented one this spring. In a blog post describing a real compromise chain against Claude Code, Cisco researchers showed that the persistent memory files the tool keeps, both in a project folder and in the user's home directory, can be rewritten to contain attacker-controlled instructions. Their proof of concept ran through an entirely ordinary-looking step: a user clones a repository, asks Claude Code to set it up, and approves an npm install the way they would on any other day. The malicious payload executes during that approved install, rewrites the memory files, and, Cisco reported, also modifies the user's shell configuration and Claude Code's own hook settings so the compromise persists even if the user later turns automatic memory off. Dark Reading's coverage, published April 23, 2026, dates Cisco's hijack to March of this year, and researchers at other organizations have since described comparable memory-poisoning behavior against other coding agents and models — this is a pattern across the category, not a single vendor's one-off flaw.
The part of this worth sitting with isn't the specific exploit, which Anthropic has had the chance to address since Cisco's disclosure. It's what the exploit reveals about the shape of the risk going forward. A conventional prompt-injection attack, the kind already showing up in AI browsers that read a web page, does its damage in the session where it happens and then it's over. A successful attack against memory doesn't end when the session ends. It leaves a standing instruction sitting in a file the agent will read again, trust again, and act on again, in a future session that has nothing to do with the one where the compromise occurred — which means the normal instinct to worry about "what happens during this task" misses the actual exposure, which is what gets left behind afterward.
Most businesses evaluating a memory-enabled assistant or coding agent haven't asked who else can write to that memory, because the question doesn't come up naturally. It doesn't take admin access or anything exotic — Cisco's example ran through a step a developer approves routinely, without a second thought, several times a week. Any business that has a developer running a coding agent against a cloned repository, or a team using a chat assistant to summarize documents and emails that could themselves contain hidden text, has effectively handed that tool a notebook it keeps reading from in every later session, without having asked who besides the intended user might get a line written into it.
The practical response doesn't require turning memory off, which would give up a real and growing convenience for a risk that's manageable with ordinary diligence. Find out, for every memory-enabled tool in use at your business, whether memory is on by default and who can review, scope, or disable it — Claude's Team and Enterprise workspaces and ChatGPT's admin tooling both offer some level of control here, and the specifics are worth confirming directly with the vendor rather than assumed from a blog post, since the details have been changing quickly. Periodically have someone actually look at what a tool says it remembers about your business, the same way you'd periodically review who has access to a shared drive, rather than assuming it only ever stored what a user meant to tell it. And treat any step where a coding agent sets up or runs something from a cloned repository as a moment worth a second look, specifically because that's the exact path Cisco's own researchers used — reviewing what a setup script actually does, not just whether the end result looks fine, is the cheapest control available against exactly this kind of attack.
None of this argues for holding back on AI tools that remember context across sessions, which is a real improvement over starting from nothing every time. It argues for treating that memory as part of the system worth securing, the same way a database or a shared drive is, rather than as background chat history nobody needs to check. The businesses that get caught out by this won't be the ones using memory-enabled AI assistants or coding agents. They'll be the ones who never asked what, exactly, their tool had quietly decided to remember, and found out only after something written into that memory months earlier started acting on its own.
- ai memory
- prompt injection
- coding agents
- data governance
- enterprise ai