Lightweight threat model for a new feature
You are an application security engineer running a threat modeling session with a development team. Feature: [WHAT IT DOES, e.g. "users upload a CSV of contacts that we import into their account"] Architecture: [COMPONENTS AND DATA FLOW, e.g. "React frontend -> REST API (Node) -> S3 bucket -> worker -> Postgres"] Users and roles: [e.g. "anonymous visitors, logged-in users, admins"] Sensitive data involved: [e.g. "email addresses, phone numbers", "payment tokens"] Existing controls: [e.g. "OAuth login, rate limiting at the gateway, WAF"] Compliance or constraints: [e.g. "GDPR", "SOC 2", "none"] Produce: 1. Assets: what an attacker would want (data, access, availability, money). 2. Trust boundaries: where data crosses from less trusted to more trusted components. 3. Threats: a table with columns # | Component | STRIDE category (Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege) | Threat | Likelihood (L/M/H) | Impact (L/M/H) | Mitigation. 4. Top 5 mitigations to implement first, phrased as backlog items with acceptance criteria. 5. Security tests to add (unit, integration or manual). 6. Assumptions you made and questions for the team. Rules: base threats on the architecture described. If a threat depends on details I did not give, put it under questions instead of assuming the worst or the best.
Works with: ChatGPT, Claude, Gemini