AI & Software Engineering · 12 lessons
Secure a web app and spot the new risks of AI agents
From the browser to the AI agent: twelve lessons on why web apps get broken, how to close the classic holes, and how prompt injection and over-trusted agents bring the same mistakes back.
Continue to the app ↗Lessons in this path
- Draw the trust boundary of a web app
- Stop SQL injection with parameterised queries
- Stop cross-site scripting with output encoding
- Protect logins with hashed passwords and safe sessions
- Enforce access control on every request
- Block forged requests with CSRF tokens, SameSite and CORS
- Keep traffic, secrets and settings safe
- Keep dependencies, builds and the OWASP Top 10 under control
- Understand prompt injection in AI assistants
- Defend against instructions hidden in documents, pages and emails
- Limit what an AI agent can do with permissions and tools
- Build guardrails, approval gates and monitoring around AI features
Start this path for free in the Cultive app.
Continue to the app ↗Missing something?