Unveiling Privacy Risks in LLM Agent Memory
Large Language Model (LLM) agents have become increasingly prevalent across various realworld applications.They enhance decisionmaking 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.
Authors
- Jiliang Tang (ORCID: https://orcid.org/0000-0001-7125-3898)
- Yue Xing (ORCID: https://orcid.org/0000-0001-7723-0048)
- Zhen Xiang (ORCID: https://orcid.org/0000-0002-4284-2041)
- Weiyi He (ORCID: https://orcid.org/0000-0001-7283-7377)
- Bo Wang (ORCID: https://orcid.org/0000-0001-9665-5973)
- Pengfei He
- Shenglai Zeng
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.acl-long.1227
- Citations
- 5
- Primary Topic
- Cloud Data Security Solutions
- Type
- article
- Field-Weighted Citation Impact
- 16.23
Funders
- National Science Foundation
- U.S. Department of Commerce
- Bill and Melinda Gates Foundation
- Michigan Department of Agriculture and Rural Development