Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Prompt Injection & LLM Security: Defend RAG, Agents & Tools
New

Prompt Injection & LLM Security: Defend RAG, Agents & Tools

Assess, control and retest an LLM application against direct, indirect and tool-based injection, with hands-on labs
Last updated 11/2026
English

What you'll learn

  • Assess an LLM application for prompt injection with a repeatable 7-step method: scope, map, baseline, attack, diagnose, control and retest
  • Map the five trust boundaries of a RAG or agent application and find where untrusted text meets the application's authority
  • Tell model behavior apart from application failure, and score every test by what actually happened, not by what the model said
  • Trace indirect injection through retrieved documents, tickets and tool results, and explain why that content can't be trusted as instructions
  • Show that tool authority belongs to the application: separate proposed actions from executed ones and limit agents with least privilege
  • Choose and configure layered controls for an AI assistant, and state exactly what each one stops and what it breaks
  • Prove a control works with attack success and task completion across repeated runs, and report variable results honestly
  • Investigate an injection incident from logs, separate the trigger from the root cause, and write findings a developer can act on

Course content

11 sections • 49 lectures • 3h 52m total length
  • Prompt Injection Is an Application Problem7:48

    Why a paragraph of text can make an AI assistant leak data, and why the fix lives in the application around the model.

  • The 7-Step Assessment Method7:03

    A repeatable way to test an AI application, from what you're allowed to touch to proof that the fix worked.

  • Your Lab, Your Track and the Ground Rules6:26

    How the lab works, which way of following the course suits your computer, and the rules every test follows.

Requirements

  • A general idea of how an AI chatbot works. No machine learning background is needed.
  • A Windows or Mac computer for the lab kit. Setup is double-click, and every install (Python included) is explained in the course.
  • No coding: the labs use supplied code and labeled settings you change in a text editor.
  • Optional: a local model (Ollama) or an AI API key to see a real model's behavior. Every lab also works without one.

Description

This course contains the use of artificial intelligence.

When an AI assistant reads a document, a ticket or a tool result, any instruction hidden inside can steer it. Prompt injection is the top risk in the OWASP Top 10 for LLM Applications, and the fix is never just a better prompt. This course teaches you to assess an AI application the way a security tester does: assume the model will sometimes follow injected text, and make the application decide what that text is allowed to change.

You'll work on one fictional company's service desk assistant, built for this course and supplied as a lab kit you run on your own computer. It answers from a knowledge base, reads tickets, and can send email, open tickets and change group membership. You'll attack it, watch exactly where each attack lands, switch protections on one at a time, prove what they stop and what they break, investigate an incident from the assistant's logs, and finish with a full assessment of a release candidate that passes every test in the suite but still isn't safe to switch on.

What you'll work on

  • A repeatable 7-step method: scope, map, baseline, attack, diagnose, control and retest

  • The five trust boundaries of an LLM application, and the three verdicts: application failure, model behavior and no impact

  • Direct injection: what it tries to do, the technique families, and why filters miss them

  • Indirect injection through a retrieval (RAG) pipeline: poisoned articles, hidden text, uploaded files and tickets from outside

  • Tools and excessive agency: whose authority the assistant uses, and how a ticket can make it send email

  • Seven control layers, from identity and roles to the tool gateway, and approval steps that actually help the approver

  • Proving a control works: attack success and task completion across repeated runs, regression testing and honest reporting

  • Logging and investigation: building a timeline from logs and separating the trigger from the root cause

  • Writing findings that get fixed: severity, evidence, reproduction steps, root cause, recommendation and retest

How the course works


  • Seven hands-on labs plus a capstone assessment, each with a step-by-step guide (Word and PDF) and a worksheet

  • A lab kit you start with a double-click: no coding, and every install is explained before you need it

  • A built-in scripted model, so every lab works without an AI account; connect a local model (Ollama) or an AI API if you'd like to see a real model vary from run to run

  • An observation track with saved reference results if you can't install software on your computer

  • Pause-and-decide exercises in the lessons, each followed by a worked answer

  • A capstone findings report, with a model report to compare yours against

  • An optional extension that runs your tests in Promptfoo, an open-source testing tool

Who this course is for

  • Security analysts and application security testers who are new to LLM applications

  • Developers and AI engineers responsible for a RAG, chatbot or agent feature

  • Application owners and AI project leads who must sign off on an AI assistant before it goes live

This is an independent, practical course. It isn't preparation for a certification exam and it isn't a catalog of jailbreak tricks. Every attack in it is aimed at the supplied lab only: you'll only ever test systems you own or are authorized to test.

Who this course is for:

  • Security analysts and application security testers who are new to LLM applications
  • Developers and AI engineers responsible for a RAG, chatbot or agent feature
  • Application owners and AI project leads who must sign off on an AI assistant before it goes live
  • Anyone who needs to test an AI assistant for prompt injection and explain the results to others