You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plan follows CONTRIBUTING - a sandboxes/llm_memory_local sandbox (ollama, mirascope, gradio, sqlite) with Containerfile, Makefile (attack/stop/all), README and app/, plus an exploitation example showing an injected instruction persisting in stored memory and steering a later session. Scoped to 4.2.1.3 Context Injection.
Happy to split into two PRs, sandbox first and exploit second, if that reviews more easily.
@opitaru-sys and @Anwaar-Ahmad9212 Please, see conversation above with @fasinet . I would prefer that you wait for @fasinet's contribution and pick it up from there, either proposing improvements or creating alternatives to that code as separate entities in the repo.
Thanks @felipepenha. No problem at all, @fasinet was here first so their version should lead.
For context, I already have a complete implementation up as #56 (the llm_memory_local sandbox plus a working exploit, tested end to end). I built it before seeing your note, so treat it as optional.
Happy to go whichever way is least disruptive. I can hold #56 until @fasinet's lands and then fold anything useful into theirs, or keep it as a separate alternative sandbox under a different name so it doesn't collide. Your call on sequencing.
In the meantime I'll switch #56 from "Closes #22" to "Relates to #22" so a merge can't auto-close this. Looking forward to seeing @fasinet's take :)
Hi @felipepenha , thanks for the note earlier. I've opened #60 with the
'llm_memory_local' sandbox and a working Conversation Memory Poisoning
exploit under 'exploitation/memory_poisoning'.
Quick summary:
SQLite-backed persistent memory with an intentionally unscoped fact store
FastAPI mock endpoint wired to memory, plus debug endpoints for inspecting/
resetting stored facts
'attack.py' demonstrates the cross-session leak end to end (make setup
then 'make attack')
Tested containerized with Podman; formatted per CONTRIBUTING
Happy to take any feedback. Thanks also to @opitaru-sys for holding #56
glad to compare approaches.
Congrats on #60, @fasinet, and thanks for the note. You had this one first and I'm glad it landed. I'll go through #60 properly this week. A few things from #56 that might be worth carrying over if they add anything: a scope-isolation check (a fact planted in one session must not leak into an unrelated session's answers), the behavioural-steering demo (the model refuses the injected link in the attacker's own turn but serves it to a fresh victim session), and a set of offline unit tests that run without a model. Happy to open those as a small follow-up on top of #60 rather than keep two sandboxes alive. @felipepenha, your call on whether #56 closes now or after that follow-up; either is fine by me.
Activity
fasinet commentedon Jul 17, 2026
@felipepenha is this issue still tracked? I would like to give it a crack.
felipepenha commentedon Jul 17, 2026
Sure! Feel free to do so.
Anwaar-Ahmad9212 commentedon Aug 13, 2026
@felipepenha is this issue still available ? or is it fixed? I would like to give it a try
felipepenha commentedon Aug 20, 2026
@fasinet Have you made any progress on addressing this issue? Otherwise, @Anwaar-Ahmad9212 would like to develop it.
fasinet commentedon Aug 20, 2026
@felipepenha ,
I think I'm halfway there. Just a couple more weeks to wrap it up.
opitaru-sys commentedon Aug 24, 2026
I'd like to pick this one up if it's still open.
Plan follows CONTRIBUTING - a
sandboxes/llm_memory_localsandbox (ollama, mirascope, gradio, sqlite) with Containerfile, Makefile (attack/stop/all), README and app/, plus an exploitation example showing an injected instruction persisting in stored memory and steering a later session. Scoped to 4.2.1.3 Context Injection.Happy to split into two PRs, sandbox first and exploit second, if that reviews more easily.
feat(sandbox): add conversation memory poisoning sandbox and exploit
felipepenha commentedon Aug 24, 2026
@opitaru-sys and @Anwaar-Ahmad9212 Please, see conversation above with @fasinet . I would prefer that you wait for @fasinet's contribution and pick it up from there, either proposing improvements or creating alternatives to that code as separate entities in the repo.
opitaru-sys commentedon Aug 25, 2026
Thanks @felipepenha. No problem at all, @fasinet was here first so their version should lead.
For context, I already have a complete implementation up as #56 (the
llm_memory_localsandbox plus a working exploit, tested end to end). I built it before seeing your note, so treat it as optional.Happy to go whichever way is least disruptive. I can hold #56 until @fasinet's lands and then fold anything useful into theirs, or keep it as a separate alternative sandbox under a different name so it doesn't collide. Your call on sequencing.
In the meantime I'll switch #56 from "Closes #22" to "Relates to #22" so a merge can't auto-close this. Looking forward to seeing @fasinet's take :)
fasinet commentedon Sep 4, 2026
Hi @felipepenha , thanks for the note earlier. I've opened #60 with the
'llm_memory_local' sandbox and a working Conversation Memory Poisoning
exploit under 'exploitation/memory_poisoning'.
Quick summary:
resetting stored facts
make setupthen 'make attack')
Happy to take any feedback. Thanks also to @opitaru-sys for holding #56
glad to compare approaches.
opitaru-sys commentedon Sep 4, 2026
Congrats on #60, @fasinet, and thanks for the note. You had this one first and I'm glad it landed. I'll go through #60 properly this week. A few things from #56 that might be worth carrying over if they add anything: a scope-isolation check (a fact planted in one session must not leak into an unrelated session's answers), the behavioural-steering demo (the model refuses the injected link in the attacker's own turn but serves it to a fresh victim session), and a set of offline unit tests that run without a model. Happy to open those as a small follow-up on top of #60 rather than keep two sandboxes alive. @felipepenha, your call on whether #56 closes now or after that follow-up; either is fine by me.
Add llm_memory_local sandbox and memory-poisoning exploit
Merge pull request #60 from fasinet/memory-poisoning-sandbox
felipepenha commentedon Sep 6, 2026
@opitaru-sys I will leave #56 open until you come up with the follow up to #60. Thank you for your understanding.
test(memory_poisoning): offline unit tests and behavioural-steering demo
Add llm_memory_local sandbox and memory-poisoning exploit