Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Vulnerabilities

  • LLM, RAG, and agent architectures from a developer’s perspective
  • The lifecycle of requests and responses in AI features
  • Prompt flow: handling system, developer, user, and tool messages
  • Identifying where untrusted data enters and re-enters the model
  • Distinguishing between trust boundaries a developer owns versus those inherited
  • Understanding why AI attacks are semantic rather than syntactic
  • Mapping the OWASP LLM Top 10 to the code you write

Module 2: Prompt Injection for Builders

  • Differentiating direct versus indirect prompt injection
  • Detecting hidden instructions in documents, web pages, and tool outputs
  • Understanding jailbreaks and role confusion
  • The importance of separating instructions from data
  • Defensive prompt design: using delimiters, structure, and minimal authority
  • Why prevention is partial and the need to design for containment
  • Lab 01: Attack your own chatbot, bypass a naïve filter, and restructure the prompt

Module 3: Treating Model Output as Untrusted

  • Viewing model output as untrusted input for the rest of the application
  • Handling insecure output: preventing XSS, SSRF, and downstream command or SQL injection
  • Avoiding eval, exec, or raw rendering of model output
  • Implementing structured outputs and schema validation
  • Applying output encoding and allowlists
  • Safe rendering practices for web and UI contexts
  • Lab 02: Identify and fix an insecure-output-handling bug

Module 4: RAG Security

  • Threats to vector databases and retrieval processes
  • Sanitizing data during ingestion
  • Tracking document provenance and assigning trust scores
  • Scoping retrieval and isolating metadata
  • Identifying hidden instructions in retrieved content
  • Preventing data exfiltration through retrieval
  • Lab 03: Poison a RAG pipeline, then implement defenses

Module 5: Agent and Tool Safety

  • Mitigating excessive agency and tool abuse
  • Applying least privilege principles to agents
  • Using tool allowlists and validating arguments
  • Implementing approval gates and human-in-the-loop checks
  • Sandboxing tool execution
  • Using scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Secure an over-permissioned agent

Module 6: Secrets, Identity, and Cost

  • API key and secret management: ensuring they are never in prompts, code, or logs
  • Per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Preventing denial of wallet: unbounded token and cost consumption
  • Implementing rate limits, token budgets, and timeouts
  • Logging practices that avoid leaking secrets or PII
  • Lab 05: Remove secrets from the prompt path and add cost limits

Module 7: Guardrail Libraries

  • Understanding the capabilities and limitations of guardrail frameworks
  • Input guardrails: detecting injection, PII, and topic classification
  • Output guardrails: validation, filtering, and grounding checks
  • Deciding when to use guardrails versus custom deterministic checks
  • Layering guardrails with controls from earlier modules
  • Evaluating performance, false positives, and failure modes
  • Lab 06: Add an input and output guardrail layer and measure its impact

Module 8: Red-Teaming Your Own App

  • Creating an abuse and test suite for AI features
  • Automating prompt injection and jailbreak tests
  • Regression testing guardrails and policies
  • Integrating AI security checks into continuous integration
  • Managing model and dependency supply chain: provenance and pinning
  • Using a pre-ship security checklist for AI features
  • Lab 07: Write automated red-team tests and integrate them into CI

Module 9: Scoring AI Security with the SAIS-100 Framework

  • The AI Security Hexagon: six key questions beyond "is it secure"
  • The six scored categories: data, prompt, agent, supply chain, detection, and governance
  • The 100-point rubric and its specific weightings
  • Understanding verdict bands and the single-category override rule
  • Using pre- and post-hardening scores as metrics
  • Scoring exercise applied to the capstone application

Capstone: Hardening an AI Application

  • The starter app: features an injectable prompt, insecure output handling, and unscoped RAG
  • The starter app: includes an over-permissioned agent, secrets in the prompt path, and no cost limits
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, then applying least privilege and approval gates
  • Removing secrets and adding cost and rate limits
  • Implementing guardrails and automated red-team tests
  • Final deliverable: a hardened app plus an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Familiarity with a scripting language, with lab exercises provided in Python.
  • Basic knowledge of application authentication, Git, and command-line operations.
  • No machine learning background is required; this course focuses on application security for professionals building with LLMs, rather than training models.

Target Audience

  • Software and backend engineers developing LLM features.
  • Full-stack and API developers.
  • AI and ML application engineers.
  • Platform engineers responsible for shipping copilots and agents.
  • Tech leads and senior engineers with ownership of AI features.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories