paper-with-me

홈 › Papers

A Practical Memory Injection Attack against LLM Agents

2025-03-05 · Shen Dong, Shaocheng Xu, Pengfei He, Yige Li, Jiliang Tang, Tianming Liu, Hui Liu, Zhen Xiang

Agents based on large language models (LLMs) have demonstrated strong capabilities in a wide range of complex, real-world applications. However, LLM agents with a compromised memory bank may easily produce harmful outputs when the past records retrieved for demonstration are malicious. In this paper, we propose a novel Memory INJection Attack, MINJA, that enables the injection of malicious records into the memory bank by only interacting with the agent via queries and output observations. These malicious records are designed to elicit a sequence of malicious reasoning steps leading to undesirable agent actions when executing the victim user's query. Specifically, we introduce a sequence of bridging steps to link the victim query to the malicious reasoning steps. During the injection of the malicious record, we propose an indication prompt to guide the agent to autonomously generate our designed bridging steps. We also propose a progressive shortening strategy that gradually removes the indication prompt, such that the malicious record will be easily retrieved when processing the victim query comes after. Our extensive experiments across diverse agents demonstrate the effectiveness of MINJA in compromising agent memory. With minimal requirements for execution, MINJA enables any user to influence agent memory, highlighting practical risks of LLM agents.

📄 PDF Abstract BibTeX arXiv:2503.03704

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

WARD: Adversarially Robust Defense of Web Agents Against Prompt Injections

2026-05-14 · Tri Cao, Yulin Chen, Hieu Cao, Yibo Li 외 arxiv

Web agents can autonomously complete online tasks by interacting with websites, but their exposure to open web environments makes them vulnerable to prompt injection attacks embedded in HTML content or visual interfaces.…

Adversarial Attack

BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agents

2025-11-25 · Kaiyuan Zhang, Mark Tenenholtz, Kyle Polley, Jerry Ma 외 arxiv

The integration of artificial intelligence (AI) agents into web browsers introduces security challenges that go beyond traditional web application threat models. Prior work has identified prompt injection as a new attack…

From Untrusted Input to Trusted Memory: A Systematic Study of Memory Poisoning Attacks in LLM Agents

2026-06-03 · Pritam Dash, Tongyu Ge, Aditi Jain, Tanmay Shah 외 arxiv

Memory is a core component of AI agents, enabling them to accumulate knowledge across interactions and improve performance. However, persistent memory introduces the risk of memory poisoning, where a single adversarial m…

When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents

2026-07-06 · George Torres, Sharad Shrestha, Satyajayant Misra arxiv

Personal AI agents powered by large language models can reason and act using available tools to access emails, manage calendars, and push code to remote repositories, all with minimal oversight. When augmented with long-…

When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents

2026-07-06 · Yechao Zhang, Shiqian Zhao, Jiawen Zhang, Jie Zhang 외 arxiv

Persistent personal agents combine long-term memory with access to users' external environments, enabling personalized foreground assistance and proactive background execution. This integration also creates a new path to…

Reinforcement Learning