stride-analysis-patterns
它能做什么
这个工具可以帮你找出系统中潜在的安全弱点。它采用 STRIDE 方法,从攻击者的角度思考系统可能遭受的攻击。
适用场景
- ✓构建新系统时。
- ✓审查现有系统的安全性时。
- ✓记录安全风险时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/security-scanning/skills/stride-analysis-patterns/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“用 STRIDE 方法分析这个电商应用的安全性。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会从六类威胁来检查系统:冒充他人、篡改数据、否认操作、非法获取信息、扰乱服务,以及获取额外权限。它会提出一系列问题,帮助你找出这些问题可能出现在哪里。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
STRIDE Analysis Patterns
Systematic threat identification using the STRIDE methodology.
When to Use This Skill
- Starting new threat modeling sessions
- Analyzing existing system architecture
- Reviewing security design decisions
- Creating threat documentation
- Training teams on threat identification
- Compliance and audit preparation
Core Concepts
1. STRIDE Categories
S - Spoofing → Authentication threats
T - Tampering → Integrity threats
R - Repudiation → Non-repudiation threats
I - Information → Confidentiality threats
Disclosure
D - Denial of → Availability threats
Service
E - Elevation of → Authorization threats
Privilege
2. Threat Analysis Matrix
| Category | Question | Control Family |
|---|---|---|
| Spoofing | Can attacker pretend to be someone else? | Authentication |
| Tampering | Can attacker modify data in transit/rest? | Integrity |
| Repudiation | Can attacker deny actions? | Logging/Audit |
| Info Disclosure | Can attacker access unauthorized data? | Encryption |
| DoS | Can attacker disrupt availability? | Rate limiting |
| Elevation | Can attacker gain higher privileges? | Authorization |
Templates and detailed worked examples
Full template library lives in references/details.md. Read that file when you need concrete templates for this skill.
Best Practices
Do's
- Involve stakeholders - Security, dev, and ops perspectives
- Be systematic - Cover all STRIDE categories
- Prioritize realistically - Focus on high-impact threats
- Update regularly - Threat models are living documents
- Use visual aids - DFDs help communication
Don'ts
- Don't skip categories - Each reveals different threats
- Don't assume security - Question every component
- Don't work in isolation - Collaborative modeling is better
- Don't ignore low-probability - High-impact threats matter
- Don't stop at identification - Follow through with mitigations
常见问题
什么是 STRIDE?
STRIDE 是六类威胁的缩写:欺骗(Spoofing)、篡改(Tampering)、否认(Repudiation)、信息泄露(Information Disclosure)、拒绝服务(Denial of Service)和权限提升(Elevation of Privilege)。
STRIDE 如何帮助发现弱点?
它为每一类威胁提供了一组问题,帮助你系统地思考系统可能在哪些方面存在漏洞。
使用这个工具需要是安全专家吗?
不需要。这个工具面向所有需要考虑安全问题的人,即使没有深厚的技术背景也能使用。
详情
作者的原始描述
Apply STRIDE methodology to systematically identify threats. Use when analyzing system security, conducting threat modeling sessions, or creating security documentation.
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6781
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …