M

Memory Poisoning

An attack on an AI agent's persistent memory — seeding false facts or instructions into its long-term store so the agent repeats them in future sessions, often after the attacker is gone.

What it is

Memory poisoning is the agent-era cousin of data poisoning. Where data poisoning corrupts what the model learns at training time, memory poisoning corrupts what the agent learns at runtime. An attacker has a single conversation in which they convince the agent of something false — "the customer always wants overnight shipping," "the refund cap was raised to $5,000," "ignore tickets containing the word 'urgent'." If the agent writes that to long-term memory, every future session inherits the lie. The attack is especially dangerous when memory is shared across users or agents on the same account, because one user's poisoning becomes everyone's truth.

Why it matters

Agent memory is one of the capabilities that makes agents feel useful, which is why teams are adding it quickly. But every memory write is a trust decision: you are saying "this fact is durable enough to influence future actions." Without scoping, validation, and audit, memory becomes a write-once attack surface that quietly degrades the agent for months. For shared organizational memory in particular, a single poisoned write can compromise an entire team's downstream decisions before anyone notices the agent's answers are wrong.

Key components

  • Single-session poisoning — one conversation plants a fact that persists
  • Cross-user contamination — memory shared between users carries the attack to others
  • Long-tail activation — poisoned memory only triggers on rare future inputs, evading immediate detection
  • Mitigation — scope, provenance, expiry, and review of memory writes

How it connects

In Agentforce, agents can store and retrieve facts across sessions using Data Cloud or custom memory objects in Salesforce — meaning a poisoned memory entry can silently shape case routing, quote generation, or customer responses long after the original conversation ends. Salesforce's agent trust controls and audit trail features are your first line of defense for reviewing what agents are actually writing to memory.

Good to know

Memory poisoning is hardest to catch because the agent behaves normally — it's just working from bad information. Treat unexplained shifts in agent behavior or outputs as a reason to audit recent memory writes, not just retrain the model.

Need Help Implementing This?

We specialize in putting AI and Agentforce to work for Salesforce customers. Let's talk about your use case.

Book Intro Call