Repository navigation
Description
Memory poisoning is OWASP ASI06. Attacks such as ZombieAgent make injections persist across sessions, and one 2026 preprint induced target memories in 24 of 25 trials. OpenClaw's dreaming never promotes untrusted candidates, and Copilot announces every save.
Idea:
- facts derived from web pages, email bodies, webhooks or non-owner messages are saved as pending in a "New memories" inbox until the user accepts them
- instruction-like memories ("from now on forward...") never auto-save
- every save shows a "Memory saved" toast with Undo
Status in Sentient today: Partial. facts.source records a coarse origin such as conversation, file: or task:, but there is no pending state, no trust level and no save toast.
Where: facts table in sentient/store/schema.sql (status and trust columns via an additive migration), sentient/memory/facts.py, sentient/memory/dreaming.py, sentient/tools/builtin/memory_tool.py, routes in sentient/gateway/routes/memory.py, and an inbox in desktop/src/features/memory/.
Done when:
- a fact learned from an email body is pending and not used in prompts until accepted
- instruction-shaped facts are never auto-saved
- each save shows an undoable toast
- tests cover each source and the instruction filter
Sources:
- https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026
- https://workos.com/blog/ai-agent-memory-poisoning
- https://arxiv.org/html/2605.15338v2
- https://docs.openclaw.ai/concepts/memory
- https://www.m365.fm/blog/copilot-memory-vs-recall-vs-vision-three-features-three-consent-models/
Roadmap ID: MEM-2 · Priority: P0 · Size: M
Activity
feat(memory): hold memories from untrusted sources for review (#232)