Skip to content
BriskStack Study
Sign in
BriskStack StudySign in

Foundations

AI Security Mastery Roadmap

Who this course is for

This course is for a working engineer who wants to attack and defend AI systems: language models, retrieval-augmented generation (RAG) pipelines, agents and the tools they call. It also suits someone who already holds an AI security certificate and wants to stay current, because the course is revised as the field moves. It runs 26 weeks in four phases, and you study alone, at your own pace.

What you should already know

You should know web basics and some security, and be able to write and run short Python programs. You do not need machine learning: weeks 1 to 3 teach the math, the models and the Python tooling that later weeks attack.

What you will be able to do

By the end of the course you can attack an AI system the way an adversary would, and defend it with controls whose effect you have measured.

  • Phase 1 (weeks 1 to 8): build a small classifier, a RAG pipeline and a minimal Model Context Protocol (MCP) server, run a local model, and threat-model an AI application with STRIDE and the OWASP LLM Top 10.
  • Phase 2 (weeks 9 to 16): run prompt injection, jailbreak, adversarial machine learning, RAG poisoning, MCP and supply chain attacks, and test a model with red-team tools such as Garak and PyRIT.
  • Phase 3 (weeks 17 to 21): build guardrails and measure how often your attacks get past them, sandbox an agent and limit where it can connect, and sign and verify a model artifact.
  • Phase 4 (weeks 22 to 26): map an AI system to the NIST AI RMF and MITRE ATLAS, and write an AI incident response playbook.

The course ends with a capstone in week 26: a full red-team engagement, written up as a report with a one-page summary for executives. The course does not supply the target system yet, so for now you run it against an AI application you set up yourself.

How much time it takes

Every reading and lab in a week's Core Path carries a time estimate. Added up, a week's Core Path takes a median of about 3.7 hours, from 1 hour (week 16) to almost 10 (week 18). The chapter (a median of about 5,500 words) and the checklist, which carries no estimates, come on top. Plan on at least five hours for a typical week.

How the course stays current

The course is published in editions, cut when the content has changed, usually several times a week. The Editions page lists what each edition changed. A scheduled editor, which is a language model, drafts the changes, and most of the text was written that way. A person now approves the editor's changes before they are published, but does not check every claim against its source, and older text was not all read by a person. When the text and its cited source disagree, trust the source.

What this course is not

This course is not a certification and earns you no certificate. It is meant to sit beside the external exams, before or after you take one; the Certification path page lists them. Nobody grades your work yet: you check each lab and each Check yourself answer against the chapter yourself. Labs you can pass or fail are planned and not built.

Canonical reference document. Read this before the weeks begin. Each week's checklist, beside its chapter, is the execution layer where you tick boxes.

Last verified against trends: 2026-10-01. The sources are the monthly retro of October 2026, which covers structural changes, and the reconciliation of 2026-09-28, which covers the content diff; both are in the repository's logs/. The OWASP LLM Top 10 is pinned to the 2026 edition, reordered in August 2026, when 8 of its 10 categories moved. MITRE ATLAS is pinned to v2026.09 (15 September 2026). The OWASP Agentic Top 10 (ASI) is pinned to the 2026 release, now a ranked list that runs from ASI01 (Agent Goal Hijack) to ASI10 (Rogue Agents).


How to use this document

The roadmap has 4 phases and 26 weeks, and it mirrors the checklist. Each week has four parts:

  • Concept: what the topic is and why it matters.
  • Key references: primary sources, papers, CVEs and frameworks.
  • Verified status: fresh, aging or stale, with the date it was last reviewed.
  • Practical: what you do with the topic, linked to the checklist tick boxes.

This file covers the frames that cut across all weeks: the lethal trifecta, the OWASP, ATLAS and ASI taxonomies, and the governance stack. Read them before the phase sections, because the weeks use their vocabulary throughout.


Cross-cutting frames

The "lethal trifecta"

Take an agent that reads your email, can open your files, and can post to a chat channel. An attacker who can put one sentence in an email now has everything needed to steal your files. That is the lethal trifecta: an agent system becomes fundamentally compromisable through indirect prompt injection when all three of these are present.

  1. Privileged access: the agent can read or modify sensitive resources.
  2. Untrusted input: the agent processes content from sources outside the trust boundary, such as web pages, emails, RAG (retrieval-augmented generation) documents and tool outputs.
  3. Ability to publish or exfiltrate: the agent can send data outward through network calls, writes to shared storage or posts to channels.

Remove any one of the three and the trifecta collapses. You apply this as an architectural test at design time. Source: Lakera, Indirect Prompt Injection.

Multi-stage agent kill chains (new pattern, April 2026)

A developer runs git clone on a repository and nothing else, and an attacker ends up controlling a privileged container. Chains like this changed what a defender analyzes. Individual CVEs are no longer the unit of analysis, because attackers now chain vulnerabilities through AI agents, using the agent as the exploitation mechanism. Five chains show the pattern.

  1. Repository, agent, container escape. Prompt injection seeded in a GitHub repository is processed by an AI coding agent. The agent constructs a Docker authorization bypass (CVE-2026-34040: a request body over 1MB silently drops the authorization check), creates a privileged container and mounts the host filesystem. The developer only ran git clone. Cyera Research reported it in March 2026, and Docker 29.3.1 patched it.
  2. Document, MCP, secrets. A malicious Google Doc makes an AI agent fetch an attacker's MCP (Model Context Protocol) server instructions, run a Python payload and harvest secrets. The pattern matches CVE-2025-59944, where a one-character typo in a config path caused the failure.
  3. Pull request, CI agent, key leak. In "Comment and Control", an injection in a pull request title made Claude Code, the Gemini CLI Action and the GitHub Copilot Agent leak API keys as GitHub comments (VentureBeat, April 2026).
  4. Security scanner, CI, API key harvest (TeamPCP, March 2026). Attackers compromised the Trivy GitHub Action (CVE-2026-33634, CVSS 9.4) and stole CI/CD credentials. They used those credentials to launch a self-propagating npm worm across 47 packages, and then backdoored LiteLLM and the Telnyx SDK on PyPI. The backdoors harvested API keys for more than 100 LLM providers at once. The attackers hid command-and-control traffic in WAV steganography and used ICP canisters for censorship-resistant command and control. Cisco was breached as a downstream victim.
  5. npm worm, OIDC token theft, AI agent config persistence (Shai-Hulud and Miasma, May to June 2026).

In the fifth chain, a self-propagating npm worm compromised 373 package-version entries across 169 npm packages, including @tanstack, @mistralai, @squawk and @uipath. It used an orphaned-commit technique on GitHub forks to mint valid OIDC (OpenID Connect) publish tokens despite two-factor authentication, so the packages carried valid SLSA provenance attestations.

Its persistence was new. The worm injected a SessionStart hook into .claude/settings.json and a runOn:folderOpen task into .vscode/tasks.json in every repository it could reach, using GraphQL mutations that impersonated the Claude Code bot. The infected repository then becomes the propagation vector, and the next victim needs no npm install. A dead-man's switch destroys the home directory if you remove the persistence hooks before you rotate credentials. The worm exfiltrates over the Session P2P network, which is indistinguishable from encrypted messaging traffic. It was the first supply chain attack to use AI coding agent configurations as a propagation mechanism.

On 1 June a variant called "Miasma", built on the same codebase, hit 32 @redhat-cloud-services npm packages (Red Hat RHSB-2026-006). TeamPCP, also tracked as UNC6780, reused Mini Shai-Hulud and the OIDC provenance defeat. Sources: StepSecurity, Socket, Snyk, Wiz (Miasma)

Defensive implication: patching individual CVEs does not break the chain. Defense needs sandboxing (Week 19), intent-based access control (Week 18) and kill switches (Week 21) working together.

The shift from deterministic to probabilistic security

Traditional security treats a vulnerability as an unintended execution path in code. AI systems blur the boundary between data and instructions inside the model. The capability that makes an LLM useful, following natural-language instructions, is the same one that makes it open to instruction injection. No equivalent of SQL prepared statements exists for natural language. That is why prompt injection is a class of problem and not a single bug, and why defense-in-depth is mandatory.

The three current taxonomies (use all three)

You will meet three taxonomies in the weeks ahead, and each answers a different question.

Framework Scope Version Why
OWASP LLM Top 10 Single-model LLM apps 2026 (August 2026 reorder) First edition to weigh incident data (a quarter of the weight) against the community vote; 8 of 10 categories moved. Full detail and rationale: week-08 chapter.
OWASP Agentic Top 10 (ASI) Agent systems 2026 Now a ranked list, from ASI01 (Agent Goal Hijack) to ASI10 (Rogue Agents). The ASI prefix replaces the earlier "AAI" prefix.
MITRE ATLAS Adversarial TTPs (tactics, techniques and procedures) v2026.09 (15 September 2026) A catalog of TTPs with 16 tactics, 120 techniques, 88 sub-techniques, 40 mitigations and 73 case studies. Key agent technique IDs: AML.T0100 (AI Agent Clickbait), AML.T0110 (AI Agent Tool Poisoning) and AML.T0096 (AI Service API, used as a C2 channel). Case study AML.CS0042 is SesameOp, which used the OpenAI Assistants API as a backdoor C2 channel.

The OWASP LLM Top 10 (2026) has this numbering, and only LLM01 and LLM02 held their positions:

  1. LLM01 Prompt Injection.
  2. LLM02 Sensitive Information Disclosure.
  3. LLM03 Excessive Agency (up from LLM06).
  4. LLM04 Supply Chain (down from LLM03).
  5. LLM05 Data and Model Poisoning (down from LLM04).
  6. LLM06 Unbounded Consumption (up from LLM10).
  7. LLM07 Misinformation (up from LLM09).
  8. LLM08 Hidden Context Exposure (renamed from System Prompt Leakage, and broadened).
  9. LLM09 Vector and Embedding Weaknesses (down from LLM08).
  10. LLM10 Improper Output Handling (down from LLM05).

The reorder blends incident data (weighted 0.25) with expert opinion (weighted 0.75). The week-08 chapter gives the full rationale and the companion OWASP Agentic Top 10 2026 list.

The OWASP AI Exchange is the umbrella project that houses the LLM Top 10, the Agentic Top 10 (ASI) and the older ML Security Top 10 (2023). The ML Top 10 covers traditional machine-learning attacks (adversarial examples, data poisoning and model theft) at the scikit-learn and PyTorch level, which is distinct from LLM-specific prompt injection. All three lists share the AI Exchange taxonomy.

Sources: OWASP AI Exchange, OWASP LLM Top 10, OWASP Agentic AI Threats & Mitigations, MITRE ATLAS

Governance stack (Phase 4)

Three governance layers feed each other. The NIST AI RMF (risk management framework) supplies risk thinking. ISO/IEC 42001 turns it into operational AIMS (AI management system) controls. The EU AI Act is binding law. NIST identifies the risks, ISO operationalizes the controls, and the EU AI Act demonstrates legal compliance.

The NIST Cyber AI Profile (IR 8596, draft December 2025) overlays AI-specific considerations onto CSF 2.0 in three focus areas: securing AI systems, AI-enabled cyber defense, and thwarting AI-enabled attacks. Its subcategories are tiered High, Moderate and Foundational. A companion effort, SP 800-53 COSAiS (Control Overlays for Securing AI Systems), gives implementation-level guidance, and more than 6,500 community contributors have taken part. The final release is expected in mid-2026.

The U.S. AI Security Executive Order (2 June 2026) sets up voluntary model testing (developers submit at most 30 days before release), federal AI cybersecurity benchmarks and an "AI cybersecurity clearinghouse" for vulnerability sharing. It is explicitly not a mandatory licensing or preclearance regime. Anthropic's decision to limit the Mythos Preview release over its offensive cyber capabilities prompted the order. Sources: White House, NPR.

The EU AI Act has these enforcement deadlines:

  • Aug 2, 2026: the Commission's enforcement powers over GPAI (general-purpose AI) model providers activate, and the transparency rules apply. The minimum log retention is 6 months (Articles 19 and 26). The Digital Omnibus (Regulation (EU) 2026/1744, in force since 27 July 2026) moved Annex III high-risk obligations to Dec 2, 2027 and Annex I products to Aug 2, 2028 (European Commission: AI Act, read 2026-11-24).
  • Dec 2, 2026: certain providers of systems generating synthetic content, GPAI systems included, that were already on the market before Aug 2, 2026 must comply with Article 50(2), and new prohibitions on AI systems generating non-consensual sexual deepfakes and child sexual abuse material apply, per the Commission's timeline (AI Act Service Desk: timeline).
  • Aug 2, 2027: GPAI models placed on the market before Aug 2, 2025 must comply.
  • Penalties reach up to €35M or 7% of worldwide turnover.

Source: EU AI Act 2026 timeline

No binding federal statute exists (the 2 June executive order is voluntary), so a handful of state laws now form the de-facto national floor for frontier-model law:

  • California SB 53 and the New York RAISE Act: first-wave transparency and safety-framework disclosure for large developers.
  • The Illinois AI Safety Measures Act (SB 315), signed on 6 July 2026 and in effect from Jan-1-2027: the first-in-nation mandate for an independent third-party safety audit, plus reporting of significant safety incidents. Source: Gov. Pritzker newsroom
  • The Colorado Chatbot Safety Act (HB 26-1263), effective Jan-2027: consumer chatbot disclosure, age checks and $20K per violation (the primary source is unverified, so this item is held).

A small or private system may fall below these laws' revenue and scale thresholds, so check yours against them. Either way, they matter to you as the emerging vocabulary of agentic audit (third-party audit, incident reporting, disclosure), which the Phase 4 governance self-audit rubrics (TrustX ARC and SovereignPA-Bench) put into practice.


Phase 1: Engineering foundation (Weeks 1 to 8)

Before you can attack or defend AI, you need to know how it is built. Phase 1 covers the math, the architecture and the application layer that everything else attacks.