Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Risk & Security — CART I
Hot & New
New
Rating: 5.0 out of 5(1 rating)
6 students

AI Risk & Security — CART I

Continuous Agentic Red Teaming — Part I
Last updated 10/2026
English

What you'll learn

  • Learn and practice the first four laws of AI agentic red teaming, including the failure each one addresses and the test cases that uncover it.
  • Master a verification process that checks each test result against actual code and captured test runs before it is called a finding.
  • Learn how to build a working understanding of a business fast, by comparing what its brief says with what its code does, before writing a single attack.
  • Practice moving to a stronger generator and grader model, and be able to read the transcripts beneath pass counts to tell real failures from grader errors.
  • Define a release gate by deciding what must pass, what blocks, who responds, and what evidence is kept for another person to review.
  • Run Promptfoo red team suites locally against an Ollama agent and judge results by recorded tool events, not by what the model says.
  • Identify cross-customer flaws (IDOR/BOLA) in agent code and learn how the Confused Deputy Law explains why an agent lets them through.
  • Run a supplied pre-commit hook that blocks the vulnerable agent and passes the hardened one, putting the Continuous Law into practice as a local gate.

Course content

6 sections • 30 lectures • 9h 39m total length
  • What Is CART20:41

    Continuous Agentic Red Teaming (CART) starts from a simple question - "what changes when the system under test is an agent that acts, not just an application that responds?"


    • How CART differs from a one-off pentest

    • How CART also differs from traditional SAST/DAST

    • Why agents need testing that is continuous as they change and evolve


  • How This Course Works17:01

    A short orientation before the hands-on work begins.


    • How lectures, assignments and recaps fit together

    • Logistics and what is expected of you

    • How each section is structured


  • Core AI Concepts16:47

    The vocabulary the rest of the course assumes, aimed at professionals who have an understanding of core cybersecurity concepts.


    1. Agents and how they differ from plain models

    2. Tools and what they let an agent do

    3. Context what the model actually sees

    4. Indirect injection how untrusted text reaches the model


  • CART Laws, Procedures, Processes, and Controls17:26

    The hierarchy the whole course is built on.


    • How Laws, Controls, Procedures and Processes differ

    • What a Law is, what it is not, and why we say “Law” rather than “Principle”

    • The four CART I Laws, read out for the first time. Each gets its own section later.


  • Meet the Company — Loopline Inc.11:15

    Meet Loopline Inc., the fictional company that carries the story through the whole course.


    • A brief introduction to the business and its refund/support agent

    • Why a single company is used throughout this course

    • Setup for deeper operational context in Section 3


  • Section Summary — Recap3:59

    A short recap of Section 1. No new content.

  • Law, Control, Procedure, or Process?

Requirements

  • No machine learning background required. No paid APIs or cloud accounts are needed to run the course’s red team tests.
  • A computer capable of running Ollama with llama3.2 and qwen3:30b. The larger model requires substantial memory or a capable GPU.
  • Working knowledge of penetration testing or application security. Familiarity with vulnerabilities such as SQL injection is assumed, and no prior knowledge of CART is needed.
  • Basic Python and command-line skills, including running scripts and using a virtual environment.
  • Basic familiarity with running local models through Ollama. Installation and setup of Ollama, Promptfoo and Node.js are covered in the course.
  • Git installed on your computer, used for the pre-commit hook demonstration.

Description

Your red-team run came back green. What did it actually prove?

AI agents that can call tools, such as issuing refunds or reading customer records, fail in ways a classic penetration test never looks for. AI Risk & Security — CART I is the “Hello World” of Continuous Agentic Red Teaming (CART), built for practicing security professionals, security-aware developers, and AI engineers.

You work against Loopline, a fictional support agent with real tools and a deliberately vulnerable baseline. You test it, break it, harden it, and then wire the test into a gate that blocks a bad commit.

What you Will Learn

  • Read the agent’s code like an attacker – Compare what the company says its agent does with what the code lets it do, and map the attack surface the documentation never mentions.

  • Watch a green result mislead you – Run a deterministic suite that passes cleanly, then a generated red-team suite that finds what it missed, and learn what a clean run does and does not prove.

  • Turn business context into test coverage – Write a structured purpose field that tells the generator who the users are, what the agent may do, which limits exist today, and which do not exist yet.

  • Understand why the judge must outclass the target – Pair llama3.2 with a stronger qwen3:30b tester and read the transcripts beneath the pass counts to see where a weak evaluator silently misses failures.

  • Exploit a Confused Deputy with one polite request – Learn how to tackle attacks with no injection language, where a customer simply asks for a refund on an order that belongs to someone else.

  • Judge the agent on what it did, not what it said – Learn how to grade every result on the executor’s recorded tool events, because a model saying “refunded” is not evidence of a refund.

  • Fix the flaw where it belongs – Understand how order ownership should be enforced in code inside the tools, not in the system prompt, and re-test the hardened agent.

  • Build a release gate that can fail a build – Build on one request for five independent trusted sessions where the owner must succeed and four other customers must be blocked. Wire it to a pre-commit hook that rejects the vulnerable commit and accepts the hardened one.

  • Produce evidence another person can review – Turn run results into audit-evidence material, stating the honest limits stated, meaning what the gate does not cover and how a local hook can be bypassed.

Four Laws govern this course focusing on Business-Context, Coverage, the Confused Deputy, and Continuous Testing. Each gets its own section, so you conclude the course with principles you can reuse beyond the scope of Loopline and the commands we will run.

The Stack

The harness runs locally with Ollama (llama3.2 as the target, qwen3:30b as tester) and a pinned Promptfoo version. The one exception is an optional authoring step where a hosted assistant helps draft the test setup. All data in the course is fictional, specially created to teach you processes and procedures of Agentic Red Teaming.

Who this Course is For

  • Penetration testers and security professionals

  • Developers and AI engineers building security into CI/CD for agentic systems

Even though an introductory course in the field, CART I is not for complete security beginners. Still, this course only requires you having a basic understanding of Python and Ollama.

Taught by Dr. Yiannis Pavlosoglou, a cybersecurity practitioner with 20+ years of experience and a past CISSP, Scrum Master, OWASP project leader and contributor.


Who this course is for:

  • Penetration testers and security professionals who want to extend their skills to AI agents and make red teaming repeatable.
  • Application security engineers who need test results and evidence that another person can review, not just a green report.
  • Developers who want to gate changes to an agentic system on red team results, starting with a local commit hook.
  • Not intended for complete security beginners, or for machine learning researchers looking for model internals.