Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
OWASP-WSTG-Rag — ChromaDB と Claude Code 用 MCP を使用した OWASP Web Security Testing Guide の RAG システム | Kitploit
ツール/GitHubGitHub/zilbonn/owasp-wstg-rag
脆弱性分析APIセキュリティテスト情報収集ウェブセキュリティ暗号化ペネトレーションテスト認証学習と教育厳選リソース学習パスとコースAIセキュリティ
GitHub
22399ヶ月前Kitploit レビュー済み
zilbonn/owasp-wstg-rag

OWASP-WSTG-Rag

ChromaDB と Claude Code 用 MCP を使用した OWASP Web Security Testing Guide の RAG システム

リポジトリを見る

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

OWASP WSTG RAG

**OWASP Web Security Testing Guide(WSTG)**をベクトルデータベースにインデックス化し、REST APIとClaude Code統合のためのMCP(Model Context Protocol)を介して、セキュリティテスト手法への即時アクセスを提供する検索拡張生成(RAG)システムです。

機能

  • WSTG完全カバレッジ - 全12のWSTGテストカテゴリをインデックス化して検索可能
  • セマンティック検索 - 自然言語クエリで関連するテスト手法を検索
  • MCP統合 - AI支援ペネトレーションテストのためのClaude Codeとの直接統合
  • REST API - プログラムからのアクセス用HTTPエンドポイント
  • WSTG IDルックアップ - WSTG識別子(例:WSTG-INPV-05)で完全なテストケースを取得

WSTGカテゴリ

カテゴリWSTG ID説明
情報収集WSTG-INFOフィンガープリンティング、列挙、マッピング
構成WSTG-CONFサーバー/プラットフォーム構成のテスト
アイデンティティ管理WSTG-IDNTユーザー登録、アカウントプロビジョニング
認証WSTG-ATHNログイン、パスワードポリシー、MFAのテスト
認可WSTG-ATHZ権限昇格、IDOR、アクセス制御
セッション管理WSTG-SESSセッショントークン、クッキー、フィクセーション
入力検証WSTG-INPVSQLi、XSS、コマンドインジェクション、SSTI
エラーハンドリングWSTG-ERRHエラーメッセージ、スタックトレース
暗号WSTG-CRYPTLS、暗号化、ハッシュ化
ビジネスロジックWSTG-BUSLワークフローバイパス、ファイルアップロード
クライアントサイドWSTG-CLNTDOM XSS、クリックジャッキング、WebSocket
APIテストWSTG-APITREST、GraphQL、APIセキュリティ

クイックスタート

1. 依存関係のインストール

root@kitploit:~
cd RAG_runner
pip install -r requirements.txt

2. データベースの構築

root@kitploit:~
python3 build_database.py

これにより、以下が実行されます:

  • すべてのOWASP WSTG HTMLファイルを解析
  • 取得用のセマンティックチャンクを作成
  • ChromaDBベクトルデータベースを構築

3. サーバーの起動

root@kitploit:~
python3 -m server.http_server

サーバーは http://localhost:5004 で実行されます

4. APIのテスト

root@kitploit:~
# Health check
curl http://localhost:5004/health

# Search for SQL injection testing
curl -X POST http://localhost:5004/search \
  -H "Content-Type: application/json" \
  -d '{"query": "SQL injection testing methodology"}'

# Get specific WSTG test case
curl http://localhost:5004/wstg/WSTG-INPV-05

REST APIエンドポイント

エンドポイントメソッド説明
/healthGETヘルスチェック
/infoGETデータベース統計
/listGETすべてのドキュメントを一覧表示
/categoriesGETカテゴリとWSTG IDを一覧表示
/doc/{id}GETIDでドキュメントを取得
/wstg/{id}GETWSTG IDの全チャンクを取得
/searchPOSTセマンティック検索

検索リクエストボディ

root@kitploit:~
{
  "query": "SQL injection testing",
  "n_results": 5,
  "category": "input_validation",
  "wstg_id": "WSTG-INPV-05"
}

Claude Code統合(MCP)

~/.claude.json に追加:

root@kitploit:~
{
  "mcpServers": {
    "owasp-wstg-rag": {
      "command": "python3",
      "args": ["/path/to/OWASP_WSTG_Rag/RAG_runner/server/mcp_client.py"],
      "env": {
        "WSTG_RAG_URL": "http://localhost:5004"
      }
    }
  }
}

MCPツール

ツール説明
search_wstgWSTGからテスト手法を検索
search_test_methodologyテスト方法のガイドを検索
search_test_objectivesテスト目的を検索
get_wstg_test_caseWSTG IDで完全なテストケースを取得
get_wstg_documentIDでドキュメントを取得
list_wstg_categoriesすべてのカテゴリとWSTG IDを一覧表示
wstg_healthヘルスチェック
wstg_infoデータベース統計

Claude Codeでの使用例

root@kitploit:~
# Search for SQL injection testing methodology
search_wstg("SQL injection testing methodology")

# Get specific test case
get_wstg_test_case("WSTG-INPV-05")

# Search within a category
search_wstg("authentication bypass", category_filter="authentication")

# Get test objectives for IDOR
search_test_objectives("IDOR insecure direct object reference")

プロジェクト構成

root@kitploit:~
OWASP_WSTG_Rag/
├── README.md
├── CLAUDE.md                    # Claude Code project guide
├── raw_data/                    # OWASP WSTG HTML source files
│   ├── 01-Information_Gathering/
│   ├── 02-Configuration_and_Deployment_Management_Testing/
│   ├── 03-Identity_Management_Testing/
│   ├── 04-Authentication_Testing/
│   ├── 05-Authorization_Testing/
│   ├── 06-Session_Management_Testing/
│   ├── 07-Input_Validation_Testing/
│   ├── 08-Testing_for_Error_Handling/
│   ├── 09-Testing_for_Weak_Cryptography/
│   ├── 10-Business_Logic_Testing/
│   ├── 11-Client-side_Testing/
│   └── 12-API_Testing/
└── RAG_runner/
    ├── build_database.py        # Main build pipeline
    ├── requirements.txt
    ├── parsers/
    │   └── wstg_parser.py       # HTML parser for WSTG
    ├── chunking/
    │   └── chunker.py           # Semantic chunking
    ├── server/
    │   ├── vector_store.py      # ChromaDB wrapper
    │   ├── http_server.py       # REST API server
    │   └── mcp_client.py        # MCP tools for Claude Code
    └── data/
        ├── processed/           # Intermediate JSON files
        └── chroma_db/           # Vector database

アーキテクチャ

root@kitploit:~
┌─────────────────────────────────────────────────────────────────┐
│                    OWASP WSTG HTML Files                        │
│                      (raw_data/*.html)                          │
└────────────────────────────┬────────────────────────────────────┘
                             │
                             ▼
┌─────────────────────────────────────────────────────────────────┐
│                     wstg_parser.py                              │
│              Parse HTML → Structured JSON                       │
└────────────────────────────┬────────────────────────────────────┘
                             │
                             ▼
┌─────────────────────────────────────────────────────────────────┐
│                       chunker.py                                │
│              Create Semantic Chunks for RAG                     │
└────────────────────────────┬────────────────────────────────────┘
                             │
                             ▼
┌─────────────────────────────────────────────────────────────────┐
│                   ChromaDB Vector Store                         │
│                 (data/chroma_db/)                               │
└────────────────────────────┬────────────────────────────────────┘
                             │
              ┌──────────────┴──────────────┐
              ▼                             ▼
┌──────────────────────────┐   ┌──────────────────────────┐
│    http_server.py        │   │    mcp_client.py         │
│    REST API :5004        │   │    MCP for Claude Code   │
│                          │   │                          │
│  GET  /health            │   │  search_wstg()           │
│  GET  /info              │   │  get_wstg_test_case()    │
│  GET  /wstg/{id}         │   │  search_test_methodology │
│  POST /search            │   │  list_wstg_categories()  │
└──────────────────────────┘   └──────────────────────────┘

ユースケース

AI支援ペネトレーションテスト

Claude Codeと統合して、セキュリティ評価中にOWASPテスト手法へ即座にアクセスできます:

root@kitploit:~
User: "How do I test for SQL injection?"

Claude: [Queries WSTG RAG]
→ Returns WSTG-INPV-05 methodology with:
  - Test objectives
  - Step-by-step testing procedures
  - Example payloads
  - Tools to use

自動セキュリティテスト

REST APIを使用して、WSTG手法を自動セキュリティパイプラインに統合します:

root@kitploit:~
import requests

# Get testing methodology for current test
response = requests.post('http://localhost:5004/search', json={
    'query': 'session fixation testing',
    'n_results': 3
})
methodology = response.json()['results']

セキュリティトレーニング

トレーニングやCTFチャレンジ中に、セキュリティテスト手法をすぐに参照できます。

要件

  • Python 3.8+
  • ChromaDB
  • BeautifulSoup4
  • httpx
  • MCP SDK(Claude Code統合用)

ライセンス

このプロジェクトは、Creative Commons Attribution-ShareAlike 4.0 の下で提供されている OWASP Web Security Testing Guide のコンテンツを使用しています。

関連プロジェクト

  • OWASP WSTG - ソース資料
  • Claude Code - MCPサポートを備えたAIコーディングアシスタント
  • ChromaDB - 埋め込み用ベクトルデータベース
ツールをダウンロード