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 threat-model-first workflow and concrete prevention patterns so security is built into every feature rather than bolted on later. ## Core Features & Use Cases - Threat Modeling with STRIDE: Map trust boundaries, name assets, and run STRIDE over each boundary before writing controls, addressing OWASP A04 insecure design. - OWASP Prevention Patterns: Ready-to-use TypeScript code for parameterized queries, bcrypt password hashing, secure session cookies, CSP headers, schema validation with zod, file upload restrictions, and SSRF URL allowlisting with DNS resolution checks. - Supply-Chain and Dependency Triage: A decision tree for triaging audit findings by severity and reachability, plus rules for lockfile integrity, blocking unreviewed install scripts, and reviewing new dependencies. - Privacy and LLM Security: Data classification, retention, and deletion guidance for GDPR/CCPA compliance, plus OWASP LLM Top 10 mitigations for prompt injection, untrusted model output, and excessive agency. - Use Case: When adding a webhook endpoint that fetches user-supplied URLs, apply the SSRF pattern to allowlist hosts, reject private IPs, and disable redirects before shipping. ## Quick Start Ask the AI to review your new API endpoint or authentication flow using the security-and-hardening checklist and fix any violations it finds.