Skip to content

[Backlog]: Conversation Memory Poisoning #22

Description

@felipepenha

Checklist

  • Backlog entry requires creating new sandboxes.
  • Backlog entry requires creating new exploitation code and/or tutorials.

CVE List

No response

Description

Summary

Exploitation poisons memory of conversational GenAI system.

GenAI Red Teaming Manual Reference

4.2.1.3 Conversation Memory Poisoning / A. Context Injection

Sandbox

Create sandbox in similarity to llm_local, but including persistent memory.

Suggested name: sandboxes/llm_memory_local.

Suggested tech stack: ollama, mirascope, gradio, sqlite.

Exploitation

Inject a prompt with instruction or information that will be stored in memory and, thus, influence future session behavior.

Activity

  1. added
    backlog
    on Mar 5, 2026
  2. fasinet commented on Jul 17, 2026

    @fasinet
    Contributor

    @felipepenha is this issue still tracked? I would like to give it a crack.

  3. felipepenha commented on Jul 17, 2026

    @felipepenha
    CollaboratorAuthor

    @felipepenha is this issue still tracked? I would like to give it a crack.

    Sure! Feel free to do so.

  4. Anwaar-Ahmad9212 commented on Aug 13, 2026

    @Anwaar-Ahmad9212

    @felipepenha is this issue still available ? or is it fixed? I would like to give it a try

  5. felipepenha commented on Aug 20, 2026

    @felipepenha
    CollaboratorAuthor

    @fasinet Have you made any progress on addressing this issue? Otherwise, @Anwaar-Ahmad9212 would like to develop it.

  6. fasinet commented on Aug 20, 2026

    @fasinet
    Contributor

    @felipepenha ,
    I think I'm halfway there. Just a couple more weeks to wrap it up.

  7. opitaru-sys commented on Aug 24, 2026

    @opitaru-sys
    Contributor

    I'd like to pick this one up if it's still open.

    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.

  8. added a commit that references this issue on Aug 24, 2026
    487ef0c
  9. felipepenha commented on Aug 24, 2026

    @felipepenha
    CollaboratorAuthor

    @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.

  10. opitaru-sys commented on Aug 25, 2026

    @opitaru-sys
    Contributor

    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 :)

  11. fasinet commented on Sep 4, 2026

    @fasinet
    Contributor

    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.

  12. opitaru-sys commented on Sep 4, 2026

    @opitaru-sys
    Contributor

    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.

  13. added 2 commits that reference this issue on Sep 6, 2026
  14. felipepenha commented on Sep 6, 2026

    @felipepenha
    CollaboratorAuthor

    @opitaru-sys I will leave #56 open until you come up with the follow up to #60. Thank you for your understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backloggood first issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions