CA

cisco-ai-defense/mcp-scanner

安全测试

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1100 stars 153 forks 质量 81 趋势 44Apache-2.0

扫描MCP服务器以识别潜在威胁和安全发现。

概览

一款用于扫描MCP(模型上下文协议)服务器及潜在安全发现工具的Python工具。MCP扫描器结合了Cisco AI防御检测API、YARA规则和LLM作为裁判,用于检测恶意MCP工具。 MCP 扫描器为扫描 MCP 服务器和安全发现工具提供了全面的解决方案。它利用了三种强大的扫描引擎(Yara、LLM-as-judge、Cisco AI Defense),这些引擎可以单独使用,也可以单独使用。 该SDK设计简便,同时提供强大的扫描功能、灵活的认证选项和定制化功能。 - 作为独立的CLI工具或REST API服务器运行扫描器- :根据需求,可同时或独立使用三种扫描引擎。- :利用pip审计集成扫描Python依赖,识别已知漏洞(CVE/PYSEC/GHSA)。- :零依赖静态分析,处理生产准备问题(超时、重试、错误处理)。

概述(AI 翻译)

一款用于扫描MCP(模型上下文协议)服务器和潜在安全发现工具的Python工具。MCP扫描器结合了Cisco AI Defense检测API、YARA规则和基于LLM的分析,用于检测恶意MCP工具。

概述

MCP 扫描器为扫描 MCP 服务器和安全发现工具提供了全面的解决方案。它利用三种强大的扫描引擎(Yara、基于大型语言模型的分析、思科 AI 防御),可单独使用或单独使用。

该SDK设计简便,同时提供强大的扫描功能、灵活的认证选项和定制化功能。

特色

  • 多种模式: 将扫描器作为独立的CLI工具或REST API服务器运行
  • 多引擎安全分析:根据需求,可同时或单独使用三种扫描引擎。
  • 易受攻击包扫描:利用pip审计集成扫描已知漏洞(CVE/PYSEC/GHSA)的Python依赖。
  • 准备度扫描:对生产准备问题(超时、重试、错误处理)进行零依赖静态分析。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Scanner

A Python tool for scanning MCP (Model Context Protocol) servers and tools for potential security findings. The MCP Scanner combines Cisco AI Defense inspect API, YARA rules and LLM-based analysis to detect malicious MCP tools.

Overview

The MCP Scanner provides a comprehensive solution for scanning MCP servers and tools for security findings. It leverages three powerful scanning engines (Yara, LLM-based analysis, Cisco AI Defense) that can be used together or independently.

The SDK is designed to be easy to use while providing powerful scanning capabilities, flexible authentication options, and customization.

Features

  • Multiple Modes: Run scanner as a stand-alone CLI tool or REST API server
  • Multi-Engine Security Analysis: Use all three scanning engines together or independently based on your needs.
  • Vulnerable Packages Scanning: Scan Python dependencies for known vulnerabilities (CVE/PYSEC/GHSA) using pip-audit integration.
  • Readiness Scanning: Zero-dependency static analysis for production readiness issues (timeouts, retries, error handling).
  • Comprehensive Scanning: Scan MCP tools, prompts, resources, and server instructions for security findings
  • Behavioural Code Scanning: Scan Source code of MCP servers for finding threats.
  • VirusTotal Binary Scanning: Automatically detect malware in binary files (images, PDFs, executables, archives) bundled with MCP servers using VirusTotal hash lookups.
  • PyPI Package Scanning: Download and scan PyPI packages inside a Docker sandbox with behavioral analysis.
  • Behavioural Code Scanning: Scan Source code of MCP servers for detecting threats.
  • Static/Offline Scanning: Scan pre-generated JSON files without live server connections - perfect for CI/CD pipelines and air-gapped environments
  • Explicit Authentication Control: Fine-grained control over authentication with explicit Auth parameters.
  • OAuth Support: Full OAuth authentication support for both SSE and streamable HTTP connections.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →