
Build, attack, and secure AI applications from the start, testing failures safely to understand prompts, tool use, data access, and memory effects, and to ask better security questions.
Understand why AI security matters more than ever as AI integrates with data and workflows. Extend security to address prompts, documents, memory, and tool use, and test defenses before production.
Build a secure, layered AI application starting from a simple chat assistant, then implement prompt security, ROG, tool calls, memory, and agents, culminating in a production-ready security gateway.
Develops a step-by-step ai security roadmap from foundations to production deployment, emphasizing build, attack, and secure across prompt security, rag, memory, agents, security gateway, and capstone.
Install and verify Python, VS Code, and Git to establish a clean development environment for AI app development, ensuring path setup, version checks, and ready-to-code workspace.
Set up OLAMA to run local language models on your machine, install and verify the tool, and practice managing models via a local API with a provider-agnostic service layer.
Explore how ai security differs from traditional application security, noting prompts, documents, and chat history shaping model behavior and trust boundary, with layered guardrails across input, model, tools, and output.
Identify the OWASP top 10 risks for LLM applications, including prompt injection and sensitive information disclosure, and map them to practical defenses across the full app.
Adopt a layered AI security approach using multiple controls along a secure pipeline. From prompt validation to context isolation and tool security, every layer reduces risk and provides visibility.
Build a Streamlit AI chat assistant by wiring local Ulama and OpenAI backends through a configurable service, config, and prompts, ensuring testable, portable deployment.
Explore direct prompt injection, where a user message tries to override an ai assistant, and learn to apply system, developer, and user instruction hierarchy with prompt validation and guardrails.
Explore prompt hierarchy and how system, developer, and user messages determine authority in secure AI applications. Learn defenses like validation, guardrails, and monitoring to prevent prompt injection.
Explore prompt injection techniques on a chat assistant, exposing how hidden system prompts can be breached. Implement prompt validation to secure AI conversations.
Add a basic guardrail layer to block prompts with a safe, consistent refusal before the model, and implement a guardrails file with a safe refusal function for reuse.
test prompt injection defenses by running the app in a virtual environment, validating prompts with guardrails to block risky inputs before the model processes them, demonstrating a first defense layer.
Explore how ai jailbreaks push models beyond safety boundaries, analyze patterns like roleplay and prompt injection, and build defense with guardrails, validation, and monitoring.
Explore role-playing, encoding, and multi-turn attacks that hide intent and bypass model boundaries, and learn layered defenses, including validation, guardrails, and adversarial testing to secure conversations.
Demonstrate jailbreak attacks against a chat assistant and test prompt validation and guardrails. Preview the next lab, building a prompt risk analyzer to classify risky prompts before responses.
Add a prompt filtering layer atop the risk analyzer to convert risk scores into allow, warn, or block decisions, with high-risk prompts blocked and medium-risk prompts warned.
Evaluate jailbreak resistance through a multi-layer defense workflow that analyzes prompt risk, filters prompts, and blocks high-risk inputs while preserving safe educational prompts.
Retrieval augmented generation retrieves relevant documents before answering, using embeddings and vector search to provide grounded, source backed answers, while highlighting security risks and defenses.
Explore how rag applications work by retrieving from a knowledge base, adding relevant content to prompts, and generating grounded answers with embeddings and vector search, with a security focus.
Design and implement a document-based rag assistant from scratch, exploring security and governance considerations in building reliable, accountable ai retrieval systems.
Explore retrieval augmented generation by querying uploaded documents and verifying answers stay within scope, while learning safe mitigation and defense against rag attacks.
Examine prompt injection risks in retrieval augmented generation, where retrieved content influences model behavior, and learn defenses like trusted source validation and content isolation.
Explore how retrieval augmented generation can be hijacked by poisoned documents and learn to enforce trust boundaries through source validation, context isolation, and content sanitization.
Expose security risks in a RAG assistant by ingesting a malicious PDF, revealing prompt injection through retrieved content, and outlining defenses like trusted source validation, context isolation, and sanitization.
Examine how a poisoned retrieved context can mislead an AI assistant, and learn defenses like trusted source validation, metadata checks, context isolation, and sanitization.
Add context isolation to the rag assistant by wrapping retrieved content with start and end markers, treating untrusted document text as reference data and separating instructions from data.
Apply content sanitization to retrieved text in the rag pipeline, neutralizing risky phrases and fake labels before context is passed to the model, using a sanitizer module and cleanup rules.
Verify the RAG security defenses by testing trusted source validation, context isolation, and retrieve context sanitization, and observe how untrusted content is blocked.
Learn how tool calling enables ai assistants to use external functions through a secure, registry-driven workflow; validate inputs, enforce permissions, and connect natural language requests to tools.
Explore function calling and tool selection, where the model proposes tool calls but the application validates, approves, and executes them safely using a structured tool request and registry.
Design three assistant tools: weather, calculator, and email—and learn secure tool calling through structured inputs, validation, permissions, logging, and human approval to ensure safe external actions.
Test multiple tool calls in the tool‑calling chat assistant, verify models and tools (calculator, weather, email draft), and illustrate end‑to‑end workflow from input to execution.
Understand the security risks of tool calling and how the application enforces policy, validates inputs, limits permissions, and requires human review before sensitive actions.
Explain parameter injection in tool calls and why validation, allow lists, and permissions—plus human approval for high‑impact actions—prevent unauthorized actions and unknown fields.
Examine weaknesses of a tool calling chat assistant by testing the email draft tool for unauthorized use, highlighting missing authorization, prompt injection risks, and the need for human approval.
Implement a central input validator that sits between the registry and tools, enforcing schema fidelity, safety checks, and injection protection to guard tool execution.
Implement a permission layer for tool calls that classifies tools as read or action, enforces policy in the registry, and makes configuration-driven, environment-aware approvals central.
Introduce a human approval gate for sensitive tool actions, ensuring the assistant proposes actions but requires explicit user approval before execution.
Explore memory poisoning attacks and how stored memory can influence future conversations and trusted context. Apply defenses: validate memory before storage, require approval, isolate memory, and log changes.
Persistent context enables cross-session memory but creates risk of memory poisoning. Design a governed memory system with provenance, scope, approval, expiry, and audit to prevent unsafe data influencing actions.
Implement a memory validator to gate writes before storage, filtering oversized or instruction-like inputs with regex checks and a length cap to prevent memory poisoning.
Introduce a human approval gate before memory storage, enforcing an approval policy and pending memory flow via the service layer and memory store, with an approval prompt pausing saves.
Demonstrates a memory security workflow that validates memories, blocks unsafe ones, and requires user approval for safe and gray zone memories, ensuring all memory operations pass validation first.
This course contains the use of artificial intelligence.
Build the practical skills required to design, attack, secure, monitor, and govern modern AI applications in this comprehensive AI Security and Governance Masterclass.
As organizations rapidly adopt generative AI, large language models, RAG applications, and autonomous AI agents, security and governance have become essential. AI systems introduce risks that traditional application security alone cannot address, including prompt injection, jailbreak attacks, document poisoning, memory manipulation, unauthorized tool execution, sensitive data exposure, hallucinations, and uncontrolled agent actions.
This course takes a hands-on, project-based approach. You will not only study AI security concepts—you will build vulnerable AI systems, attack them, understand their weaknesses, and implement practical defenses.
You will begin by setting up Python, Visual Studio Code, Git, and Ollama, then build your first AI chat assistant. You will explore the AI threat landscape, understand the OWASP Top 10 for LLM Applications, and learn how security differs across traditional software and AI-powered systems.
You will perform real-world direct prompt injection and AI jailbreak attacks, then create prompt validation, risk scoring, filtering, and guardrail mechanisms. You will build a complete Retrieval-Augmented Generation application, attack it using malicious documents, poison retrieved context, and secure it through trusted-source validation, context isolation, content sanitization, and enforcement controls.
The course also covers AI tool-calling security, including parameter injection, excessive permissions, unauthorized actions, input validation, least-privilege access, and human approval for sensitive operations. You will build persistent AI memory, demonstrate memory-poisoning attacks, and implement approval and validation controls before information is stored.
As you progress, you will develop an autonomous AI agent that can plan, reason, use tools, and complete workflows. You will then secure its decision-making process using human-in-the-loop approvals, restricted permissions, action validation, and traceable execution.
You will combine these defenses into an integrated AI Security Gateway covering prompts, RAG, tools, memory, and agents. You will also learn production practices involving Docker, deployment, security monitoring, logging, audit trails, and incident response.
Beyond technical security, this course provides extensive coverage of enterprise AI governance. You will build AI inventories, usage dashboards, cost analytics, risk-scoring engines, model-evaluation dashboards, drift-monitoring systems, prompt-governance labs, agent-observability tools, and RAG governance dashboards.
You will learn how to map controls to NIST AI RMF, the EU AI Act, and ISO/IEC 42001. Topics include policy management, control evidence, model cards, AI impact assessments, approval workflows, exception management, guardrail effectiveness, governance KPIs, KRIs, incident remediation, and executive reporting.
The final capstone brings everything together as you build an Enterprise AI Governance Command Center connecting AI telemetry, risk, controls, compliance evidence, incidents, remediation, and leadership dashboards.
Whether you are an AI engineer, cybersecurity professional, risk manager, enterprise architect, developer, auditor, compliance leader, or technology executive, this course will help you build AI systems that are not only powerful—but also secure, responsible, compliant, observable, and enterprise-ready.