TM

teycir/mcpwn

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

31 stars 8 forks 品質 73 トレンド 25MIT

RCE、パス・トラバース、プロンプト・インジェクション、プロトコル・脆弱性を検出するモデル・コンテキスト・プロトコル・サーバー用の自動セキュリティ・スキャナー.

概要

このプロジェクトがあなたの仕事を助けたら、継続的なメンテナンスと新機能をサポートします。 〒904-2205 沖縄県うるま市字栄野比1212-1 QRコードをスキャンするか、上記のウォレットアドレスをコピーします。 MCP サーバーは、AI エージェントに強力な機能を発揮します。 - ✅ ツールの引数でコマンドインジェクションを介して検出 - ✅ ファイル操作の脆弱性を見つけます - ✅ LLM-facing ツールのリスクを識別します - ✅ テストと状態の非同期攻撃 - ✅ AI 解析と CI/CD のゲナレーツ(JSON/SARIF) - ✅ - 自動ベースライン → AI ディープ分析 - ✅ - 純粋な Python stdlib Mcpwn は、手動のコードレビューが見逃したテスト ツール 引数の注射パターンによって MCP サーバーの生産で RCE 脆弱性を発見しました。 - Python 3.

概要(AI 翻訳)

サポート開発

このプロジェクトがあなたの仕事を助けたら、継続的なメンテナンスと新機能をサポートします。

ETHの寄付財布 [0x11282eE5726B3370c8B480e321b3B2aA13686582]

QRコードをスキャンするか、上のウォレットアドレスをコピーします。

Mcpwn - MCPセキュリティテストフレームワーク

RCE、パス・トラバース、プロンプト・インジェクション、およびプロトコル・脆弱性を検出するモデル・コンテキスト・プロトコル・サーバーのための自動セキュリティ・スキャナー。

#Mcpwnの理由

MCP サーバーは、AI エージェントに強力な機能を発揮します。 1つの脆弱なツール=完全なシステム妥協。

Mcpwnの仕組み:

  • ✅ ツール引数のコマンドインジェクションでRCEを検知
  • ✅ ファイル操作のpath traversal脆弱性を見つける
  • ✅ LLM の直面用具ののpromptの注入の危険を識別して下さい
  • ✅ テスト protocol fuzzing と状態の非同期攻撃
  • ✅ AI解析とCI/CDの**(JSON/SARIF)を生成
  • ✅*AIの強み - 自動ベースライン → AI深層解析
  • ✅ゼロ依存関係 - 純粋なPythonのstdlib

クイックスタート:

実質の影響: Mcpwn は、手動のコードレビューが見逃したテスト ツール 引数の注射パターンによって MCP サーバーの生産で RCE 脆弱性を発見しました.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Mcpwn - MCP Security Testing Framework

Automated security scanner for Model Context Protocol servers that detects RCE, path traversal, prompt injection, and protocol vulnerabilities.

Why Mcpwn?

MCP servers expose powerful capabilities to AI agents. One vulnerable tool = full system compromise.

What Mcpwn Does:

  • ✅ Detects RCE via command injection in tool arguments
  • ✅ Finds path traversal vulnerabilities in file operations
  • ✅ Identifies prompt injection risks in LLM-facing tools
  • ✅ Tests protocol fuzzing and state desync attacks
  • ✅ Generates structured reports (JSON/SARIF) for AI analysis & CI/CD
  • ✅ Stages findings for AI - automated baseline → AI deep analysis
  • ✅ Zero dependencies - pure Python stdlib

Quick Start:

# Scan any MCP server in 5 seconds
python mcpwn.py --quick npx -y @modelcontextprotocol/server-filesystem /tmp

# Get JSON report for AI analysis
python mcpwn.py --output-json report.json npx -y @modelcontextprotocol/server-filesystem /tmp

Real Impact: Mcpwn found RCE vulnerabilities in production MCP servers by testing tool argument injection patterns that manual code review missed.

Installation

# Clone repository
git clone https://github.com/Teycir/Mcpwn.git
cd Mcpwn

# Make executable
chmod +x mcpwn.py

# Run directly (no dependencies needed)
python3 mcpwn.py --help

Prerequisites

  • Python 3.8+
  • Core framework uses stdlib only (no dependencies)

Features

  • Semantic Detection: Pattern-based exploit detection (RCE, file read, timing attacks)
  • Side-Channel Detection: Timing, size, and behavioral anomaly detection
  • Paranoid Profile: Production security profile with enhanced thresholds
  • Thread-Safe: Concurrent operations with proper locking
  • Configurable Timeouts: Per-request timeout control with deadline tracking
  • Payload Deduplication: Efficient testing without redundant payloads
  • Structured Logging: Comprehensive logging with severity levels
GitHub で README 全文を見る

インストール

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

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →