The problem space · Memory · Data leakage
Align your AI Memory against data leakage
What an assistant keeps between sessions can be sent out or read back by someone who should not have it.
- Memory
- what it keeps between sessions
- Data leakage
- private data going where it should not
Ways it goes wrong
Memory keeps what users said, which gives attackers something to take. The page rests on one public case, a researcher's demonstration: his planted memory made ChatGPT send each later conversation to his server1. Research shows memory can also be read back directly: with crafted questions alone, researchers extracted private past interactions from two agents' memory2.
2024
SpAIware in ChatGPT's memory
A security researcher showed that instructions planted in ChatGPT's long-term memory sent every later conversation, in new chats too, to a server he controlled.
Source: embracethered.com/blog/posts/2024/chatgpt-macos-app-persistent-data-exfiltration
2025
Reading an agent's memory back out
Researchers showed that an attacker who could only send questions was able to pull private records of past user interactions out of two agents' memory.
Source: arxiv.org/abs/2502.13172
What people do about it
OpenAI fixed its macOS app so the data no longer left this way, though the researcher reports that planting memories still worked1. He advises reviewing stored memories regularly1. The researchers call for stronger memory safeguards in agents2.
Keep each user's memory separate
Stops one user's session from retrieving what another user told the assistant.
Check outgoing addresses on the server
Decides on the server, not in each app, which addresses an answer may load or link to.
Keep less
Stores only what later tasks need and drops raw conversations.
Where we touch it
No study of ours covers this pair yet.
Sources
-
Embrace The Red, “Spyware Injection Into Your ChatGPT's Long-Term Memory (SpAIware)”, 2024-09-20. https://embracethered.com/blog/posts/2024/chatgpt-macos-app-persistent-data-exfiltration/. Accessed 2026-10-23. ↩ ↩2 ↩3
-
Wang et al., “Unveiling Privacy Risks in LLM Agent Memory”, arXiv 2502.13172. https://arxiv.org/abs/2502.13172. Accessed 2026-10-23. ↩ ↩2