Home › Courses › AI Security & Red Teaming

AI Security & Red Teaming

Secure, red-team, and defend production AI systems

Learn to attack AI systems the way real red teamers do, then defend them. Scope real targets, reproduce attacks safely in an isolated environment, capture the evidence, implement controls, retest your fixes, and write the report that convinces stakeholders. Covers LLM, model, RAG, agent, governance, and production surfaces.

10 phases · 54 lessons · 54 labs · 4 projects

Take ML & AI Engineering first — this course builds on it.

What you finish with

Curriculum

Tools

OWASP LLM Top 10 · Garak · PyRIT · Promptfoo · NeMo Guardrails · Guardrails AI · MITRE ATLAS · Adversarial Robustness Toolbox · Langfuse · Docker · Python · FastAPI

What AI security engineering actually is

AI security blends offensive security (red teaming) and defensive engineering (guardrails, monitoring, compliance) around a new class of system: one that reasons over natural language and can be manipulated through it. It is not traditional AppSec with an LLM bolted on — the attack surface, the failure modes, and the defenses are structurally different.

What you do every day

You scan models with Garak, run multi-turn attacks with PyRIT, build and tune guardrail pipelines, review agent codebases for excessive agency, write threat models for new AI features, and respond when a guardrail bypass makes it to production. You write red team reports that get read by engineering leadership, not just other security engineers.

Why companies are hiring for this now

Every company shipping an LLM feature now has an attack surface that didn't exist two years ago: prompt injection, jailbreaks, RAG poisoning, agent privilege escalation. AI security engineering job postings grew 124% year-over-year, and 89% of them require prompt injection and jailbreak expertise specifically. There is no large pool of experienced candidates yet — this is a wide-open niche.

What this course is not

It is not a general cybersecurity course with a few AI slides added. It is not a theory course — you will not just read the OWASP LLM Top 10, you will exploit and defend against every category of it. And it does not pretend the field has a finished playbook: you will learn the frameworks that exist (MITRE ATLAS, NIST AI RMF) and the reasoning skills to handle the attack patterns that show up in your job next month, which no course has documented yet.

Common questions

What background do I need for the AI Security & Red Teaming course?

Python and a basic understanding of LLM APIs (OpenAI, Anthropic) and of what RAG and agents are. No security experience needed: Phases 1 and 2 teach security fundamentals and the OWASP LLM Top 10 from scratch. ML & AI Engineering is a good foundation but not required.

Is this standalone or does it require the ML & AI Engineering course?

Fully standalone. If you already know Python and the basics of LLMs, RAG, and agents, you can start here directly. If you're newer to AI engineering, completing the Python Fundamentals phase of ML & AI Engineering first will make Phases 3–5 easier.

How is this different from the security content in the ML & AI Engineering course?

ML & AI Engineering covers evaluation and safety in one phase (Evaluation & Safety) of a broader curriculum. This course spends 55 lessons on security: the full OWASP LLM Top 10, prompt injection and jailbreaking, adversarial ML, RAG and agent security, guardrail frameworks, red teaming with Garak and PyRIT, AI governance and compliance, and production security architecture.

How long does this course take?

About 68 hours across 10 phases, computed from the lengths of its lessons. At 8–10 hours a week that is about 7–9 weeks. The free phases take about 11 hours, so you can see whether it suits you before you pay. There's no deadline: you keep access for as long as you're subscribed.

Do I need a GPU or special hardware?

No. Every lab runs on CPU. The adversarial ML labs (Phase 3) use small models specifically so they run locally without GPU access. Red teaming labs (Phase 6) call hosted or free-tier LLM APIs.

What specific jobs does this course prepare me for?

AI Security Engineer, AI Red Team Engineer, DevSecOps for AI Pipelines, AI Security Architect, AI Governance & Compliance Engineer, LLM Application Security Engineer, Adversarial ML Researcher/Engineer, and AI Security Consultant. Every phase maps to specific hiring signals for these roles.

How is AI red teaming different from traditional penetration testing?

Traditional pentesting is about the CIA triad: confidentiality, integrity, availability. AI red teaming adds context-specific harms (bias, manipulation, factuality, safety) to those concerns. The attack surface differs too: you attack model behavior through natural language and retrieved content, not only network and application boundaries. The course follows the Microsoft AI Red Team methodology, which was built for that difference.

Is this field established enough to have a reliable curriculum?

The field is young and moving fast, so there is no 20-year-old playbook. The course is built from the frameworks that do exist and are stable (OWASP LLM Top 10, MITRE ATLAS, NIST AI RMF) and the tools security teams use in production (Garak, PyRIT, NeMo Guardrails, Promptfoo). You also learn to reason from first principles, because you will meet attack patterns no course has documented yet.

Key terms in this course

Agent · Guardrails · Red Teaming · Prompt Injection · RAG (Retrieval-Augmented Generation) · Embedding · Inference · MCP (Model Context Protocol)

Continue your learning path

Agentic AI Engineering · Responsible AI Engineering · ML & AI Engineering

Start the AI Security & Red Teaming course

Create a free account — the opening phases of 29 of 35 courses, and the first lesson of every phase, are free, no credit card. Or see Pro pricing.

All courses · Pricing · About · FAQ · Glossary · Projects by topic