penetration-testing について
penetration-testingは、許可を得たテストでセキュリティ対策を検証するスキルです。偵察、スキャン、Webテストの例を示し、書面による許可、範囲の明確化、記録を重視します。
主な機能
- 01偵察とネットワークマッピングを扱う
- 02ポートおよびWebスキャンの例を提示
- 03SQLインジェクションとXSSのテストを扱う
- 04許可、範囲、記録を重視
活用シーン
- 01対象ドメインとサブドメインの列挙
- 02許可された範囲でポートやWebサービスをスキャン
- 03範囲内で一般的なWeb脆弱性を検査
- 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]"
ベストプラクティス
- 必ず書面で許可を得てください
- 明確な範囲を定めてください
- すべてを記録してください
- 重大な調査結果はただちに報告してください
- 安全なエクスプロイト手法のみを使用してください
関連スキル
- dast-scanning - 自動テスト
- vulnerability-scanning - 脆弱性の発見
コメント
Markdown 対応