# MemPot: Defending Against Memory Extraction Attack with Optimized Honeypots

Source: [MemPot: Defending Against Memory Extraction Attack with Optimized Honeypots](<https://www.sota2.com/research/paper/698abb7ac97a0b3e3b5ddeed>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-02-11T05:00:04.179Z

Authors: Yuhao Wang, Shengfang Zhai, Guanghao Jin, Yinpeng Dong, Linyi Yang, Jiaheng Zhang

Published: 2026-02-07T12:31:44.000Z

## Abstract

Large Language Model (LLM)-based agents employ external and internal memory systems to handle complex, goal-oriented tasks, yet this exposes them to severe extraction attacks, and effective defenses remain lacking. In this paper, we propose MemPot, the first theoretically verified defense framework against memory extraction attacks by injecting optimized honeypots into the memory. Through a two-stage optimization process, MemPot generates trap documents that maximize the retrieval probability for attackers while remaining inconspicuous to benign users. We model the detection process as Wald's Sequential Probability Ratio Test (SPRT) and theoretically prove that MemPot achieves a lower average number of sampling rounds compared to optimal static detectors. Empirically, MemPot significantly outperforms state-of-the-art baselines, achieving a 50% improvement in detection AUROC and an 80% increase in True Positive Rate under low False Positive Rate constraints. Furthermore, our experiments confirm that MemPot incurs zero additional online inference latency and preserves the agent's utility on standard tasks, verifying its superiority in safety, harmlessness, and efficiency.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Internal memory extraction attack detection on EHRAgent](<https://www.sota2.com/research/sota/internal-memory-extraction-attack-detection-on-ehragent.md>): Internal memory extraction attack detection; EHRAgent; AUROC: 1.

- [Internal memory extraction attack detection on RAP WebShop](<https://www.sota2.com/research/sota/internal-memory-extraction-attack-detection-on-rap-webshop.md>): Internal memory extraction attack detection; RAP WebShop; AUROC: 1.

- [External memory extraction attack detection on Pokemon](<https://www.sota2.com/research/sota/external-memory-extraction-attack-detection-on-pokemon.md>): External memory extraction attack detection; Pokemon; AUROC: 1.

- [External memory extraction attack detection on HealthMagicCare](<https://www.sota2.com/research/sota/external-memory-extraction-attack-detection-on-healthmagiccare.md>): External memory extraction attack detection; HealthMagicCare; AUROC: 100.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2602.07517>)

[PDF](<https://arxiv.org/pdf/2602.07517.pdf>)
