Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Hands On AI (LLM) Red Teaming
Rating: 4.0 out of 5(95 ratings)
1,299 students
Last updated 9/2025
English

What you'll learn

  • Fundamentals of LLMs
  • Jailbreaking LLMs
  • OWASP Top 10 LLM & GenAI
  • Hands On - LLM Red Teaming with tools
  • Writing Malicious Prompts (Adversarial Prompt Engineering)

Course content

8 sections47 lectures12h 24m total length
  • Introduction11:48

    Instructor: Jitendra Chauhan, Founder of Detoxio AI,  Hands On Red Teaming Practitioner and Cybersecurity Professional since 2006. 2x Patents in AI based Red Teaming.


    Objective

    This course provides hands-on training in AI security, focusing on red teaming for large language models (LLMs). It is designed for offensive cybersecurity researchers, AI practitioners, and managers of cybersecurity teams. The training aims to equip participants with skills to:

    • Identify and exploit vulnerabilities in AI systems for ethical purposes.

    • Defend AI systems from attacks.

    • Implement AI governance and safety measures within organizations.


    Why AI Security Matters

    1. Historical Incidents Highlighting AI Vulnerabilities:

      • Microsoft Tay (2016): Offensive behavior due to unsupervised learning.

      • Amazon AI Recruiting Tool (2018): Discriminatory hiring practices caused by biased training data.

      • McDonald's AI Order Management System (2024): Operational failures leading to a rollback.

    2. Rising AI Incidents:

      • A 300% increase in AI-related security incidents (Databricks data).

      • High-profile cases involving brands like Air Canada, Zillow, and others.

    3. The Threat Landscape:

      • Misuse of AI for disinformation, deepfakes, and malicious activities.

      • Direct attacks on AI systems (e.g., jailbreaking, adversarial inputs, prompt injections).

    4. Consequences of Inadequate AI Security:

      • Financial losses.

      • Brand damage.

      • Regulatory scrutiny.

    Learning Goals

    • Understand generative AI risks and vulnerabilities.

    • Explore regulatory frameworks like the EU AI Act and emerging AI safety standards.

    • Gain practical skills in testing and securing LLM systems.

    Course Structure

    1. Introduction to AI Red Teaming:

      • Architecture of LLMs.

      • Taxonomy of LLM risks.

      • Overview of red teaming strategies and tools.

    2. Breaking LLMs:

      • Techniques for jailbreaking LLMs.

      • Hands-on exercises for vulnerability testing.

    3. Prompt Injections:

      • Basics of prompt injections and their differences from jailbreaking.

      • Techniques for conducting and preventing prompt injections.

      • Practical exercises with RAG (Retrieval-Augmented Generation) and agent architectures.

    4. OWASP Top 10 Risks for LLMs:

      • Understanding common risks.

      • Demos to reinforce concepts.

      • Guided red teaming exercises for testing and mitigating these risks.

    5. Implementation Tools and Resources:

      • Jupyter notebooks, templates, and tools for red teaming.

      • Taxonomy of security tools to implement guardrails and monitoring solutions.

    Key Outcomes

    • Enhanced Knowledge: Develop expertise in AI security terminology, frameworks, and tactics.

    • Practical Skills: Hands-on experience in red teaming LLMs and mitigating risks.

    • Framework Development: Build AI governance and security maturity models for your organization.

    Who Should Attend?

    This course is ideal for:

    • Offensive cybersecurity researchers.

    • AI practitioners focused on defense and safety.

    • Managers seeking to build and guide AI security teams.


    Good luck and see you in the sessions!

  • Setup Lab11:18

    Welcome to the LLM Red Teaming Training. This guide provides step-by-step instructions to set up the necessary environment and tools for practicing red teaming and hands-on sessions with Large Language Models (LLMs).


    This setup guide includes:

    • Hugging Face account registration and access token generation.

    • Kaggle setup for utilizing GPUs.

    • Optional Grok Cloud setup for additional model access.

    • Detox API key setup.

    • Enterprise cloud options for running large-scale models.

  • Run a Hugging Face Model
  • Quick Lab Setup: Get Your Virtual Environment Ready5:20

    Lab Setup Guide

    This guide will get your virtual lab running quickly.

    1. System Requirements

    First, ensure your computer has these resources available for the VM:

    • CPU: 4-8 Cores

    • RAM: 8-16 GB

    • Disk Space: 50 GB

    2. Import the VM

    Download the OVA file from the link in the Resources section and import it into your virtualization software (like VirtualBox/VMware).

    Start the VM and log in with:

    • User: dtx

    • Password: dtx

    3. Add API Keys

    4. Run Final Setup

    Your lab is now ready!

  • Ollama - Running Model on your Local Laptop15:45

    This lecture provided an introduction to Ollama, a framework for running AI models locally, even on CPUs, by using quantized versions of models. Key topics included:

    1. Installation: Steps to install Ollama on Linux and set up the environment.

    2. Model Management: How to browse, pull, and run various models like qwen2:0.5b and llama3.2:1b.

    3. Customization: Creating and deploying customized models using Modelfile with parameters like temperature and system prompts.

    4. API Access: Using APIs to interact with models programmatically.

    5. Service Management: Commands to start, stop, and manage the Ollama service.

    6. Version Control: Organizing and tracking customized models using Git.

  • Solve Three Gods Puzzle
  • google/gemma-3-270m and BOMB vs Bomb

Requirements

  • Basics of Python Programming
  • Cybersecurity Fundamentals

Description

Objective

This course provides hands-on training in AI security, focusing on red teaming for large language models (LLMs). It is designed for offensive cybersecurity researchers, AI practitioners, and managers of cybersecurity teams. The training aims to equip participants with skills to:

  • Identify and exploit vulnerabilities in AI systems for ethical purposes.

  • Defend AI systems from attacks.

  • Implement AI governance and safety measures within organizations.

Learning Goals

  • Understand generative AI risks and vulnerabilities.

  • Explore regulatory frameworks like the EU AI Act and emerging AI safety standards.

  • Gain practical skills in testing and securing LLM systems.

Course Structure

  1. Introduction to AI Red Teaming:

    • Architecture of LLMs.

    • Taxonomy of LLM risks.

    • Overview of red teaming strategies and tools.

  2. Breaking LLMs:

    • Techniques for jailbreaking LLMs.

    • Hands-on exercises for vulnerability testing.

  3. Prompt Injections:

    • Basics of prompt injections and their differences from jailbreaking.

    • Techniques for conducting and preventing prompt injections.

    • Practical exercises with RAG (Retrieval-Augmented Generation) and agent architectures.

  4. OWASP Top 10 Risks for LLMs:

    • Understanding common risks.

    • Demos to reinforce concepts.

    • Guided red teaming exercises for testing and mitigating these risks.

  5. Implementation Tools and Resources:

    • Jupyter notebooks, templates, and tools for red teaming.

    • Taxonomy of security tools to implement guardrails and monitoring solutions.

Key Outcomes

  • Enhanced Knowledge: Develop expertise in AI security terminology, frameworks, and tactics.

  • Practical Skills: Hands-on experience in red teaming LLMs and mitigating risks.

  • Framework Development: Build AI governance and security maturity models for your organization.

Who Should Attend?

This course is ideal for:

  • Offensive cybersecurity researchers.

  • AI practitioners focused on defense and safety.

  • Managers seeking to build and guide AI security teams.


Good luck and see you in the sessions!

Who this course is for:

  • Cybersecurity Professionals who wants to secure LLMs and AI Agents