mcpField
A
adversarial-thinking

adversarial-thinking

github.com/wojons生産性390 回インストール30 週間前に更新
リポジトリ

adversarial-thinking について

adversarial-thinkingは、意思決定や設計、主張を体系的に検討するスキルです。Devil's AdvocateやRed Teamから、証拠の検証、防御策の計画まで、5つの視点を組み合わせます。

主な機能

  1. 01相互補完する5つの検討視点
  2. 02前提と推論への異議提起
  3. 03障害要因と攻撃経路の特定
  4. 04証拠に基づく主張の検証
  5. 05防御策の提案

活用シーン

  1. 01重大な意思決定のストレステスト
  2. 02セキュリティまたはコンプライアンス審査の準備
  3. 03システム設計の弱点発見
  4. 04チームの意思決定における集団思考の抑制

インストール

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

$npx skills add https://github.com/wojons/skills --skill adversarial-thinking

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

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

README.md
references/
README.md
scripts/
select-perspectives.sh

詳細

敵対的思考

体系的な敵対的思考のパターンを適用し、複数の相補的な視点から前提に疑問を投げかけ、弱点を特定し、意思決定の質を高めます。

どのようなときに使うか

次のような場合にこのスキルを使います。

  • 重大な結果を伴う重要な意思決定を行うとき
  • 現実世界の課題に耐えられるシステムを設計するとき
  • セキュリティレビュー、監査、コンプライアンスチェックに備えるとき
  • 障害、攻撃、市場の変化に対するレジリエンスを構築するとき
  • チームの集団思考や確証バイアスを防ぐとき
  • アイデア、設計、実装をストレステストするとき
  • システムのセキュリティと堅牢性を高めるとき
  • 組織全体で批判的思考力を養うとき
  • 競争環境や敵対的な状況に備えるとき

敵対的思考フレームワーク

敵対的思考では、複数の相補的な視点を用いて、アイデアに体系的に疑問を投げかけ、改善します。

1. 悪魔の代弁者 (@skills/devils-advocate)
  • 目的: 論理的な反論や別の視点を通じてアイデアに疑問を投げかけます
  • 焦点: 論理的思考、議論の質、別の説明
  • 使用場面: 意思決定、提案の評価、集団思考の防止
  • 出力: 反論、弱点、別のアプローチ
2. 前提の打破 (@skills/assumption-buster)
  • 目的: 反例を通じて前提を積極的に特定し、反証します
  • 焦点: 前提が破綻する状況、エッジケース、障害モードの発見
  • 使用場面: 重要なシステム、障害発生時のコストが高い状況、リスク評価
  • 出力: 反証された前提、障害シナリオ、リスク領域
3. レッドチーム (@skills/redteam)
  • 目的: 攻撃者の視点で考え、セキュリティの脆弱性を特定します
  • 焦点: セキュリティ上の弱点、侵入経路、攻撃経路
  • 使用場面: セキュリティ評価、侵入テスト、防御の準備
  • 出力: 脆弱性、攻撃シミュレーション、セキュリティ上の推奨事項
4. ホワイトハット (@skills/white-hat)
  • 目的: 防御的なセキュリティ能力を構築し、セキュリティ・バイ・デザインを実装します
  • 焦点: 保護制御、セキュリティアーキテクチャ、倫理的なテスト
  • 使用場面: セキュリティの実装、コンプライアンス、防御の構築
  • 出力: セキュリティ制御、防御に関する推奨事項、セキュリティ態勢
5. 信頼するが検証する (@skills/trust-but-verify)
  • 目的: 前提を信頼するのではなく、主張を独立して検証します
  • 焦点: 証拠の検証、主張の確認、現実との照合
  • 使用場面: テスト結果、進捗の主張、システムの機能の検証
  • 出力: 検証結果、不一致、確信度の評価

統合的な敵対的思考のワークフロー

フェーズ 1: 基盤への挑戦
  1. 悪魔の代弁者: 中核となるアイデアや推論に疑問を投げかけます
  2. 前提の打破: 基礎となる前提を特定し、検証します
  3. 信頼するが検証する: 証拠や主張を検証します
フェーズ 2: 設計のストレステスト
  1. 前提の打破: エッジケースや障害モードを見つけます
  2. レッドチーム: 攻撃経路やセキュリティ上の弱点を特定します
  3. 悪魔の代弁者: 設計上の決定や代替案に疑問を投げかけます
フェーズ 3: 防御の構築
  1. ホワイトハット: セキュリティ制御と防御を実装します
  2. 信頼するが検証する: 防御の有効性を検証します
  3. 悪魔の代弁者: 防御に抜け漏れがないか疑問を投げかけます
フェーズ 4: 継続的な改善
  1. 信頼するが検証する: 継続的に監視し、検証します
  2. レッドチーム: 定期的にセキュリティテストを行います
  3. 前提の打破: 定期的に前提を見直します

敵対的な視点を使い分ける場面

技術的な意思決定の場合:
  • アーキテクチャの選択: 悪魔の代弁者 + 前提の打破
  • テクノロジーの選定: 悪魔の代弁者 + 信頼するが検証する
  • 実装の詳細: 前提の打破 + ホワイトハット
  • セキュリティ設計: レッドチーム + ホワイトハット
製品の意思決定:
  • 機能の優先順位付け:Devil's Advocate + Assumption Buster
  • ユーザーエクスペリエンス:Assumption Buster + Trust But Verify
  • 市場戦略:Devil's Advocate + Red Team(競合分析)
  • ビジネスモデル:Assumption Buster + Trust But Verify
セキュリティ評価:
  • 侵入テスト:Red Team を主軸に、White Hat を補助として使用
  • セキュリティアーキテクチャ:White Hat を主軸に、Red Team を補助として使用
  • インシデント対応:White Hat を主軸に、Trust But Verify を補助として使用
  • コンプライアンス:White Hat を主軸に、Devil's Advocate を補助として使用
リスク管理:
  • リスクの特定:Assumption Buster を主軸に使用
  • リスク評価:Trust But Verify を主軸に使用
  • リスク軽減:White Hat を主軸に使用
  • リスク監視:Trust But Verify を主軸に使用

例

# Full adversarial assessment of a new feature
npm run adversarial:full -- --feature "payment-processing" --phases all

# Security-focused adversarial review
npm run adversarial:security -- --component "authentication" --perspectives "redteam,white-hat"

# Decision-focused adversarial review
npm run adversarial:decision -- --decision "microservices-architecture" --perspectives "devils-advocate,assumption-buster"

# Continuous adversarial monitoring
npm run adversarial:monitor -- --system "production" --frequency daily --perspectives "trust-but-verify,redteam"

出力形式

Adversarial Thinking Assessment
──────────────────────────────
Subject: New User Authentication System
Assessment Date: 2026-02-26
Adversarial Perspectives Applied: All 5
Assessment Duration: 4 hours

Perspective Analysis:

1. Devil's Advocate Assessment:
   - Challenged: "Biometric authentication improves security"
   - Counterargument: "Biometrics can't be changed if compromised"
   - Alternative: "Hardware security keys + biometrics"
   - Weakness identified: "Fallback to password weakens security"
   - Quality score: 8.2/10 (thorough challenging)

2. Assumption Buster Assessment:
   - Assumption tested: "Users have compatible biometric hardware"
   - Busted: "30% of users lack compatible hardware"
   - Failure scenario: "Users downgrade to weak password auth"
   - Edge case: "Biometric sensors fail in cold temperatures"
   - Risk level: High (security regression likely)

3. Red Team Assessment:
   - Attack vector: "Biometric spoofing with high-res photos"
   - Vulnerability: "Liveness detection not implemented"
   - Exploit: "Replay attack on biometric data"
   - Impact: "Account takeover possible"
   - Security score: 5.8/10 (vulnerable)

4. White Hat Assessment:
   - Defense implemented: "Multi-factor authentication"
   - Security control: "Rate limiting on failed attempts"
   - Gap: "No step-up authentication for sensitive actions"
   - Recommendation: "Add hardware security key support"
   - Defense score: 7.1/10 (good but incomplete)

5. Trust But Verify Assessment:
   - Claim verified: "Biometric reduces authentication time"
   - Result: "Verified (35% faster than password)"
   - Claim verified: "Biometric reduces support tickets"
   - Result: "Partially verified (reduces password reset tickets)"
   - Confidence: Medium (limited production data)

Integrated Findings:

Critical Issues:
1. Security regression risk (biometric fallback to password)
2. Biometric spoofing vulnerability (no liveness detection)
3. Hardware compatibility exclusion (30% of users)

Strengths:
1. Multi-factor implementation solid
2. Performance improvement verified
3. User convenience likely improved

Recommendations by Priority:

HIGH PRIORITY:
1. Implement liveness detection for biometric authentication
2. Remove password fallback (use alternative methods)
3. Add hardware security key support for incompatible devices

MEDIUM PRIORITY:
4. Implement step-up authentication for sensitive actions
5. Add biometric failure rate monitoring
6. Conduct user education on biometric security

LOW PRIORITY:
7. Enhance audit logging for biometric attempts
8. Add geographic anomaly detection
9. Implement biometric template update mechanism

Adversarial Thinking Value:
- Blind spots revealed: 7 significant blind spots identified
- Risk reduction: Estimated 68% reduction in security incidents
- Decision quality: Improved from 6.5/10 to 8.8/10
- Cost savings: Estimated $420K (breach prevention + support reduction)
- Time investment vs return: 4 hours → High ROI

Next Steps:
1. Address high-priority recommendations before launch
2. Schedule follow-up adversarial assessment in 90 days
3. Establish continuous adversarial monitoring
4. Share findings with development and security teams
5. Update threat model based on adversarial findings

Adversarial Thinking Maturity:
- Current: Integrated but manual
- Target: Automated adversarial testing in CI/CD
- Gap: Missing adversarial metrics and tracking
- Roadmap: 6 months to mature adversarial program

注記

  • 敵対的思考は、時折批判するだけでなく、体系として機能します
  • それぞれ異なる敵対的視点が互いを補完します
  • 敵対的な問いかけと建設的な改善のバランスを取ります
  • 組織の学びにつなげるため、敵対的な視点から得た知見を記録します
  • 欠点を見つけるだけでなく、レジリエンスの構築に敵対的思考を活用します
  • 敵対的思考を定期的に実践することで、現状に甘んじることを防げます
  • 最も価値のある敵対的思考は、深く信じられている前提に異議を唱えます
  • 敵対的思考の有効性を長期にわたって測定します
  • 敵対的な視点を歓迎する文化を育みます
  • 敵対的思考は、ただ批判するのではなく、成果を向上させるべきです
  • 最良の敵対的思考を行う人は、より良い解決策の構築を支援します
  • 特別なレビュー時だけでなく、通常のプロセスに敵対的思考を取り入れます

コメント