Memory as an Attack Surface in LLM Agents: A Study on Multiple-Choice Question Answering

Shahnewaz Karim Sakib, Anindya Bijoy Das
6/27/2026
cs.AIcs.ET

No confident code implementation found for this paper.

Abstract

AI agents extend conventional large language model (LLM) applications by integrating language understanding with task execution, external tool use, and memory mechanisms. While memory allows agents to retain prior interactions and provide more personalized and context-aware responses, it also introduces a new vulnerability: information stored in memory can influence future outputs even when the current query is clean.

Show full abstract

In this paper, we investigate memory manipulation in LLM-based agents for multiple-choice question answering. We first design and implement an LLM-based AI agent with an external memory component that stores and retrieves task-relevant information. We then introduce basic memory manipulation scenarios in which misleading or corrupted memories are inserted into the agent before it answers multiple-choice questions. Using a controlled experimental setup, we compare the agent's performance before and after memory manipulation and measure changes in answer accuracy, attack success rate, and selection of manipulated options. Our results show that even simple memory manipulations can noticeably affect the agent's final answers, causing it to select incorrect options despite receiving clean and well-formed questions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sakib2026memory,
  title  = {Memory as an Attack Surface in LLM Agents: A Study on Multiple-Choice Question Answering},
  author = {Shahnewaz Karim Sakib and Anindya Bijoy Das},
  year   = {2026},
  eprint = {2606.29030},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.29030v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.29030.svg)](https://codeofpaper.com/paper/2606.29030)

Discussion