Interactive Developer Academy

Security playbooks for AI builders.

Master vulnerability remediation, understand real-world exploits, and test fixes with deterministic CLI commands across Next.js, Express, and Nginx.

Choose Your Learning Track

TRACK2 Guides

AI Code Smells & Common Pitfalls

Securing web applications developed with AI coding tools (Cursor, Lovable, v0, Bolt, Claude Code).

Filter by track
TRACK3 Guides

API & Modern Web Defenses

Bulletproof defenses for REST, GraphQL, CORS origins, and defensive HTTP security headers.

Filter by track
TRACK3 Guides

Injection & Input Sanitization

Stopping SQL injection, Cross-Site Scripting (XSS), and Server-Side Request Forgery (SSRF).

Filter by track
TRACK2 Guides

Identity, RBAC & Multi-Tenancy

Hardening session management, multi-tenant database isolation, and fine-grained RBAC.

Filter by track
Difficulty:
Showing 10 of 10 security playbooks
AI Code Smells
CWE-1188• BEGINNER

The Developer's Guide to Auditing AI-Generated Web Applications

How AI code assistants systematically introduce security vulnerabilities, and a practical pre-deployment verification workflow.

#AI Security#Cursor#Lovable
8 min read
Read playbook
API Security
CWE-942• INTERMEDIATE

Fixing Permissive Wildcard CORS with Authenticated Credentials

Why Access-Control-Allow-Origin: * combined with credentials enables complete session hijacking, and how to configure strict origin whitelists.

#CORS#Browser Security#OWASP A05
6 min read
Read playbook
AI Code Smells
CWE-798• BEGINNER

Preventing Exposed API Keys & Secrets in AI-Generated Frontend Bundles

Understanding why environment variables with NEXT_PUBLIC_ or VITE_ are baked into client JS, and how to establish strict secret isolation.

#Secrets#Environment Variables#Next.js
5 min read
Read playbook
Injection Defenses
CWE-918• ADVANCED

Defeating Server-Side Request Forgery in Webhooks & Data Fetchers

How unvalidated backend HTTP fetch calls expose internal cloud metadata (169.254.169.254) and private networks, and how to implement socket-level IP pinning.

#SSRF#Cloud Security#AWS Metadata
10 min read
Read playbook
API Security
CWE-862• INTERMEDIATE

Securing Next.js Server Actions Against Missing Authorization

Server Actions are publicly accessible POST endpoints by default. Here is how to prevent unauthenticated execution and broken access control.

#Next.js#Server Actions#Broken Access Control
7 min read
Read playbook
Injection Defenses
CWE-89• INTERMEDIATE

Preventing SQL Injection in Raw Queries and Modern ORMs

Why string concatenation in raw queries and unsafe ORM raw clauses ($queryRawUnsafe) lead to database compromise, and how to use parameterized queries.

#SQLi#Database Security#PostgreSQL
8 min read
Read playbook
Injection Defenses
CWE-79• INTERMEDIATE

Stored & Reflected Cross-Site Scripting (XSS) in Modern React & Next.js

React escapes strings in JSX, but dangerouslySetInnerHTML, javascript: URLs, and unescaped SSR hydration payloads still introduce critical XSS.

#XSS#React#Next.js
7 min read
Read playbook
Security Headers
CWE-1021• BEGINNER

Configuring Bulletproof HTTP Security Headers (CSP, HSTS, X-Frame-Options)

A practical guide to implementing Content-Security-Policy, Strict-Transport-Security, and framing protections in Next.js and Nginx.

#Headers#CSP#HSTS
6 min read
Read playbook
Auth & Sessions
CWE-639• ADVANCED

Enforcing Bulletproof Tenant Isolation & IDOR Defenses in Multi-Tenant SaaS

Preventing Insecure Direct Object References (IDOR) by coupling every database query with the caller active organization ID.

#IDOR#Multi-Tenancy#Authorization
9 min read
Read playbook
Auth & Sessions
CWE-384• ADVANCED

Cryptographically Secure Session Management with Token Hashing

Why raw session tokens must never be persisted in databases, and how to implement SHA-256 session token hashing with __Host- cookie prefixes.

#Session Security#Token Hashing#Cookies
9 min read
Read playbook