Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Security Architecture: Threat Model LLMs, Agents & RAG
New
33 students

AI Security Architecture: Threat Model LLMs, Agents & RAG

Review any AI system: prompt injection, trust boundaries, agent tool authority, OWASP LLM Top 10. No maths, no Python
Created byArmaan Sidana
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Threat model any AI system with a repeatable seven-layer method: interface, orchestration, retrieval, model, tools, data and identity.
  • Mark every trust boundary on an AI architecture diagram, name what crosses it, and say which control belongs at that exact crossing.
  • Defend against direct and indirect prompt injection by bounding consequence and authority, instead of filtering prompts that cannot be filtered.
  • Secure a RAG pipeline by pre-filtering retrieval on the asking user's permissions, so one user's query can never surface another's documents.
  • Review an AI agent in twenty minutes: read tool definitions as security boundaries, bound the loop, and split irreversible actions out.
  • Run an AI design review mapped to the OWASP LLM Top 10, NIST AI RMF and MITRE ATLAS, and write findings an engineering team will actually fix
  • Choose between prompting, RAG and fine-tuning, and explain why embeddings are not anonymisation and what fine-tuning bakes in permanently.
  • Specify the five log fields that make an AI incident investigable, and contain an incident when there is no patch to apply.
  • Compare hosted API, managed cloud and self-hosted weights, and the very different threat model each deployment shape commits you to.
  • Build an AI inventory with risk tiering, find shadow AI as a data-flow problem, and ask vendors the ten questions that matter before signing.

Course content

7 sections • 25 lectures • 2h 28m total length
  • Course Introduction: What You'll Be Able to Do3:45
  • Why AI Breaks the Threat Models You Already Know6:09
  • The Five Questions to Ask Any AI System5:04

Requirements

  • You can read a network or architecture diagram — boxes, arrows and zones.
  • Working knowledge of ordinary security primitives: IAM, least privilege, TLS, egress filtering and audit logging. The course reuses all of them.
  • You have used an LLM or AI chatbot at least once.
  • No maths, no model training, no notebooks and no Python. Any code on screen is there to be read, not run.

Description

Almost every AI incident so far has been an architecture failure wearing a model costume. This course is about AI security architecture: reading AI systems, naming every trust boundary, and finding the design flaws before anyone writes code.

Not a jailbreak and not a clever prompt. A retrieval system that never checked who was asking. A tool wired to a service account. A data flow nobody mapped.

You already threat-model. This is the part where your mental model runs out.

You can take apart a web application or a cloud account. Then three teams start shipping things with models in them, nobody draws you a diagram, and you are the one asked whether it is safe. The vocabulary is new - embeddings, agents, RAG, context windows - and it hides the fact that the security questions underneath are ones you already know how to ask.


What you will be able to do

Draw the seven layers of any AI system on sight: interface, orchestration, retrieval, model, tools, data and identity.

Mark every trust boundary, name what crosses it, and say which control belongs at that crossing.

Run a five-question interrogation that surfaces most AI design flaws in ten minutes, even when the team cannot tell you which model they are using.

Review an AI agent in twenty minutes by reading its tool definitions as a security boundary specification.

Write findings as architecture rather than anecdote, so the engineering team can action them.

Sign off, or refuse, with reasons mapped to the OWASP LLM Top 10, NIST AI RMF and MITRE ATLAS.


The seven sections

1. Why architecture is the boundary. What AI changes about threat modelling, and the five questions you will use for the

rest of the course.

2. The modern AI stack, end to end. Seven layers, one request traced through eleven hops, the three deployment shapes you will actually meet, and the seven places your data lands.

3. Trust boundaries and untrusted text. Why in one channel, direct and indirect prompt

injection, and how to design for text you can

4. Agents, tools and the authority problem. Tool design, agent loops, persistent memory, multi-agent systems, connectors, computer-use agents, and the twenty-minute agent review.

5. The data layer. RAG pipelines, the retrieval permission problem, why embeddings are not anonymisation, and what fine-tuning bakes in permanently.

6. Evaluation, monitoring and incident response. What is actually worth measuring, the five log fields that make an AI

incident investigable, and containment when there is nothing to patch.

7. Governance, procurement and the review. AI inventory, risk tiering, shadow AI as a data-flow problem, ten questions to ask a vendor while you still have leverage, and the complete review you take back to work.


What this course is not

There is no maths, no model training, no noted shows code, it is there to be read, not run.

This is not a course about attacking models or course about reading systems, because that is where the incidents actually come from.


Who this is for

Security architects, AppSec leads, GRC and compliance professionals, security engineers, SOC leads, CISOs, auditors and consultants. Anyone who owns a sign-off on an table way to give it.

What it assumes: you can read a network diagram, you know IAM, least privilege, TLS, egress filtering and audit logging,

and you have used an LLM at least once.

Who this course is for:

  • Security architects, AppSec leads and GRC professionals who own the sign-off on an AI project.
  • Threat modellers who can take apart a web app or a cloud account, but whose mental model runs out when the system has a model in it.
  • Security engineers and SOC leads suddenly handed three AI projects, none of which came with a diagram.
  • CISOs, auditors and consultants who need a repeatable AI review method and vendor questions, not a model-training tutorial.
  • Not for you if you want to attack models, write jailbreaks, or build and fine-tune LLMs yourself.