mcpField
A
adversarial-thinking

adversarial-thinking

github.com/wojons生产力390 次安装30 周前更新
代码仓库

关于 adversarial-thinking

adversarial-thinking 是用于系统性审视决策、设计和主张的技能。它结合五种视角,从反方论证和红队分析到证据核验与防御规划。

主要功能

  1. 01五种互补审查视角
  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. 假设粉碎者:定期审查假设

何时使用哪种对抗视角

技术决策:
  • 架构选择:唱反调者 + 假设粉碎者
  • 技术选型:唱反调者 + 信任,但要核实
  • 实现细节:假设粉碎者 + 白帽
  • 安全设计:红队 + 白帽
用于产品决策:
  • 功能优先级排序:唱反调者 + 假设破坏者
  • 用户体验:假设破坏者 + 信任但验证
  • 市场策略:唱反调者 + 红队(竞争分析)
  • 商业模式:假设破坏者 + 信任但验证
用于安全评估:
  • 渗透测试:红队为主,白帽为辅
  • 安全架构:白帽为主,红队为辅
  • 事件响应:白帽为主,信任但验证为辅
  • 合规性:白帽为主,唱反调者为辅
用于风险管理:
  • 风险识别:假设破坏者为主
  • 风险评估:信任但验证为主
  • 风险缓解:白帽为主
  • 风险监控:信任但验证为主

示例

# 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

备注

  • 对抗性思维是一套体系,而非偶尔的批评
  • 不同的对抗性视角能够相互补充
  • 在对抗性挑战与建设性改进之间取得平衡
  • 记录对抗性发现,促进组织学习
  • 运用对抗性思维增强韧性,而不只是找错
  • 定期进行对抗性实践,避免自满
  • 最有价值的对抗性思维会挑战根深蒂固的信念
  • 随时间推移衡量对抗性思维的成效
  • 培养欢迎对抗性观点的文化
  • 对抗性思维应改善结果,而不只是批评
  • 最优秀的对抗性思考者能够帮助构建更好的解决方案
  • 将对抗性思维融入日常流程,而不只是专项审查

评论

支持 Markdown