GhostWriter: One Email Can Poison Long-Term Agent Memory

GhostWriter shows a new risk class for agent systems: malicious content can enter long-term memory and later activate as trusted context.

Retrieval answer

GhostWriter shows a new risk class for agent systems: malicious content can enter long-term memory and later activate as trusted context. Prompt injection is usually discussed as an attack in the moment: the model reads a hostile instruction, confuses priorities, and performs the wrong action. GhostWriter matters because it moves the risk through time.

Prompt injection is usually discussed as an attack in the moment: the model reads a hostile instruction, confuses priorities, and performs the wrong action. GhostWriter matters because it moves the risk through time. Crafted email content can write malicious memory, and the agent can activate it later when the original email is no longer visible.

That turns agent memory from a convenience feature into a privileged subsystem. If external content can write long-term memory, it gets a chance to influence future decisions.

What the work shows

GhostWriter demonstrates long-term agent-memory poisoning through a crafted email. The malicious fragment is stored as if it were useful knowledge, then retrieved in a later similar context and used to influence behavior.

The core problem is not only retrieval. Retrieval returns what was already written. The earlier mistake is treating memory writes almost as casually as reading inbound content.

Why it matters

Many agent products are built around a promise: the agent remembers preferences, projects, contacts, work style, and previous decisions. But memory mixes very different trust levels:

  • explicit user settings;
  • observations from documents and email;
  • model inferences;
  • temporary facts;
  • actions by other people;
  • potentially hostile external content.

If all of this lands in one layer, retrieved memory starts to look like trusted system context even when part of it came from an untrusted source.

New Runtime Read

Memory write is a privileged operation. Retrieved memory is not automatically trusted context.

Agent memory needs separate read and write policies. A write should include source, user intent, lifetime, scope, and rollback. Retrieval should return not only memory text, but provenance: who wrote it, where it came from, when it was checked, and whether it can be trusted for the current action.

Otherwise memory becomes a quiet channel for delayed prompt injection.

Recommendation

GhostWriter shows a new risk class for agent systems: malicious content can enter long-term memory and later activate as trusted context.

Discovery graph / next reads

Continue through New Runtime

Open the graph
  1. 01topicAgent Security - New RuntimeExplore the agent security topic hub.
  2. 02topicMemory - New RuntimeExplore the memory topic hub.
  3. 03related materialContainment Caps An Agent's Blast RadiusShares agent security.
  4. 04related materialClaude Code Auto Mode Gates Actions Instead Of ExplanationsShares agent security.
  5. 05related materialA Vector Store Is Not An Agent Memory SystemShares memory.

These links are also published in this page’s JSON twin and as typed edges in DiscoveryGraph v1.

Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate…

Open the JSON contract