Stage 1 of 9 · 7 lessons · ~4 weeks
Security foundations for AI builders
The security ideas every AI security task stands on: threat modelling, trust boundaries, least privilege, secrets, the classic web weaknesses AI apps inherit, and the rules on what you may test.
Start: Threat modelling in four questionsLessons· one lesson for each topic, in this order
Do this
- Draw a threat model diagram for one small web app and answer the four questions.
- Mark every trust boundary on it with a dashed line.
- Move every secret in your projects out of code and scan your repositories with Gitleaks.
- Complete three web security labs on injection, XSS and access control.
- Write your own one-paragraph rules of engagement for practising on apps you own.
Start with· follow one of these
- RoadmapFreeSefism Cybersecurity Roadmap
Sefism · Beginner
Sefism's general security roadmap, for any foundation in this stage you want to study in more depth
- CourseFreeProfessor Messer's Security+ (SY0-701) Course
Professor Messer · Beginner
Free videos covering the core security concepts, from access control to cryptography
Practise
Keep handy
Also worth your time
Before moving on: A one-page note in your own words on threat modelling, trust boundaries, least privilege, secrets and the classic web weaknesses, plus a threat model diagram of one ordinary web app with its boundaries marked.

If you have no security background, do this stage properly, and use the Cybersecurity roadmap at /roadmaps/cybersecurity/ for anything that feels thin. AI security is ordinary security with a new and slippery component in the middle. People who skip the basics end up collecting prompt tricks; people who know them design systems where tricks do little harm.