Trust your AI agents? New research shows ‘memory poisoning’ can dupe them into ‘remembering’ fake information – and it’s a huge security risk
Memory poisoning allows hidden text on a webpage to be treated as fact and used to make harmful decisions
Security experts have issued a warning over a new technique aimed at duping AI agents into producing false information.
Analysis from Forcepoint found a poisoned webpage or document can plant a fake vendor, support contact, or security rule into an agent's memory, with the fake data being surfaced as fact months later.
While normal prompt injection attacks come to an end when the session finishes, Forcepoint said memory poisoning allows attackers to inject misleading or malicious memory items into an assistant's persistent memory layer.
The aim here, according to researchers, is to ensure the agent retrieves and trusts these malicious items, which could be used in future attacks or to simply harm trust.
"Persistent memory poisoning is an emerging attack class against AI assistants and agentic systems that store long-term memory items, user preferences, task history or operational context across sessions," warned Forcepoint senior security researcher Syed Hassan Faizan.
"As AI agents become increasingly capable of storing and reusing long-term memory, the memory itself becomes a new target surface."
The material concerned could include a fake domain, support contact or vendor, fake internal procedures, security rules, and approval chains, or any preference that weakens security.
Sign up today and you will receive a free copy of our Future Focus 2026 report - the leading resource for IT decision-maker insight on priorities and investment areas in AI, security and more.
These can come from a number of sources - malicious or compromised web pages, shared documents, support tickets, email footers, Slack or Teams messages, PDFs with hidden text, or knowledge base articles.
"Indirect prompt injection is especially relevant here because the victim may never see the malicious instruction. The agent reads it while processing otherwise normal content," said Hassan Faizan.
Compromised agents
In a proof of concept detailing the attack method, Forcepoint highlighted an example in which a travel assistant with browser capabilities was poisoned.
Although it can't access the internet directly, a separate browser tool handles that on the assistant's behalf. Thereafter the assistant remembers user preferences and trusted booking instructions across sessions.
Here, an attacker can create a webpage designed to rank for a search - something like 'Emergency Travel Booking Advisory' that looks completely legitimate.
But when the AI agent visits it, it sees hidden additional text meant for the AI system, not a human reader. The enterprise browser tool downloads the full HTML - including the hidden text.
"Since large language models don't parse raw HTML well, a separate program extracts all the readable text, both visible and hidden, and hands the model plain text instead of markup. The model never sees the webpage itself," said Hassan Faizan.
The result is that the agent stores this text as a trusted, useful fact in its long-term memory. When asked for travel advice later, it retrieves the poisoned memory and recommends the fake provider inserted by the attacker.
How to tackle memory poisoning
Forcepoint said prevention will essentially rely on inspecting long-term memory before it's implanted into a trusted environment.
This can be done through memory risk scoring, a heuristic-based framework that assigns a risk score to each memory object based on multiple security signals.
High-risk memories can then be rejected, quarantined, flagged for user confirmation, or marked as untrusted.
"Securing AI memory should become a fundamental part of AI security architecture," said Hassan Faizan.
"Just as organizations inspect files, emails and network traffic before trusting them, AI systems must also evaluate the trustworthiness of their memory items before those memories influence decision-making."
FOLLOW US ON SOCIAL MEDIA
Follow ITPro on Google News and add us as a preferred source to keep tabs on all our latest news, analysis, views, and reviews.
You can also follow ITPro on LinkedIn, X, Facebook, and BlueSky.
Emma Woollacott is a freelance journalist writing for publications including the BBC, Private Eye, Forbes, Raconteur and specialist technology titles.
-
Swiss authorities urge calm amid fears over SharePoint credential leakNews The Federal Office for Information Technology and Telecommunication said that while accounts have been compromised, no sensitive data has been accessed
-
Microsoft has joined the growing list of companies cracking down on ‘tokenmaxxing’News The company is updating internal guidance to reduce rising costs
-
An ‘unprecedented cyber incident’: How OpenAI models breached Hugging Face – and why it could herald a ‘new phase of AI-powered cyber crime’News The incident should serve as a stark warning on the dangers of AI agents, according to cyber experts
-
Five Eyes agencies sound alarm over risky agentic AI deploymentsNews Security agencies have urged organizations to establish clear boundaries and guardrails for AI agents
-
Enterprises are adopting agents faster than they can secure and govern them – experts warn it’s a disaster waiting to happenNews Identity systems developed for human interaction fail to cope with the new demands
-
UK firms left in the dark over what workers are sharing with AINews Security teams can’t keep track of what workers are sharing with AI applications, regardless of whether they’re approved or unauthorized
-
'The goal for this year will be to automate all security processes': Google Cloud is betting on Wiz to usher in a new era of AI securityNews Wiz wants to deploy its agents for continuous penetration testing, and in Google it’s found a parent company that can achieve this vision at scale
-
AI is now a ‘standard part of the attacker toolkit’News Cyber attacks are increasing in scale, intensity, and velocity thanks to AI, and it’s forcing defenders to react faster than ever before
-
Agent identity governance can't keep up with adoption rates – and it’s creating a security nightmareNews Enterprises are leaving high-privilege keys unchanged for months or years at a time
-
Systems are deterministic, people are probabilistic – AI is both, and that's a headache for cyber teamsNews AI combines both the risks associated with IT systems and the people using them, creating headaches for practitioners