Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

FEAT: Cross-principal memory leakage scenario for agents with shared long-term memory

Aperta
#3,272 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
security

Direzione di ricerca

The payload names the existing Leakage scenario and the substring/regex scorers as reference points, but no file paths. Start by reading how Leakage and those scorers are built, and ask the maintainers how multi-principal targets should be modelled before writing code. Done means a two-phase scenario that seeds canaries as one identity, probes as another, and reports leak rate per probe strategy.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature-request
Is your feature request related to a problem? Please describe.

The Leakage scenario tests whether a model discloses training data, PII or confidential
information. It doesn't cover a growing agent-specific path: data that one user was entitled
to see is written into a shared long-term memory (e.g. a workspace-level store), and later
retrieved for a different user who is not entitled to it.

In this pattern, each individual check passes. The source query is authorized for user A,
the memory read is authorized by namespace or workspace membership for user B, and keyword
input/output filters pass because the second user's questions don't use restricted terms.
The leak exists only across sessions and principals, so single-conversation probing doesn't
surface it.

Two public descriptions of the pattern are in the OWASP GenAI Data Security Initiative's
trace dataset (memory_read_write category): an unintentional variant
(GenAI-Security-Project/GenAI-Data-Security-Initiative#102) and an adversarial variant where
a member deliberately words queries to extract restricted derived items (#104). Related
published work on query-only extraction from agent memory: Wang et al., "Unveiling Privacy
Risks in LLM Agent Memory" (arXiv:2502.13172).

Describe the solution you'd like

A scenario that runs in two phases against an agent target that supports per-user identity:

  1. Seed: as principal A, send prompts that cause the agent to read restricted data and
    persist something derived from it. Restricted values are unique canary tokens, so leakage
    can be detected deterministically.
  2. Probe: as principal B, who lacks the entitlement, send benign and adversarial
    (paraphrased, keyword-free, verbatim-recall) prompts drawn from a seed dataset.
  3. Score: a true/false scorer that flags any of A's canaries in B's responses. This could
    build on the existing substring/regex scorers, with no LLM judge needed.

Output: leak rate per probe strategy, which shows whether keyword filtering vs.
entitlement-aware memory reads actually stops the path.

Describe alternatives you've considered, if relevant
  • Extending Leakage directly. It's model-focused and single-principal, so a separate
    scenario (or a clearly separate technique set) seems cleaner, but I'm happy to follow your
    preference.
  • Shipping it as an external example notebook rather than a built-in scenario.
Additional context

I'd like to implement this if it fits PyRIT's direction, starting with the seed dataset and
the canary scorer, then the scenario. Guidance on how you'd want multi-principal targets
modelled would be very helpful before I start.

Disclosure: I contributed the two OWASP traces referenced above and have published on
lineage-aware access control for agent memory.

Lingua principale
Python
Stelle
4.6k
Fork
944
Merge medio
2g 18h
PR unite (30g)
369

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/PyRIT

Tutte le issue di microsoft/PyRIT

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.