News
AI Agents' Memory: A New Security Flaw for Hackers to Exploit
Source: unit42.paloaltonetworks.com
Published on October 10, 2025
Updated on October 10, 2025

AI Agents' Memory: A New Security Flaw for Hackers to Exploit
Researchers have uncovered a concerning security vulnerability in AI agents, where hackers can exploit their long-term memory through a technique known as indirect prompt injection. This flaw allows malicious instructions to be planted, potentially leading to data theft and unauthorized actions without the user's knowledge.
The vulnerability was demonstrated using Amazon Bedrock Agents, where a travel assistant chatbot was manipulated to store harmful instructions in its memory. These instructions, once embedded, could exfiltrate a user's conversation history or perform other malicious tasks during future interactions.
How the Attack Works
The attack begins when a user is tricked into submitting a malicious URL to the AI agent. The URL directs the agent to a webpage containing hidden prompt injection payloads. These payloads manipulate the agent's session summary, inserting malicious instructions that persist in the agent's memory.
The injected instructions are designed to be invisible to the user but are executed silently during future sessions. This allows the attacker to exfiltrate user data or manipulate the agent's behavior without detection.
Defense and Mitigation
To mitigate this risk, developers are advised to implement a layered security approach. Solutions like Amazon Bedrock Guardrails and Prisma AIRS can help detect and block prompt attacks in real time. Additionally, URL filtering can prevent access to malicious domains, reducing the risk of memory manipulation.
AWS has stated that the demonstrated attack can be prevented by enabling Bedrock Agent’s built-in protections, emphasizing the importance of proactive security measures in AI development.
Broader Implications
This vulnerability highlights the broader security challenges associated with AI agents that possess long-term memory. As these agents become more integrated into daily life, ensuring their security will be critical to protecting user data and privacy.