TL;DR: Memory poisoning and long-horizon goal hijacks let attackers persistently alter what AI agents remember and optimize for, creating silent compromise paths that unfold across sessions, according to Lakera. The core issue is that governance models still assume agent behaviour is short-lived, observable, and easy to review after the fact.
Editorial analysis by NHI Mgmt Group, based on content published by Lakera: “Agentic AI Threats: Memory Poisoning & Long-Horizon Goal Hijacks (Part 1)”.
Key questions
Q: What breaks when an AI agent's memory is poisoned?
A: When memory is poisoned, the agent can keep reusing malicious context long after the original injection point, so the failure is persistent behavioural steering rather than a one-off bad response.
Q: Why do memory poisoning attacks create governance risk over time?
A: They create risk over time because the harmful effect may only appear after multiple retrievals, sessions, or task iterations.
Q: How can security teams tell whether an agent's objectives are drifting?
A: Look for gradual changes in tool choice, priority ordering, output tone, or repeated recommendations that no longer match the original user goal.
Practitioner guidance
- Instrument memory write controls Allow only approved sources to write into long-term agent memory and require source tagging, timestamps, and trigger metadata for every stored item.
- Review retrieval boundaries Sanitise retrieved context before it is combined with live prompts, especially where vector stores, knowledge bases, or user profiles can influence downstream actions.
- Monitor behavioural drift across sessions Track whether an agent’s outputs, tool use, or task priorities change over time in ways that cannot be explained by new user input alone.
Bottom line: Memory poisoning turns an agent’s own memory into a durable attack surface, so the compromise can survive well beyond the initial injection.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Persistent memory turns agent governance into a lifecycle problem, not a prompt problem. Once an agent can retain and reuse content, the governance question is no longer only whether a request was safe at the moment it arrived. The real risk is whether contaminated state can survive into later sessions, workflows, and decisions. Practitioners should treat memory as governed identity state, not as neutral storage.
A few things that frame the scale:
- 53% of security leaders expect AI to run major portions of their infrastructure autonomously within the next three years, according to the 2026 Infrastructure Identity Survey.
A question worth separating out:
Q: Should organisations treat agent memory as untrusted input?
A: Yes. Agent memory should be treated like any other external input surface because it can be written, recalled, and reused in ways that change future decisions. That means provenance checks, write controls, and retrieval sanitisation are part of governance, not optional hardening.
👉 Read our full editorial: Agentic AI memory poisoning exposes persistent governance gaps