insecure-design
This skill should be used when the user asks to "check for design flaws", "analyze security design", "find insecure design patterns", "review threat model"…
от florianbuetow★ 22 звезды на GitHub
Установить insecure-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Insecure Design Analysis (OWASP A04:2021)
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.
Supported Flags
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. |
Framework Context
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:
- Missing threat modeling: No systematic identification of threats during design
- Insufficient security requirements: Security not considered in user stories or specs
- No secure design patterns: Missing rate limiting, account lockout, CSRF protection
- Missing defense in depth: Single layer of security with no backup controls
- Business logic security gaps: Exploitable workflows, race conditions in transactions
- Trust boundary violations: Client-side enforcement of server-side rules
STRIDE Mapping: All categories (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege)
Detection Patterns
Read references/detection-patterns.md for the full pattern catalog with
language-specific examples, regex heuristics, and false positive guidance.
Pattern Summary:
- Missing rate limiting on sensitive endpoints
- No CSRF protection on state-changing operations
- Missing account lockout after failed authentication attempts
- Absence of input validation layer
- No security headers middleware
- Trust-the-client design patterns (client-side-only validation)
Workflow
Step 1: Determine Scope
- Parse
--scopeflag (default:changed). - Resolve to a concrete file list.
- For design analysis, prioritize these file categories:
- HTTP handlers/controllers: Routes, endpoints, API handlers
- Authentication flows: Login, registration, password reset, MFA
- Middleware/interceptors: Request processing pipeline configuration
- Configuration files: Framework config, security settings, CORS setup
- Business logic: Transaction processing, workflows, state machines
- Client-side validation: Form validation, input checking in frontend code
- If scope is narrow (
file:orchanged), warn that design analysis benefits from broader scope and suggest--scope branchor--scope full.
Step 2: Check for Scanners
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."
Step 3: Run Scanners
If semgrep is available, run with rules targeting:
- Missing security headers
- CSRF token absence
- Missing rate limiting decorators/middleware
semgrep scan --config auto --json --quiet <target>
Filter results to design-relevant rules only. Normalize to findings schema.
Step 4: Claude Analysis
This is the core of insecure design detection. Read scoped files and evaluate:
- Map the application architecture:
- Identify entry points (routes, API endpoints, event handlers).
- Identify trust boundaries (client/server, service/service, user/admin).
- Map the request
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/detection-patterns.md
FAQ
Что делает скилл insecure-design?
This skill should be used when the user asks to "check for design flaws", "analyze security design", "find insecure design patterns", "review threat model", "check business logic security", "find missing security controls", or mentions "insecure design" in a security context. Maps to OWASP Top 10 2021 A04:2021 - Insecure Design.
Как установить скилл insecure-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл insecure-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…