Gadriel AI Security Harness

io.github.Gadriel-ai由 GitHub 账号 Gadriel-ai 发布v1.7.1更新于 Oct 29, 2026

AI Security Harness: SAST, secrets, deps, containers, config & OWASP LLM. Scans locally.

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

概览

AI 生成的概览

本地安全扫描 MCP 服务器,让助手对代码仓库执行 SAST、密钥、依赖、容器与配置扫描并查看结果。

可以做什么
  • 对文件或内存中的缓冲区执行安全扫描并返回发现项
  • 按路径查询发现项,并对指定发现项应用修复
  • 覆盖静态分析、硬编码密钥、依赖(SCA/SBOM)、容器、配置以及 OWASP LLM 风险
  • 可配合仓库内的指令、提示词与审查代理,形成扫描、修复与状态查询流程
适用场景
适合希望助手在不离开对话的情况下检查刚生成的代码或现有仓库的安全问题,并逐条查看和修复所报告问题的场景。
运行要求
通过 npx 以 stdio 在本地运行 gadriel npm 包,需要 Node.js(或全局安装)。仅限桌面端;未声明需要账号或 API 密钥。首次运行会联系 app.gadriel.ai 进行匿名设备注册,除非将 GADRIEL_NO_ANONYMOUS_AUTH 设为 1。
安装前请注意
首次运行默认会向 app.gadriel.ai 注册匿名设备凭据,可将 GADRIEL_NO_ANONYMOUS_AUTH 设为 1 跳过。修复类工具会修改代码,且 Copilot/VS Code 中没有编辑时拦截机制,扫描与修复仅在请求时执行。README 称代码在本地扫描、不会上传。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Gadriel — AI Security Harness for GitHub Copilot

Security scanning for the code Copilot writes: SAST, secrets, dependencies (SCA/SBOM), containers and configuration, including AI-specific risks like prompt injection and the OWASP LLM Top 10 — 3,000+ rules, scanned on your machine. Gadriel plugs into Copilot as an MCP server plus repository instructions, prompts, and reviewer agents.

Product Overview · Documentation · MCP Tools Reference · SAST Benchmarks

Part of the Gadriel AI Security Harness, alongside VS Code, Claude Code, Codex, and Cursor.

Get it

Easiest — the VS Code extension. Install Gadriel AI Security Harness from the Marketplace. It registers the gadriel MCP server for Copilot automatically and adds a Gadriel: Scan Repository command — no config to edit.

Or add the MCP server yourself. The server is published to the GitHub MCP Registry as io.github.Gadriel-ai/gadriel, so it shows up in VS Code's MCP: Browse Servers and Copilot Chat's @mcp search — add it in a click. To wire it per-repo instead, drop this .vscode/mcp.json into your project (needs Node for npx, or npm install -g gadriel):

json
{ "servers": { "gadriel": { "type": "stdio", "command": "npx", "args": ["-y", "[email protected]", "code", "mcp"] } } }

Add the Copilot guidance (optional). Copy the .github/ directory into your repo so Copilot knows how to use Gadriel:

PathWhat
.github/copilot-instructions.mdrepo-wide guidance, auto-applied
.github/instructions/*.instructions.md17 topic rules, scoped by applyTo
.github/prompts/*.prompt.md/gadriel-scan, /gadriel-fix, /gadriel-status, …
.github/agents/*.agent.md8 reviewer agents

Use

In Copilot Chat (agent mode), just ask: "Run a Gadriel security scan on this repo and summarize the findings," or invoke a prompt like /gadriel-scan. The gadriel MCP tools — validate_file, findings_for_path, fix_finding, validate_buffer, and more — are available to Copilot directly.

Good to know

  • No automatic edit guardrail here. Copilot/VS Code has no edit-time hook (Cursor and Codex do), so scanning runs on request via the MCP tools and prompts rather than blocking each edit.
  • Enterprise: Copilot Business/Enterprise can allowlist the gadriel MCP server through managed MCP policy.
  • Privacy: code is scanned locally and never uploaded. First run registers an anonymous device credential with app.gadriel.ai (a random device id — no hostname, username, or keys); set GADRIEL_NO_ANONYMOUS_AUTH=1 to skip. See the privacy policy.

Maintainers

The registry listing is (re)published by .github/workflows/publish-mcp.yml (GitHub OIDC — an org namespace can only be published from CI in a Gadriel-ai repo). After a new gadriel npm release, bump server.json and the .vscode/mcp.json pin, then re-run that workflow.

License

This repository is Apache-2.0. The gadriel scanner it runs is proprietary, under the Gadriel terms.

来源:README.md,提交 fcdb0f6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

4
  1. v1.7.1最新Oct 29, 2026
  2. v1.7.0Oct 8, 2026
  3. v1.5.0Oct 1, 2026
  4. v1.4.1Sep 17, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

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

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分