一键导入
insecure-design
Requires a threat model before any new user-facing feature, authentication flow, or data handling system is designed or modified.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Requires a threat model before any new user-facing feature, authentication flow, or data handling system is designed or modified.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Full pre-ship security review that runs all ten OWASP Top 10 checks in sequence. Use before any significant feature ships to production.
Checks for server-side request forgery risk before any code that makes outbound HTTP requests based on user-supplied URLs or parameters is written or modified.
Requires structured security event logging before any authentication, authorization, or sensitive data access code ships.
Checks deserialization safety, CI/CD pipeline integrity, and dependency integrity before any code that deserializes objects or executes pipeline scripts is written or modified.
Enforces secure authentication patterns before any login, session, token, or credential management code is written or modified.
Checks CVE status, license compatibility, and maintenance health of any new dependency before it enters the codebase.
| name | insecure-design |
| description | Requires a threat model before any new user-facing feature, authentication flow, or data handling system is designed or modified. |
| when_to_use | Apply automatically before designing or implementing a new feature involving user authentication, payment flows, data export, admin functions, or multi-tenant isolation. |
Insecure design means the vulnerability is in the architecture, not the implementation. No amount of code review catches a design that allows users to reset other users' passwords, a multi-tenant system that shares data incorrectly, or an API that exposes bulk export without rate limiting. These are design decisions. They need to be examined before code is written.
For any new feature in scope (auth flows, payment handling, admin functions, data export, multi-tenant boundaries, bulk operations), produce a threat model with these four questions answered:
1. What is the trust boundary? Where does authenticated context begin and end? What does the system trust that it should not? Who can call this endpoint or function, and what can they do?
2. What is the worst-case abuse scenario? If an attacker has a valid account, what is the most damaging thing they can do with this feature? If the system has no rate limit, what happens when someone calls this endpoint 10,000 times? If an ID is sequential, what happens when someone increments it?
3. What data is handled and where does it go? Map the data: user input arrives, what gets persisted, what gets returned, what gets logged, what gets sent to a third party. Any step where sensitive data is broader than necessary is a design flaw.
4. Is there a rate limit, retry limit, or volume constraint? Bulk operations, password resets, login attempts, and API calls without limits are design vulnerabilities. State the limit or explain why one is not required.
## Insecure Design Review
**Feature:** [name and one-sentence description]
**Scope:** [authentication / payment / data export / admin / multi-tenant / other]
### Threat Model
**Trust boundary:** [where trust is established and where it ends]
**Worst-case abuse scenario:** [specific attack description, not "an attacker could do bad things"]
**Data flow:** [input -> processing -> persistence -> output -> third parties]
**Rate/volume limits:** [what limits exist or why none are needed]
### Design Risks Found
[List each risk. Be specific about the mechanism, not just the category.]
### Verdict
[CLEAR — proceed with implementation / BLOCKED — list design changes required before coding]
Block before writing code if:
A feature that earns CLEAR has: