mcpField
P
penetration-testing

penetration-testing

github.com/bagelholeセキュリティ1.2k378 回インストール23 週間前に更新
リポジトリ

penetration-testing について

penetration-testingは、許可を得たテストでセキュリティ対策を検証するスキルです。偵察、スキャン、Webテストの例を示し、書面による許可、範囲の明確化、記録を重視します。

主な機能

  1. 01偵察とネットワークマッピングを扱う
  2. 02ポートおよびWebスキャンの例を提示
  3. 03SQLインジェクションとXSSのテストを扱う
  4. 04許可、範囲、記録を重視

活用シーン

  1. 01対象ドメインとサブドメインの列挙
  2. 02許可された範囲でポートやWebサービスをスキャン
  3. 03範囲内で一般的なWeb脆弱性を検査
  4. 04結果を記録し、重大な問題を速やかに報告

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/bagelhole/devops-security-agent-skills --skill penetration-testing

インストール後、Claude Code で/penetration-testingを入力して読み込まれたか確認します。

詳細

ペネトレーションテスト

許可を得たテストを通じて、セキュリティ対策を検証します。

フェーズ

pentest_phases:
  1_reconnaissance:
    - Passive information gathering
    - DNS enumeration
    - Network mapping
    
  2_scanning:
    - Port scanning
    - Service identification
    - Vulnerability scanning
    
  3_exploitation:
    - Attempt exploitation
    - Verify vulnerabilities
    - Document findings
    
  4_post_exploitation:
    - Privilege escalation
    - Lateral movement
    - Data access
    
  5_reporting:
    - Document findings
    - Risk assessment
    - Remediation recommendations

偵察

# DNS enumeration
dig example.com ANY
host -l example.com

# Subdomain discovery
subfinder -d example.com

# WHOIS
whois example.com

スキャン

# Port scan
nmap -sV -sC -p- target.com

# Web scanning
nikto -h https://target.com
dirb https://target.com

# Vulnerability scan
nmap --script vuln target.com

Web テスト

# SQL injection test
sqlmap -u "http://target.com/page?id=1"

# XSS testing
# Use Burp Suite or manual testing

# Directory traversal
curl "http://target.com/file?path=../../../etc/passwd"

実施ルール

scope:
  in_scope:
    - target.com
    - api.target.com
  out_of_scope:
    - production-db.target.com
    - third-party services
  
  testing_window: "Weekdays 2-6 AM UTC"
  emergency_contact: "[email protected]"

ベストプラクティス

  • 必ず書面で許可を得てください
  • 明確な範囲を定めてください
  • すべてを記録してください
  • 重大な調査結果はただちに報告してください
  • 安全なエクスプロイト手法のみを使用してください

関連スキル

コメント