Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Agentic AI Security: OWASP Top 10 for Agentic Applications
New
Rating: 5.0 out of 5(3 ratings)
100 students

Agentic AI Security: OWASP Top 10 for Agentic Applications

Stop prompt injection, tool misuse and memory poisoning in AI agents and MCP, and threat-model any agent in 30 minutes
Created byYogesh Dahake
Last updated 12/2026
English

What you'll learn

  • Understand how AI agents work: the LLM loop, tool calling, the Model Context Protocol (MCP), and the difference between direct and indirect prompt injection
  • Explain all 10 OWASP Top 10 for Agentic Applications risks (ASI01 to ASI10) and spot each one in real incidents like EchoLeak and Replit
  • Spot the lethal triangle (untrusted input, sensitive access, a way out) and break attack chains before an agent leaks data or misuses tools
  • Stop prompt injection and goal hijack from causing damage with least agency, narrow tools, short-lived credentials and sandboxed code
  • Protect agent memory and RAG stores from poisoning by validating writes, scoping memory per user, recording provenance and expiring unverified entries
  • Give every agent its own identity with short-lived, task-scoped tokens and OAuth scopes, and avoid the confused deputy problem
  • Run agent-generated code safely in a sandbox with no network by default, and control network egress so data has no way out
  • Secure multi-agent systems and MCP tool supply chains with signed messages, an AIBOM, circuit breakers, approval screens and kill switches
  • Design approval screens that show raw facts the agent didn't write, so humans catch bad actions instead of rubber-stamping them
  • Detect and stop rogue or failing agents with traces, behaviour baselines, fan-out alerts, circuit breakers and a tested kill switch
  • Threat-model any AI agent in 30 minutes: draw its goals, tools, identity, memory and peers, ask the 10 questions and pick the right controls
  • Apply a 10-point pre-build security checklist and an 8-step build order to ship AI agents that stay safe even when they are fooled

Course content

7 sections • 45 lectures • 3h 54m total length
  • Welcome | What is this course ?5:37
  • Section Introduction1:17
  • Why agents need their own Top 104:53

    A chatbot that gives a bad answer wastes your time. An agent that takes a bad action deletes data, moves money or leaks files. This lecture sets up the whole course using real 2025 incidents.

    In this lecture you will learn:

    • Why autonomous agents create risks that classic app security and chatbot safety do not cover
    • What went wrong in EchoLeak, the Amazon Q extension incident and the Replit database deletion
    • How the course is organised: concept, risk and practice videos
    • What you will be able to do by the end of the course
  • What is an AI agent?4:28

    An agent is an LLM in a loop: it plans, calls tools, reads the results, remembers, and acts on behalf of a user. This lecture gives you a simple mental model you will use in every risk video.

    In this lecture you will learn:

    • The agent loop: plan, act, observe, remember
    • The five parts of an agent that matter for security: goals, tools, identity, memory and peers
    • How a copilot, a coding agent, a RAG assistant and a multi-agent workflow differ
    • Where an attacker can reach into each part
  • Tool calling: how agents act4:01

    Agents do real work by calling tools. This lecture shows how a model picks a function and fills in its arguments, and who actually runs it.

    In this lecture you will learn:

    • How a model chooses a tool and generates its arguments
    • Why the model never runs the tool itself: your code does, with your credentials
    • Why every tool call is a security decision
    • How tool calling connects to ASI02 (Tool Misuse) and ASI05 (Unexpected Code Execution)
  • MCP: the Model Context Protocol4:18

    MCP is the standard way agents connect to tools today. This lecture explains how MCP servers expose tools and why that creates new attack surface.

    In this lecture you will learn:

    • What MCP servers and clients are and how they talk to each other
    • Why tool descriptions are read by the model, which makes them input too
    • Where MCP servers come from and how they get installed
    • How MCP connects to ASI02, ASI04 (Supply Chain) and ASI07 (Inter-Agent Communication)
  • Prompt injection, direct and indirect5:37

    Prompt injection is the root of many agentic attacks. This lecture explains both kinds and why they are so hard to filter out.

    In this lecture you will learn:

    • Direct injection: malicious instructions typed by the user
    • Indirect injection: instructions hidden in content the agent reads, such as an email, a web page or a ticket
    • Why models cannot reliably tell instructions apart from data
    • How injection leads to ASI01 (Goal Hijack), ASI06 (Memory Poisoning) and ASI09 (Trust Exploitation)
  • From least privilege to least agency3:18

    Least agency is the single principle that runs through every defence in this course. It is least privilege applied to autonomy.

    In this lecture you will learn:

    • What least agency means and how it extends least privilege
    • How to give an agent only the tools, permissions and unsupervised steps a task needs
    • Why every extra tool, scope or autonomous step is attack surface
    • How to apply least agency when designing a new agent
  • The Agentic Top 10 at a glance5:34

    Before we go deep, here are all ten OWASP agentic risks (ASI01 to ASI10) in one picture, so you always know where each video fits.

    In this lecture you will learn:

    • All ten risks mapped to the five parts of an agent: goals, tools, identity, memory and peers
    • How the OWASP Agentic Top 10 differs from the OWASP Top 10 for LLM Applications
    • Which risks the following sections cover and in what order
    • The six-part structure every risk video follows
  • Section 1 Quiz: Start Here
  • Section 1 Resources: notes, cheat sheet and question cards0:39

Requirements

  • No security background needed. Every agent concept and risk is explained from scratch in plain English
  • A basic idea of what ChatGPT, Claude or similar AI assistants do is helpful, but no AI or machine learning experience is required
  • Some familiarity with how software or web apps work (APIs, logins, permissions) helps, but you don't need to write code to follow along
  • No paid tools or special software. A computer with a web browser and a PDF reader for the checklists and templates is all you need

Description

AI agents don't just answer questions anymore. They read your email, call APIs, run code, spend money and talk to other agents. That makes them a new kind of attack surface, and the OWASP Top 10 for Agentic Applications is the industry's answer to it.

This course is a clear, practical guide to agentic AI security. You'll learn all ten OWASP agentic risks (ASI01 to ASI10), see how each one played out in real incidents, and leave with a 30-minute threat model and a pre-build checklist you can use on any AI agent, LLM app or MCP tool your team builds.

No security background is needed and you don't have to write code. Every concept is explained from scratch in plain English, then tied to real attacks such as EchoLeak in Microsoft 365 Copilot, the Amazon Q extension compromise, the malicious postmark-mcp server, the Replit database deletion and the Air Canada chatbot case.

Why agentic AI security is different

Classic application security assumes software does what its code says. An AI agent decides what to do at runtime, based on whatever it reads. One hidden instruction in a web page, a support ticket, a PDF or a tool description can turn a helpful agent against the people it serves. The mindset in this course is simple: assume your agent will sometimes be fooled, and design it so that being fooled can't do much damage.

What you'll learn

  • How AI agents work: the LLM loop, tool calling, the Model Context Protocol (MCP), memory and RAG

  • Direct and indirect prompt injection, and why filters alone can't stop it

  • Least agency: why every tool, permission or unsupervised step an agent doesn't need is attack surface

  • All 10 OWASP agentic risks, each with a real incident and the controls that work:

    • ASI01 Agent Goal Hijack

    • ASI02 Tool Misuse and Exploitation

    • ASI03 Identity and Privilege Abuse

    • ASI04 Agentic Supply Chain Vulnerabilities

    • ASI05 Unexpected Code Execution

    • ASI06 Memory and Context Poisoning

    • ASI07 Insecure Inter-Agent Communication

    • ASI08 Cascading Failures

    • ASI09 Human-Agent Trust Exploitation

    • ASI10 Rogue Agents

  • The lethal triangle (untrusted input, sensitive access, a way out) and how to break it

  • Non-human identities, short-lived tokens, OAuth scopes and the confused deputy problem

  • Sandboxing and network egress control for agent-generated code

  • Securing the AI supply chain with an AIBOM (AI Bill of Materials), pinning and allowlists

  • Multi-agent and A2A security: signed messages, circuit breakers and blast radius

  • Human-in-the-loop approvals that people actually read, not rubber-stamp

  • Agent observability: traces, baselines, fan-out alerts and tested kill switches

How the course is organised

  • Section 1, Start Here: what an agent is, tool calling, MCP, prompt injection and the Top 10 at a glance

  • Section 2, Steering the Agent: goal hijack and memory poisoning

  • Section 3, What the Agent Can Touch: tool misuse, identity abuse and unexpected code execution

  • Section 4, What the Agent Is Built From: supply chain risks, from SBOM to AIBOM

  • Section 5, Agents Among Agents and People: inter-agent communication, cascading failures, human trust and rogue agents

  • Section 6, Before You Build: how the risks chain, a 30-minute threat model, the pre-build checklist and a capstone

  • Section 7, Course Wrap-Up: course-wide resources to keep

Practical resources you can use at work

Every section ends with downloadable notes and a 10-question quiz with explanations for every answer. You also get:

  • A risk note and checklist for each of the 10 risks

  • A 30-minute threat model template and a 10-point pre-build security checklist

  • An 8-step build order for agent security controls

  • An AIBOM template, a tool and token permission worksheet, and a sandboxing checklist

  • An approval screen checklist and a memory review checklist

  • A one-page OWASP Agentic Top 10 cheat sheet, "Ask Before You Build" question cards, a glossary and a list of real-world incident sources

A capstone that puts it all together

In the final section, you'll threat-model a realistic multi-agent Expense Approvals system end to end. You'll find the risks, choose controls, decide the build order, and then compare your work with a full model answer.

Who this course is for

  • Developers, architects and tech leads building AI agents, copilots or LLM-powered features

  • Application security, cloud security and DevSecOps engineers who review or red-team AI systems

  • Product managers who need to decide whether an agent is safe enough to launch

  • Students and career switchers moving into AI security

By the end, you'll be able to look at any AI agent design and answer the questions that matter: what can an outsider make it read, what is the worst thing each tool can do, and how fast could you stop it if it went wrong.

Enroll now and learn to build AI agents that stay safe even when they're fooled.

Who this course is for:

  • Developers, architects, security engineers, product managers and tech leads building or reviewing AI agents will get the most from it
  • Software and security engineers who want a practical way to threat-model AI agents, MCP tools and multi-agent systems before they ship
  • Beginners curious about AI agent security who want the OWASP Top 10 for Agentic Applications explained clearly with real incidents
  • Product managers and tech leads who must decide whether an AI agent is safe enough to launch and which controls to ask their team for
  • AppSec, cloud security and DevSecOps professionals who need to review, red-team or approve agents built with LLMs, tools and MCP servers
  • Students and career switchers preparing for AI security roles who want a structured, hands-on guide to the OWASP agentic risks