May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
AI Engineering · Security
Free preview: the first part of this 19-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI courseread the rest of this lesson in
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI coursein Security
This lesson is part of the AI Engineering course. Unlock the full course, a separate one-time payment, for lifetime access.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime AccessFoundation lessons of this course are free, no payment needed. Try them now
By now this chapter has given you four separate defenses. You can break the so injection cannot both read a secret and send it out. You can treat model output as untrusted before it touches a shell or a query. You can sandbox tools and scope each one to least privilege. You can give the agent a real, delegated identity instead of a shared superuser key.
Four defenses, and one question that ties them together: how do you know they hold, and how do you know you did not miss a threat none of them covers?
That is the job of this last lesson, and it has two halves. The first half is a map. The security research community, through OWASP, has already cataloged the ways LLM and agent systems get attacked. If you organize that catalog well, every defense you built lands on it in an obvious place, and any gap shows up as a branch with nothing defending it. The second half is a practice. A map tells you what could go wrong. Red-teaming tells you whether it actually does, by attacking your own agent on purpose and turning those attacks into a test that runs on every change.
Indirect is not theoretical. Researchers have repeatedly shown production assistants reading a hidden instruction from a web page, a document, or an email and then leaking data or calling a tool the user never asked for. Simon Willison has written the clearest running account of this class of attack. The point of a threat model is to stop meeting these one surprise at a time and start meeting them as a list you already checked. By the end of the lesson you will have both halves in hand: a way to place any threat you ever read about, and a suite that tells you, on every commit, whether your specific agent is still safe.