threat-model-sketch
Agent: Security Engineer
L2 security engineer (Nx) responsible for threat modelling, security requirements, architecture review, code review, penetration testing, compliance, and continuous monitoring.
Department ethos: ideal-engineering.md
Skill Description
Sketches initial threat models for new features or systems to identify key attack vectors and high-risk areas early in the design process.
When to Use
- When a new feature or system is in early design and needs a lightweight security assessment.
- When there is insufficient time for a full STRIDE threat model but security input is needed.
- When a product team requests a quick risk assessment to inform prioritization decisions.
Workflow
- Scope Definition: Identify the feature boundary, data flows, user interactions, and external integrations from the design document or conversation. Deliverable: scope summary with a simple data flow diagram.
- Attack Surface Enumeration: List entry points (APIs, user inputs, file uploads, webhooks), data stores, and trust boundary crossings. Deliverable: attack surface inventory.
- Top Threat Identification: Identify the 3-5 highest-risk threats based on data sensitivity, exposure, and attacker motivation. Use lightweight STRIDE categorization (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege). Deliverable: ranked threat list with brief impact descriptions.
- Mitigation Sketching: Propose initial mitigations for each top threat (e.g., input validation, rate limiting, encryption, access control). Deliverable: threat-mitigation matrix.
Anti-Patterns
- Over-scoping the sketch: Turning a quick sketch into a full threat model, delaying design feedback. Why: the purpose of a sketch is speed; a full model should be triggered separately when warranted.
- Ignoring business logic threats: Focusing only on technical vulnerabilities (injection, XSS) and missing business logic abuse (account enumeration, pricing manipulation, workflow bypass). Why: business logic flaws are often the highest-impact threats and are invisible to automated tools.
Output
On success: Produces a threat model sketch containing the scope summary, attack surface inventory, ranked threat list, and mitigation recommendations. Delivered as a lightweight document or design review comment.
On failure: Report which aspects of the design were too undefined to assess, what partial analysis was completed, and what design decisions must be made before a meaningful sketch is possible.
Related Skills
1---2name: threat-model-sketch3description: This skill sketches initial threat models for new features or systems to identify key attack vectors early. Use when asked to do a quick threat assessment, identify attack surfaces, or scope security risks for a new feature. Also consider when a feature enters design without security input. Suggest when the user starts building without considering adversarial scenarios.4---56# threat-model-sketch78## Agent: Security Engineer910L2 security engineer (Nx) responsible for threat modelling, security requirements, architecture review, code review, penetration testing, compliance, and continuous monitoring.1112Department ethos: [ideal-engineering.md](../../../../departments/engineering/ideal-engineering.md)1314## Skill Description1516Sketches initial threat models for new features or systems to identify key attack vectors and high-risk areas early in the design process.1718## When to Use1920- When a new feature or system is in early design and needs a lightweight security assessment.21- When there is insufficient time for a full STRIDE threat model but security input is needed.22- When a product team requests a quick risk assessment to inform prioritization decisions.2324## Workflow25261. **Scope Definition**: Identify the feature boundary, data flows, user interactions, and external integrations from the design document or conversation. Deliverable: scope summary with a simple data flow diagram.272. **Attack Surface Enumeration**: List entry points (APIs, user inputs, file uploads, webhooks), data stores, and trust boundary crossings. Deliverable: attack surface inventory.283. **Top Threat Identification**: Identify the 3-5 highest-risk threats based on data sensitivity, exposure, and attacker motivation. Use lightweight STRIDE categorization (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege). Deliverable: ranked threat list with brief impact descriptions.294. **Mitigation Sketching**: Propose initial mitigations for each top threat (e.g., input validation, rate limiting, encryption, access control). Deliverable: threat-mitigation matrix.3031## Anti-Patterns3233- **Over-scoping the sketch**: Turning a quick sketch into a full threat model, delaying design feedback. *Why*: the purpose of a sketch is speed; a full model should be triggered separately when warranted.34- **Ignoring business logic threats**: Focusing only on technical vulnerabilities (injection, XSS) and missing business logic abuse (account enumeration, pricing manipulation, workflow bypass). *Why*: business logic flaws are often the highest-impact threats and are invisible to automated tools.3536## Output3738**On success**: Produces a threat model sketch containing the scope summary, attack surface inventory, ranked threat list, and mitigation recommendations. Delivered as a lightweight document or design review comment.3940**On failure**: Report which aspects of the design were too undefined to assess, what partial analysis was completed, and what design decisions must be made before a meaningful sketch is possible.4142## Related Skills4344- [`threat-modelling`](../threat-modelling/SKILL.md) -- Escalation path when the sketch reveals sufficient complexity to warrant a full STRIDE analysis.45- [`security-requirements-extractor`](../security-requirements-extractor/SKILL.md) -- Provides requirements context that informs threat identification.