What problem does it solve? Web applications that accept user input, manage sessions, or integrate external services are exposed to injection, XSS, SSRF, broken access control, and supply-chain attacks. This Skill provides a structured threat-modeling process and concrete prevention patterns so security controls are built into code rather than bolted on later. ## Core Features & Use Cases - Threat Modeling with STRIDE: Map trust boundaries, name assets, and run a lightweight STRIDE analysis before writing security controls. - OWASP Prevention Patterns: Ready-to-use TypeScript examples for parameterized queries, bcrypt password hashing, session cookie flags, CSP headers, CORS restriction, and SSRF URL allowlisting. - Three-Tier Boundary System: Clear rules for what to always do, what requires human approval, and what to never do (e.g., never commit secrets, never trust client-side validation). - AI/LLM Security: Guidance mapped to the OWASP LLM Top 10 for treating model output as untrusted input and constraining agent tool permissions. - Use Case: When adding a webhook endpoint that fetches user-supplied URLs, apply the SSRF pattern to allowlist hosts, resolve DNS, and reject private IP ranges before fetching. ## Quick Start Ask the agent to review your API route handlers for security issues and apply the hardening patterns for input validation, authentication, and headers.