/appsec:insecure-designfrom appsec
Analyzes application architecture and code for insecure design patterns, missing security controls, and business logic flaws. Maps to OWASP A04:2021. Useful for threat modeling and design review.
Ships in appsec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze application architecture and code for missing or ineffective security controls that result from absent threat modeling, insufficient security requirements, or failure to use secure design patterns. This is the most subjective OWASP category -- automated scanners provide minimal coverage, so Claude's architectural reasoning is the primary value.
Read ../../shared/schemas/flags.md for the full flag specification. This skill
supports all cross-cutting flags. Key behaviors:
| Flag | Insecure Design-Specific Behavior |
|---|---|
--scope | Default changed. Broader scopes (branch, full) are strongly recommended since design flaws are architectural. |
--depth quick | Check for obvious missing controls (rate limiting, CSRF tokens, security headers). Pattern scan only. |
--depth standard | Full code read of scoped files, analyze request flows and business logic for design gaps. |
--depth deep | Standard + map full request lifecycle, identify trust boundaries, analyze defense-in-depth layering across the codebase. |
--depth expert | Deep + threat model construction, attack tree analysis, DREAD scoring per design flaw. |
--severity | Filter output. Insecure design findings span all severity levels. |
--fix | Generate implementation suggestions for missing controls. |
--explain | Especially useful for this category: adds threat modeling context and design rationale. |
OWASP A04:2021 - Insecure Design
Missing or ineffective security controls as a result of missing threat modeling during design. Unlike implementation bugs (e.g., SQL injection), insecure design refers to the absence of security controls that should have been designed in from the start. No amount of perfect implementation can fix a fundamentally insecure design.
Key concern areas:
STRIDE Mapping: All categories (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege)
Read references/detection-patterns.md for the full pattern catalog with
language-specific examples, regex heuristics, and false positive guidance.
Pattern Summary:
--scope flag (default: changed).file: or changed), warn that design analysis benefits
from broader scope and suggest --scope branch or --scope full.Design flaws have minimal scanner coverage. Check for:
| Scanner | Detect | Design Coverage |
|---|---|---|
| semgrep | which semgrep | Limited: can detect some missing security headers, CSRF patterns |
For this category, Claude analysis is the primary detection method. Scanners provide supplementary signal at best. Note in output: "Insecure design analysis is primarily reasoning-based. Scanner coverage for this category is minimal."
If semgrep is available, run with rules targeting:
semgrep scan --config auto --json --quiet <target>
Filter results to design-relevant rules only. Normalize to findings schema.
This is the core of insecure design detection. Read scoped files and evaluate:
Map the application architecture:
Evaluate security control presence:
Analyze trust boundaries:
Evaluate defense in depth:
Assess business logic security:
At --depth deep or --depth expert, construct a lightweight threat model:
Output findings using the format from ../../shared/schemas/findings.md.
Each finding must include:
DESGN-001, DESGN-002, etc.Because design findings are inherently more subjective than implementation bugs,
include clear reasoning for each finding. Explain why the control is expected and
what threat it mitigates. Use confidence: medium for most design findings unless
the absence is unambiguous (e.g., zero rate limiting on a public login endpoint).
These are the primary insecure design patterns to detect. Each has detailed
examples and heuristics in references/detection-patterns.md.
Primary: Claude reasoning-based analysis (scanners provide minimal coverage
for design flaws).
Supplementary: semgrep (limited rules for missing headers, CSRF patterns).
Fallback: Grep regex patterns from references/detection-patterns.md.
This category relies primarily on Claude's ability to:
Scanner findings for this category should be treated as supplementary evidence, not primary detection. Report scanner status but emphasize that design analysis is reasoning-based.
Use finding ID prefix DESGN (e.g., DESGN-001, DESGN-002).
All findings follow the schema in ../../shared/schemas/findings.md with:
references.owasp: "A04:2021"references.stride: One or more of "S", "T", "R", "I", "D", "E"metadata.tool: "insecure-design"metadata.framework: "owasp"metadata.category: "A04"CWE Mapping by Design Flaw Type:
| Design Flaw | CWE | Typical Severity |
|---|---|---|
| Missing rate limiting | CWE-770 | high |
| No CSRF protection | CWE-352 | high |
| Missing account lockout | CWE-307 | high |
| Client-side-only validation | CWE-602 | high |
| Missing security headers | CWE-693 | medium |
| No defense in depth | CWE-657 | medium |
| Business logic flaws | CWE-840 | high |
| Missing tenant isolation | CWE-284 | critical |
| No idempotency controls | CWE-362 | medium |
After all findings, output a summary:
| Design Flaw Category | Critical | High | Medium | Low |
|------------------------|----------|------|--------|-----|
| Rate Limiting | | | | |
| CSRF Protection | | | | |
| Account Security | | | | |
| Input Validation | | | | |
| Security Headers | | | | |
| Trust Boundaries | | | | |
| Defense in Depth | | | | |
| Business Logic | | | | |
Followed by: top 3 priorities, threat model observations (at --depth deep+),
and overall design security assessment.
What SKILL.md sets; muted values are Claude Code's defaults
62 skills in this plugin
/access-controlThis skill should be used when the user asks to "check for access control issues", "analyze authorization", "find IDOR vulnerabilities", "audit CORS configuration", "check for privilege escalation", or mentions "access control", "authorization", "IDOR", "CORS", "JWT tampering", or "directory traversal" in a security context. Maps to OWASP Top 10 2021 A01: Broken Access Control.
/apiThis skill should be used when the user asks to "check API security", "audit REST API", "find BOLA vulnerabilities", "check for mass assignment", "analyze API rate limiting", "detect excessive data exposure", or mentions "API security", "BOLA", "IDOR", "mass assignment", "rate limiting", "broken function-level authorization", "excessive data exposure", or "OWASP API Top 10" in a security context.
/attack-surfaceThis skill should be used when the user asks to "map attack surface", "list entry points", "inventory API endpoints", "find all inputs", "enumerate routes", "discover exposed endpoints", or "map external interfaces". Also triggers when the user asks about exposed APIs, form handlers, file upload endpoints, WebSocket handlers, CLI argument parsers, or wants to understand where external data enters the system.
/authThis skill should be used when the user asks to "check for authentication issues", "analyze auth", "find credential vulnerabilities", "review login security", "check session management", or mentions "authentication", "passwords", "MFA", "sessions", or "brute force" in a security context. Maps to OWASP Top 10 2021 A07: Identification and Authentication Failures.
/business-logicThis skill should be used when the user asks to "check business logic security", "find logic flaws", "audit workflow security", "check for coupon abuse", "detect negative amount exploits", "analyze state machine security", or mentions "business logic", "workflow bypass", "negative amount", "coupon abuse", "self-referral", "state manipulation", or "time-based exploit" in a security context.
/configThis skill should be used when the user asks to "configure security", "appsec settings", "security preferences", or invokes /appsec:config. Manages security tool preferences and thresholds.
npx claudepluginhub florianbuetow/claude-code --plugin appsecOther plugins' skills for the same job