Context Oversharing Auditor

io.github.GuardBee由 GitHub 账号 GuardBee 发布v0.4.1更新于 Nov 3, 2026

OWASP MCP10 context oversharing: session dumps, unscoped memory, shared context, prompt leaks

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

本地 MCP 服务器,扫描 agent 与 MCP 源码中的 OWASP MCP10:2025 上下文过度共享问题并给出报告。

可以做什么
  • 扫描粘贴的源码文本,检查完整对话转储、未限定范围的记忆工具、共享会话存储、系统提示泄露、未过滤的向量查询等问题
  • 扫描单个文件执行同样的检查
  • 递归扫描整个目录中的 agent 或 MCP 代码
  • 列出该审计器运行的全部 OWASP MCP10 检查项及其模式名称和严重级别
适用场景
适合在开发或审查 MCP 服务器与 AI agent 时,快速做一次静态检查,确认处理函数不会返回超出当前用户或租户可见范围的会话、记忆或系统提示上下文。它不能替代人工安全审查。
运行要求
以本地 stdio 进程运行,通常通过 npx 启动 npm 包 @guardbee/mcp-context-oversharing-auditor,因此需要 Node.js 以及下载该包的网络访问。未声明认证、环境变量或请求头;除非将 GUARDBEE_TELEMETRY 设为 1,否则遥测默认关闭。
安装前请注意
被扫描的源码会传给该工具;若设置 GUARDBEE_TELEMETRY=1,服务器、工具、成功状态、耗时以及文件路径等短参数值会发送给第三方,较长的字符串和 content、token、password 等字段会被替换为占位符。检查基于模式匹配,可能漏报或误报。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Context Oversharing Auditor,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@guardbee/mcp-context-oversharing-auditor

🇬🇧 English | 🇹🇷 Türkçe | 🇨🇳 中文 | 🇯🇵 日本語 | 🇰🇷 한국어 | 🇧🇷 Português | 🇪🇸 Español | 🇩🇪 Deutsch

[npm version] [npm downloads] [License: MIT]

An MCP server that audits agent/MCP source for OWASP MCP10:2025 — context oversharing.

toxic-flow-auditor grades whether a tool catalog can chain the lethal trifecta. This package asks a different MCP10 question: does a handler return more session, memory, or system context than the current user/tenant should see?

Telemetry is off by default. With GUARDBEE_TELEMETRY=1 it sends the server, tool, success, duration and short parameter values such as a file path; longer strings and fields like content, token or password are replaced with a placeholder. See @guardbee/mcp-telemetry.

What it flags

PatternSeverityMeaning
tool_dumps_full_conversationcriticalTool returns full messages / conversation history
unscoped_memory_recall_toolhighdump_memory / get_all_memories-style tools
shared_global_session_storehighGlobal session Map/dict without per-user keys
system_prompt_exposed_via_toolhighTool returns systemPrompt / developer instructions
cross_session_tool_result_reusemediumPrior tool results mixed into another session's context
vector_query_without_filterhighVector/RAG search with no tenant/user metadata filter

Quick start

json
{  "mcpServers": {    "guardbee-context-oversharing-auditor": {      "command": "npx",      "args": ["-y", "@guardbee/mcp-context-oversharing-auditor"]    }  }}
bash
npx @guardbee/mcp-context-oversharing-auditor scan ./src --format=sarif

Feedback

Questions, ideas, or a false positive? Start a thread in GitHub Discussions or open an issue. If GuardBee is useful to you, a ⭐ on the repository helps others find it.

来源:packages/context-oversharing-auditor/README.md,提交 bc5997d

工具

4

scan_text

Scan agent/MCP source for OWASP MCP10:2025 context oversharing — full conversation dumps, unscoped memory tools, shared global session stores, system-prompt leaks via tools, cross-session tool-result bleed, and unfiltered vector queries.

输入参数labelcontent必填

scan_file

Scan a single file for OWASP MCP10 context-oversharing issues

输入参数path必填

scan_directory

Recursively scan a directory for OWASP MCP10 context-oversharing issues

输入参数path必填excludeincludemaxFiles

list_patterns

List every OWASP MCP10 context-oversharing check this auditor runs

无需输入参数。

版本历史

4
  1. v0.4.1最新Oct 30, 2026
  2. v0.3.2Oct 22, 2026
  3. v0.2.2Oct 13, 2026
  4. v0.2.1Oct 9, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分