Control · C-027 · Security & Resilience

Agent memory controls

What an agent may write to persistent memory is restricted, validated and attributed, and stored memory can be inspected, corrected and cleared.

Control type
Preventive
Risks addressed
2
Audience
Practitioner
Frameworks
AML.M0031 · ASI06
Reviewed
2026-11-10

What it does

It protects the state an agent carries between sessions, so that one interaction cannot plant content that governs later ones, and so that corruption can be found and removed when it occurs. Engineering owns the control and the data owner approves what may be retained.

How to implement it

  • Define what kinds of content may be remembered; exclude instructions, credentials and security-relevant preferences.
  • Validate candidate memories before writing, and require confirmation for those that change behaviour.
  • Record the source, time and session of every entry.
  • Scope memory to the user or tenant it belongs to.
  • Provide a way to view, edit and delete entries, and to revert to an earlier state.
  • Expire entries that are not reconfirmed.

Evidence it operates

Design: a memory specification stating permitted content, scope and retention. Operation: sampled entries carry provenance and fall within permitted types; a test that asks the agent to remember an instruction to skip a control is refused; a user-level clear removes all entries for that user; logs show writes that validation blocked.

Where it fits

Designed with the agent and operated throughout its life. It works with input filtering and injection defence, which screens content before it can become a memory, and with tenant and session isolation.

Limits

Validation cannot reliably tell a false fact from a true one. The control narrows what can be stored and makes it traceable; it does not guarantee that stored content is correct. Retained memory is also personal data where it relates to a person, with the duties that follow.

Risks this mitigates

Primary mappings

Agent memory and context poisoning High
Restricts, validates and attributes what an agent may write to persistent memory. False or hostile content is written into an agent's persistent memory or shared context, so later sessions and other users inherit corrupted instructions or facts.

Supporting mappings

Cross-tenant and cross-session leakage High
Scopes persistent memory to the user it belongs to. Caches, memory, fine-tuned weights or shared context expose one user's or customer's data to another.

Framework and clause references

FrameworkClauseTitle
MITRE ATLASAML.M0031Memory Hardening The corresponding mitigation.
OWASP Top 10 for Agentic ApplicationsASI06Memory and Context Poisoning The risk this control answers.

Related terms

How to cite

Axiom Verity (2026). Agent memory controls. Reference Library, C-027. https://axiom-verity.com/controls/agent-memory-controls. Reviewed 2026-11-10.