
See how a helpful AI assistant turns into a business problem: a misleading answer, information given to the wrong person, an action nobody authorized, and a promise nobody approved. Learn to trace each failure to its business consequence and to tell a poor answer from an unsafe action.
Separate the four kinds of problems guardrails deal with: harmful content, deliberate misuse, unsupported answers and broken business rules. See how a single customer request can raise several different control questions at once.
Understand what layered safeguards can achieve, what risk remains, and why a system prompt or a classifier can never replace authorization enforced by the application. Learn the difference between preventing, detecting and responding.
Meet HarborPoint Services, the home-services company used throughout the course: its people, documents, records and the AI assistant it plans to launch. Learn where answering a question ends and recommending or taking an action begins.
Turn "make the assistant safe" into requirements you can observe and test. Define what the assistant may do, what it must never do, and which situations need a person to review. Includes the Acceptable-Behavior Worksheet.
Follow one customer request through an AI application: sign-in identity, user input, instructions, retrieval, generation, validation and execution. Find out which parts of the system are authoritative and which only make suggestions.
Learn to treat documents, messages, web pages and tool results as data that may carry hostile instructions, and why untrusted content can still be useful when the application handles it correctly.
Compare answering a policy question with changing a customer's record. See which extra checks an application needs once it can change something in the real world.
Inventory what needs protecting: data, credentials, business processes, financial limits and consequential decisions. Then prioritize controls by what could go wrong.
Build a guardrail placement map for HarborPoint: controls before retrieval, around the model, and before any action runs. For each one, say what it checks and what happens when it fails. Includes the Guardrail Placement Map.
Convert broad policy statements into triggers, required evidence, expected decisions and measurable outcomes, and recognize the requirements that still need human judgment.
Compare the ways a guardrail can respond: allow, mask, constrain, refuse, escalate or request approval. Learn when changing the input removes information the task actually needs.
Match the strength of a control to the consequence of getting it wrong: light checks for low-impact explanations, strict conditions for sensitive records and money.
Design exceptions that stay under control: who may approve, what they see, and exactly what their approval authorizes, so an approval never quietly grants wider authority.
Build and test a guardrail decision table for HarborPoint. Run normal requests, violations, ambiguous cases and approved exceptions through a policy engine, and inspect every decision it makes.
Recognize direct prompt injection and jailbreak attempts, and tell them apart from legitimate questions about security. Connect them to OWASP LLM01 and Agent Goal Hijack, with a real, publicly reported case.
Follow instructions hidden in useful content into the workflow: a service ticket, a retrieved document, a tool result, hidden text in a PDF or email, and instructions inside an uploaded image.
Find the limits of input screening. See how a keyword filter misses paraphrases and blocks legitimate requests, what trained safety classifiers add, and why a score is never a guarantee.
Combine screening with application controls: restricted retrieval, bounded tool access and validation before execution, so an attack that slips past screening still meets a boundary.
Work through a contaminated service ticket that tries to extract internal information, then redesign the workflow so no ticket can grant access or authorize an action.
Tell personal data, secrets and confidential business information apart, and set handling rules for each. Learn why secrets and internal rules must never depend on a system prompt staying hidden (OWASP LLM07).
Compare removing, masking, replacing and keeping data outside the model entirely, and give the model only what the authorized task needs.
Understand in plain words how retrieval finds documents by meaning, then enforce access with the user's identity and document labels before the search runs, not after. See why asking the model to hide restricted content fails (OWASP LLM08).
Keep the knowledge base trustworthy. See how a planted or altered document, poisoned labels or a stale version can steer answers, and control who can add sources, what gets checked at ingestion, and how drift is caught.
Close the quieter leaks: responses, conversation history, debug output, exports and the system prompt itself. Keep useful telemetry without holding on to sensitive content.
Redact sensitive details from HarborPoint's messages, add a recognizer for its account numbers, and test permission-aware retrieval, including a planted document that must never reach the model, while legitimate tasks keep working.
Separate an answer that sounds right from one the evidence actually supports. Break answers into claims, check each against its source, and catch citations that don't back up what they're attached to (OWASP LLM09).
Decide what the assistant should do when evidence is missing, conflicting, out of date or not enough, and design a useful escalation instead of a guess.
Validate the structure of AI output: types, required fields, ranges and unexpected fields. Learn why valid JSON proves neither truth nor permission, and treat links, HTML and queries in output as untrusted (OWASP LLM05).
Enforce refund limits and account rules outside the model, so a well-formed but unauthorized proposal is still rejected. Includes a real case of a support bot's invented policy becoming the company's problem.
Diagnose a convincing but unsupported policy exception the assistant invented, choose the right refusal, correction or review path, and test the fix.
Separate read, propose, approve and execute permissions, and set explicit boundaries for every role and tool an agent uses (OWASP LLM06 Excessive Agency).
Give agents narrow tools and limited credentials. Learn why tool descriptions the model can read are not authorization, and how the confused-deputy problem lets an assistant act with access the user doesn't have.
Treat connectors, plug-ins and MCP servers as supply chain: approve them, pin versions, limit scopes and watch for tool descriptions that carry instructions. Protect agent memory, messages between agents, and generated code.
Check every tool call before it runs: the operation, target account, parameters, signed-in user and policy. Reject calls with missing or inconsistent context.
Design approval gates that mean something: show the reviewer the exact action and its consequences, bind the approval to that action, and recheck if anything changes. Guard against agents that talk people into approving.
Control what happens over many steps: step budgets, transaction limits, duplicate prevention, stop conditions and recovery. Test repeated calls, not just single actions.
Trace how a routine request turned into an unauthorized account change, add the missing controls, and verify both the blocked and the allowed actions.
Choose the right kind of control for each requirement: deterministic rules, trained classifiers, model evaluators or human review, weighing purpose, uncertainty, cost, speed and upkeep.
Connect the controls into one workflow, from input handling and retrieval authorization through output checks and execution, and record which control stopped each request and why.
Decide what happens when a guardrail service times out or goes down: stop, retry, reduce what the assistant can do, or route to a person, depending on what's at stake.
See how open-source guardrail frameworks and managed services express the controls in this course, what they add, and what always remains the application's job.
Map HarborPoint's controls to the OWASP Top 10 for LLM Applications, the OWASP Top 10 for Agentic Applications and MITRE ATLAS, find the gaps, and use the map with security teams and auditors. Includes the OWASP and ATLAS Crosswalk.
Run requests through the complete control stack, switching controls on one at a time, and confirm that later safeguards still catch what an earlier check misses.
Build an evaluation set that represents real use: normal tasks, attacks, ambiguous cases, authorized exceptions and boundary values, with development cases kept apart from acceptance tests.
Measure what matters: missed violations, unnecessary blocks and legitimate tasks completed, and why one overall accuracy number hides the failures that count.
Test what single messages can't show: multi-turn conversations, changing context, contaminated retrieval, repeated actions and attempts to reuse approvals.
Plan structured red teaming: scope, permission and rules of engagement, attack libraries mapped to OWASP, and automated scanners alongside human testers. Turn every finding into a regression test.
Use automated evaluators carefully: tell deterministic checks from model judgments, measure evaluators against people's labels, and investigate every disagreement.
Rerun everything after every change to policy, settings, models, prompts, tools or retrieval. Save the versions with each run and compare results case by case.
Decide whether HarborPoint is ready to launch: test the pilot team's claim on held-back cases, write release criteria, tune screening, and make a go or no-go recommendation you can defend.
Monitor guardrail decisions in production with decision codes, correlation IDs, control versions and review signals that tell a named owner to look. Watch for agents drifting outside policy while looking legitimate, and keep sensitive content out of logs.
Investigate an AI control failure from the decision traces: rebuild each request, find the change that caused it, and decide whether the model or the application's enforcement failed. Compare with a real public incident.
Stop the harm with the narrowest switch that works: route tasks to people, narrow access, disable a tool or pause a workflow. Restore service only after regression tests prove it's safe.
Give every control a named owner, define the events that trigger a review, and make sure no risk label lets a change skip its tests.
Repair HarborPoint's flawed release configuration, prove it with acceptance tests, and present a guardrail plan with its evidence, known limitations, OWASP and ATLAS coverage, and owners.
This course contains the use of artificial intelligence.
Your AI assistant just told a customer their water damage is covered. It isn't. Another chat handed an address to the wrong person, a refund went out that nobody approved, and the assistant promised an exception that doesn't exist. Every one of those started with a helpful AI and a missing guardrail.
This course teaches you to design, build and prove the controls that keep generative AI applications and AI agents within bounds. You won't just learn what prompt injection is. You'll learn where each control belongs in a real application, what it checks, what happens when it fails, and how to show the people who own the risk that it works.
One realistic case, start to finish. You'll follow HarborPoint Services, a home-services company launching a customer-service assistant that answers policy questions, looks up accounts, books visits and issues refunds. Every lesson builds on the last, from mapping the application to a release decision you can defend.
What you'll work through:
Learn by doing. Pause-and-decide exercises run through every lesson, and the capstone has you repair a flawed release configuration and present a guardrail plan with its evidence, limitations and owners. Hands-on labs use synthetic data and supplied code in Jupyter or Google Colab. The core labs need no AI model, no API keys or subscriptions, and no special hardware.
A defender's course. This isn't a tour of one product or a collection of attack tricks. It's about controls enforced by the application, measured honestly, and operated over time, so the assistant stays useful to legitimate customers while the guardrails do their job.
Real, publicly reported incidents are included where they make a point, and every one is verified. By the end, you'll be able to look at any AI assistant or agent and say exactly what keeps it under control, and what doesn't yet.