TL;DR
Persistent memory in retrieval-augmented generation (RAG) agents is vulnerable to Multi-Session Memory Poisoning (MSMP), where adversaries can inject harmful memories. To combat this, Signed Memory with Smoothed Retrieval (SMSR) was developed, which includes HMAC-SHA256 provenance checks and randomized memory ablation.
✦ Why It Matters
Engineers can implement SMSR to enhance the security of persistent memory in AI systems against memory poisoning attacks.
Key Takeaways
Full Summary
Retrieval-augmented generation (RAG) agents, which utilize persistent memory across user sessions, face a new security threat known as Multi-Session Memory Poisoning (MSMP). This vulnerability allows adversaries to inject malicious memories that can influence future responses without altering the underlying model.
To address this, Signed Memory with Smoothed Retrieval (SMSR) was created, incorporating two main components: HMAC-SHA256 for memory provenance at write time, and randomized memory ablation with majority voting at query time. Testing across 15 enterprise scenarios showed that SMSR effectively blocked unsigned memory injections, reducing attack success from 93-100% to 0%.
For authenticated adversaries, SMSR limited success to 8.0% with a single injection, and in end-to-end attacks, it decreased success from 65.3% to 5.3%. These results demonstrate SMSR's robust defense capabilities while maintaining high utility for clean queries, at 90% and 85% respectively.
Related