Correctover/correctover-scanner

GitHub: Correctover/correctover-scanner

一款面向 AI Agent 和 MCP Server 的快速安全审计工具,通过六维检测引擎扫描并发现 Guardrail 缺口及运行时漏洞。

Stars: 1 | Forks: 0

Correctover Scanner

**5 秒 AI Agent 安全审计 — 发现 CrewAI, Smolagents, LlamaIndex 中的 Guardrail 缺口。** ![version](https://img.shields.io/badge/version-1.0.0-1a1a2e?style=flat-square&labelColor=0f0f1a) ![python](https://img.shields.io/badge/python-3.10+-1a1a2e?style=flat-square&labelColor=0f0f1a) [![PyPI](https://img.shields.io/pypi/v/correctover-scanner?style=flat-square&labelColor=0f0f1a&color=1a1a2e)](https://pypi.org/project/correctover-scanner/) [![License](https://img.shields.io/badge/license-MIT-1a1a2e?style=flat-square&labelColor=0f0f1a)](LICENSE) Correctover Scanner 是一个**零风险安全审计工具**——扫描你的 AI Agent 配置和 MCP Server,发现 SSRF、凭证泄露、路径遍历、RCE 等运行时漏洞。 **核心承诺:扫描未发现漏洞 = 完全免费。** ## 它能发现什么 ``` $ correctover-scanner audit ./my-mcp-server/ [CRITICAL] CVE-2026-12957 — .env File Readable via MCP Tool → Agent can read /app/.env containing API keys, DB credentials → CVSS: 9.1 (Critical) → Fix: Block filesystem access to .env via EnvProtectionProvider [HIGH] SSRF via Unvalidated URL Parameter → Tool parameter 'url' passed directly to httpx.get() → DNS Pinning not enabled, internal IP ranges not blocked → Fix: Enable SSRF protection in CCS config [MEDIUM] Tool Execution Without Authorization → 3 tools have no governance decorator → Any agent can invoke admin-level operations → Fix: Apply @govern(policy="default") to all tools ✅ Scan complete: 3 issues found (1 critical, 1 high, 1 medium) Report saved to: ./audit-report-20260727.md ``` ## 工作原理 ``` ┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐ │ 你的 MCP Server │────▶│ Scanner Engine │────▶│ 审计报告 │ │ 或 Agent 配置 │ │ 6 维检测引擎 │ │ Markdown/JSON │ └─────────────────┘ └──────────────────┘ └─────────────────┘ │ ┌───────────┼───────────┐ ▼ ▼ ▼ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ SSRF 检测 │ │ 凭证保护 │ │ RCE 检测 │ │ DNS Pin │ │ EnvGuard │ │ exec/eval │ └──────────┘ └──────────┘ └──────────┘ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ 路径遍历 │ │ 授权缺失 │ │ MCP配置 │ │ ../etc/ │ │ @govern │ │ 注入检测 │ └──────────┘ └──────────┘ └──────────┘ ``` ### 6 维检测引擎 | 维度 | 检测内容 | 参考 | |------|---------|------| | **SSRF** | DNS Pinning 缺失、内网 IP 可达、Proxy 信任绕过 | CWE-918 | | **凭证保护** | .env 文件可读写、API Key 明文暴露 | CVE-2026-12957 | | **RCE** | exec/eval 调用、动态 import、subprocess 注入 | CWE-94 | | **路径遍历** | 未校验的 `../` 路径、符号链接跟随 | CWE-22 | | **授权缺失** | 工具无 governance 装饰器、未认证调用 | CWE-862 | | **MCP 配置** | 不安全的 MCP server 配置模式 | CVE-2026-42271 | ## 快速开始 ``` pip install correctover-scanner # 扫描本地 MCP Server 代码 correctover-scanner audit ./my-server/ # 扫描 MCP 配置文件 correctover-scanner scan-config mcp-config.json # 生成带 CVE 编号的报告 correctover-scanner audit ./my-server/ --format markdown --output report.md ``` ## MCP 生态 GHSA 扫描器 除了本地审计,本仓库还包含 MCP 实现层 GHSA 扫描器,覆盖 37+ 个 MCP 实现仓库: | 层级 | 目标 | 说明 | |------|------|------| | T1 | 官方/大厂 | modelcontextprotocol, github, microsoft, aws, google, bytedance | | T2 | 高星社区 | fastmcp, firecrawl, DesktopCommanderMCP, codebase-memory-mcp | | T3 | 应用层集成 | n8n, nginx-ui, MaxKB, casdoor, activepieces, OpenMetadata | | T4 | SDK | python-sdk, typescript-sdk, go-sdk, java-sdk, csharp-sdk | ### 扫描结果 (2026-07-26) - **144 个安全公告** 跨 37 个仓库 - **75 个高/危急** 严重级别 - **19 个零公告目标** = 代码审计蓝海 - **1 个 0-day** DesktopCommanderMCP SecurityConfigViaMCPTool (CVSS 8.1+) ### CCS 检测模式 | 模式 | 说明 | 首次命中 | |------|------|---------| | SecurityConfigViaMCPTool | 安全配置可通过 MCP 工具运行时修改 | DesktopCommanderMCP | | BinaryDownloadAndExec | MCP Server 下载并执行外部二进制 | codebase-memory-mcp | | CredentialSharingAcrossProfiles | 凭证跨服务器配置文件共享 | firecrawl-mcp-server | | ConfigToolBypass | 通过配置工具绕过安全检查 | DesktopCommanderMCP | ``` # 运行 GHSA 扫描器 export GITHUB_TOKEN=your_token python scanners/mcp_impl_ghsa_scanner.py display_only ``` ## 与 Correctover 生态的关系 ``` correctover-scanner ← 你在这里(检测层) │ ▼ 发现漏洞 ccs-sdk ← 修复层:Guardrail Provider + 框架适配器 │ ▼ 验证修复 correctover (mcp-server) ← 运行时:6 维输出验证 + 自愈 Failover │ ▼ 持续监控 standards ← CCS 标准文档 + DOI 归档 ``` ## 零风险审计服务 不想自己扫?我们帮你扫: - **未检出漏洞 = 完全免费**(交付安全确认函) - **发现漏洞 = 按严重程度定价**(交付可复现 PoC + 修复建议) - **任何 MCP 框架都能扫**(CrewAI, AutoGen, LangGraph, FastMCP, mcp-use, golf...) 详情 → [correctover.com/services](https://correctover.com/services.html) ## License MIT

Correctover — AI Reliability™
扫描 · 检测 · 修复 · 验证

标签:CISA项目, Python, StruQ, Web报告查看器, 无后门, 逆向工具, 静态代码扫描