Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Security & AI Guardrails : Agents, Red Teaming & Hands-On
Rating: 4.4 out of 5(4,221 ratings)
14,590 students

AI Security & AI Guardrails : Agents, Red Teaming & Hands-On

Secure LLM apps & AI agents hands-on: Prompt Guard, Llama Guard, Presidio, NeMo, GuardrailsAI, Bedrock, Garak & OWASP
Last updated 10/2026
English
Arabic [Auto],German [Auto],

What you'll learn

  • Explain how LLMs, RAG and prompts work, and where each one creates security and safety risk in a GenAI application
  • Map real GenAI risks to the OWASP Top 10 for LLM Applications (2025) and the OWASP Top 10 for Agentic Applications (2026)
  • Detect and block prompt injection and jailbreaks, including attacks hidden in images, with Prompt Guard and Llama Guard 3 Vision
  • Detect hallucinations with LLM-as-judge and specialized models, and measure faithfulness, SAS and context relevance with evaluators
  • Find and anonymize PII in prompts and responses with Microsoft Presidio, including custom recognizers for your own data
  • Validate and structure LLM output with GuardrailsAI, and control conversations with NVIDIA NeMo Guardrails and Colang
  • Configure and evaluate managed guardrails on Amazon Bedrock: content filters, denied topics, PII filters and contextual grounding
  • Red-team an LLM with Garak, and build a CrewAI agent that runs an OWASP ZAP web-vulnerability scan
  • Explain how MCP connects agents to tools, and recognize and defend against all ten OWASP Agentic risks, from goal hijack to rogue agents

Course content

27 sections • 136 lectures • 9h 9m total length
  • Welcome & Why to Take This Course5:00

    Why GenAI applications need guardrails, told through real incidents of chatbots leaking data and confidently stating falsehoods. You will see where guardrails sit in a GenAI application (on the user input and on the model response) and what you will be able to build by the end of the course.

  • Course Roadmap: How the Course Is Organized and Why3:56

    Choose your path: the Leader path (concept lectures, recaps and quizzes, about 6 hours) or the Builder path (everything including hands-on labs, about 10.5 hours). This lecture also lists the accounts and hardware the labs need (Google Colab, Hugging Face gated-model access, GPU runtimes, AWS) and where to download the slides and notebooks.

  • Before You Begin: Getting the Most from This Course2:33

    Three quick tips: set your own pace with Udemy's speed control, use the free preview lectures to see whether the teaching style suits you, and share honest feedback in the Q&A and in your rating.

Requirements

  • No prior AI security experience. The course starts from the foundations.
  • Builder path: basic Python, and the ability to run a Google Colab notebook.
  • Leader path: no coding required.
  • Google (Colab) and Hugging Face accounts. Prompt Guard and Llama Guard need gated-model access; the labs show how to request it.
  • Optional: an AWS account for the Bedrock labs (billed by AWS) and an LLM API key for the GuardrailsAI, NeMo and CrewAI labs.

Description

Updated in 2026

The course has been re-recorded and reorganized into a clear six-part path, based on feedback from thousands of students. New content includes Microsoft Presidio, Penn Testing AI Agent and OWASP Top 10 for Agentic Applications.

Your GenAI app will be attacked. Will your guardrails hold?

In IBM's 2025 Cost of a Data Breach report, 13% of organizations reported a breach involving an AI model or application, and 97% of those had no proper AI access controls. Chatbots have been talked into selling a car for $1, a parcel-delivery bot was coaxed into swearing at its customers, and an airline was held liable for what its chatbot invented. This course teaches you to prevent those failures, step by step and hands-on.

How the course is organized

The course follows the path of a request through a GenAI application, tests and hardens its guardrails, then shows how to build and secure AI agents. Every part builds on the one before:

  1. Foundations. How LLMs, inference parameters, embeddings, RAG and prompts work, and the risks they create, mapped to the OWASP Top 10.

  2. Defend the pipeline

    • Input: stop prompt injection with Prompt Guard and Llama Guard, including attacks hidden in images (Llama Guard 3 Vision). OWASP LLM01.

    • Output: detect hallucinations with judge models and Vectara's evaluation model. OWASP LLM09.

    • Data: find and anonymize PII with Microsoft Presidio. OWASP LLM02.

  3. Test. Prove your guardrails work with faithfulness, SAS and context-relevance evaluators and a full RAG evaluation in Haystack, then red-team the model with Garak (encoding, data exfiltration and profanity probes).

  4. Build. Combine defenses with GuardrailsAI (validators, RAIL, on-fail policies) and NVIDIA NeMo Guardrails (Colang, runtime), then do the same with managed Amazon Bedrock Guardrails and Bedrock evaluations.

  5. AI agents. Build an AI pentest agent with CrewAI and OWASP ZAP, then a bonus multimodal ReAct agent, and learn how agents connect to tools through MCP.

  6. Secure agentic AI. Work through all ten risks in the OWASP Top 10 for Agentic Applications (2026), from Agent Goal Hijack to Rogue Agents. Each risk comes with real-world scenarios, a technology map, a defense architecture and a knowledge check, and the course ends with a capstone assessment.

What you'll get

  • Hands-on labs with open-source models from Hugging Face, in Google Colab

  • A section recap at the end of every core section, and knowledge checks throughout

  • Downloadable slides and notebooks (confirm they're attached before you claim this)

  • A one-page guardrails playbook to take back to your team


Who this course is for:

  • AI/ML engineers and developers building GenAI applications or AI agents who need production guardrails
  • Security engineers, pentesters and red teamers extending their skills to LLMs and agentic AI
  • Data scientists who need to measure hallucination, faithfulness and RAG quality
  • Engineering managers, product owners, risk and compliance professionals: take the Leader path for the concepts without the code
  • Not for you if you want a single deep dive on one framework; this course covers the landscape broadly, with hands-on practice