Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#3,272 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
security

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
4.6k
派生
962
平均合并
2 天 15 小时
30 天内合并 PR
390

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/PyRIT 的其他 Issue

查看 microsoft/PyRIT 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。