Unveiling Privacy Risks in LLM Agent Memory

Bo Wang, Weiyi He, Pengfei He, Shenglai Zeng, Zhen Xiang, Yue Xing, Jiliang Tang

arXiv:2502.13172 · 2026-07-27 공개 · arXiv · PDF

llm-agents prompt-design black-box-attack agent-design memory-module privacy-risks memory-leakage mextra

Abstract

Large Language Model (LLM) agents have become increasingly prevalent across various real-world applications. They enhance decision-making by storing private user-agent interactions in the memory module for demonstrations, introducing new privacy risks for LLM agents. In this work, we systematically investigate the vulnerability of LLM agents to our proposed Memory EXTRaction Attack (MEXTRA) under a black-box setting. To extract private information from memory, we propose an effective attacking prompt design and an automated prompt generation method based on different levels of knowledge about the LLM agent. Experiments on two representative agents demonstrate the effectiveness of MEXTRA. Moreover, we explore key factors influencing memory leakage from both the agent designer's and the attacker's perspectives. Our findings highlight the urgent need for effective memory safeguards in LLM agent design and deployment.

한국어 요약

한 줄 요약

LLM 에이전트 메모리에서 개인 정보를 추출하는 MEXTRA 공격을 제안하고, 메모리 유출의 심각성을 실증적으로 밝힘.

핵심 기여도

핵심 아이디어

LLM 에이전트는 사용자-에이전트 상호작용을 메모리 모듈에 저장하여 의사결정을 지원하지만, 이는 새로운 개인정보 유출 위험을 초래한다. 기존 RAG 시스템의 데이터 유출 공격은 외부 데이터를 대상으로 하지만, 메모리 모듈의 취약성은 거의 연구되지 않았다. 본 연구는 메모리 모듈에 저장된 정보를 추출하는 MEXTRA 공격을 제안한다. 공격 프롬프트는 사용자의 이전 질의를 복구하도록 설계되며, 에이전트의 워크플로우에 맞는 출력 형식을 명시함으로써 유출을 유도한다. 공격자의 지식 수준(예: 유사도 함수)에 따라 프롬프트가 자동 생성되며, 이는 메모리 유출의 확률을 높인다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용

의료, 금융 등 민감한 정보를 다루는 LLM 에이전트 시스템에서 메모리 보호 기술 개발에 활용 가능. 공격 프롬프트 설계 방식은 보안 테스트 도구로도 활용될 수 있으며, 메모리 구성 요소 최적화를 위한 설계 지침 제공에 기여할 수 있음.