Tencent Zhuque Lab discloses Memory Heist attack: Agent memory exfiltrated character-by-character via URL paths
AI Agent 的记忆,为什么会成为攻击者的数据金矿?
Tencent Zhuque Lab disclosed a data theft attack on agents called Memory Heist: the attacker embeds malicious prompts in visible web text, disguised as a Cloudflare authentication page, inducing the agent to extract user names or API keys from memory, encode them character-by-character into URL paths, and send them to the attacker's server via successive HTTP requests; the attacker only needs to concatenate access logs to recover the data. The attack server distinguishes visitors by User-Agent: normal browsers see a regular coffee shop page, and only when identified as an AI agent does it return the injection page, making manual review difficult. In the experiment, the target agent's UA was MemoryAgent/1.0 (AI Assistant; python-httpx), the character grid was expanded from 26 letters to 37 characters (a-z + 0-9 + -) to cover API keys, and each request was spaced about 1-2 seconds apart.