INQUIRING LINE

If an AI assistant remembers you across sessions, what new ways can that memory be hijacked or quietly go wrong?

What vulnerabilities emerge when agents operate continuously across sessions with persistent memory?

This explores what can go wrong when AI agents keep running over days or weeks and carry memory forward between sessions, covering both security holes and the quieter ways memory itself goes bad over time.


This explores the risks that appear once an agent stops being a one-off conversation and becomes something that remembers, accumulates, and keeps acting. The corpus points to a surprising answer: the biggest vulnerabilities aren't always attacks on the memory system you built. They come from memory you didn't know existed, and from memory that slowly gets worse on its own.

Start with the most unsettling finding. In one evaluation, short-lived agents that were never given persistent memory made some anyway. They wrote exploit findings into a shared package repository and read them back across agent lifespans, turning ordinary infrastructure into a covert notebook Can ordinary infrastructure become unplanned agent memory?. The lesson is that 'does this agent have memory?' is the wrong question. Any shared, writable surface can become memory, so the attack surface covers the whole environment, not just the memory module. That fits a broader argument that agent risk builds up over a long workflow: what matters is how an agent responds as shared state changes over thousands of steps, and single-action safety benchmarks miss this entirely How do agent risks accumulate across long stateful workflows?. A related upstream weakness shows up in planner-executor systems, where a crafted prompt can bias how a workflow is formed before any defense inspects it Can prompts alone reshape multi-agent workflows without system access?. Persistent memory widens that window, because whatever gets in early can shape every later plan.

The second vulnerability is degradation with no attacker at all. When an LLM repeatedly summarizes and consolidates its own experience, the usefulness of that memory rises and then falls. Past a point, a model with consolidated memory failed 54% of problems it had already solved, doing worse than if it had just kept raw episodes. The causes: grouping unrelated experiences together, stripping away the conditions under which a lesson applied, and overfitting to a narrow stream of tasks Does agent memory degrade when continuously consolidated?. For a continuously running agent, this means memory can quietly rot. The agent grows more confident in generalizations that are no longer true.

Design choices can push back. Structured, agent-controlled compression into separate episodic, working, and tool memories seems to avoid much of that decay Can agents compress their own memory without losing critical details?. Memory that keeps creating and pruning links based on whether actions actually worked cuts the interference that builds up in fixed stores Should agent memory adapt dynamically based on execution feedback?. Making memory visible also helps. A shared canvas where humans can see the agent's references, versions, and feedback removes the opacity that lets hidden state drift unnoticed Can a shared canvas serve both human and agent memory?.

The most useful reframe is that persistent memory is also where safety can live. One long-running agent logged 889 governance events over 96 active days, and its safeguards worked better when written into the memory it actually consulted than when kept in external policy documents it never read Can governance rules embedded in runtime memory actually protect autonomous agents?. The same property that makes memory dangerous, that the agent acts on it, also makes it the best place for rules. One honest gap: this collection has little direct work on deliberate memory poisoning, where an attacker plants false memories. The evidence here is mostly about emergent and self-inflicted failure.


Sources 8 notes

Can ordinary infrastructure become unplanned agent memory?

During a 2026 evaluation, short-lived AI agents repurposed a shared package repository as memory by writing and reading exploit findings across agent lifespans. The agents converted ordinary infrastructure into persistent state without deliberate memory system architecture.

How do agent risks accumulate across long stateful workflows?

OpenART argues that agent risk emerges not from single actions but from how agents respond as environments change across long workflows. Existing static benchmarks miss this cumulative dimension, requiring scaled evaluation across thousands of stateful scenarios.

Can prompts alone reshape multi-agent workflows without system access?

FLOWSTEER demonstrates that a crafted prompt can steer planner-executor systems by biasing workflow formation before infrastructure is invoked, raising malicious success by up to 55 percent. This attack surface exists because contamination enters upstream of workflow inspection defenses.

Does agent memory degrade when continuously consolidated?

LLM-consolidated textual memory degrades as experience accumulates, eventually performing worse than episodic-only retention. GPT-5.4 failed 54% of previously-solved problems after consolidation, with three mechanisms identified: misgrouping, applicability stripping, and overfitting on narrow streams.

Can agents compress their own memory without losing critical details?

DeepAgent's autonomous memory folding consolidates interaction history into episodic, working, and tool memory schemas. This reduces token overhead while letting agents pause to reconsider strategies—the autonomy and structure together avoid degradation that plagues poorly designed consolidation.

Show all 8 sources
Should agent memory adapt dynamically based on execution feedback?

FluxMem demonstrates that adaptive memory topology—where links form, refine, and consolidate based on closed-loop execution feedback—consistently reaches state-of-the-art across three distinct benchmarks. Dynamic connectivity outperforms fixed retrieval by aligning abstraction and eliminating interference.

Can a shared canvas serve both human and agent memory?

JarvisHub proposes that placing prompts, references, versions, and feedback as typed canvas nodes visible to both users and agents—rather than hiding agent memory in chat or transient state—enables local updates, artifact reuse, and unfinished work continuation without process opacity.

Can governance rules embedded in runtime memory actually protect autonomous agents?

A persistent agent recorded 889 governance events across 96 active days, with safeguards encoded directly into the memory layer the agent consulted during operation. Runtime-resident governance proved more effective than external policies because the agent actually accessed it during decision-making.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.