Get in Touch
 Duration 21 hours

Course Outline

Module 1: Failure Modes in AI Applications

  • Developer-centric perspectives on LLM, RAG, and agent architectures
  • The lifecycle of requests and responses in AI features
  • Prompt architecture: system, developer, user, and tool messages
  • Trace where untrusted data enters and re-enters the model context
  • Differentiate between trust boundaries a developer controls versus those inherited
  • Understanding why AI attacks are semantic in nature rather than syntactic
  • Translating the OWASP LLM Top 10 into practical code implementations

Module 2: Prompt Injection for Developers

  • Distinguishing between direct and indirect prompt injection
  • Identifying hidden instructions within documents, web pages, and tool outputs
  • Analyzing jailbreak techniques and role confusion scenarios
  • The critical importance of separating instructions from data
  • Defensive prompt design strategies: delimiters, structural integrity, and minimal authority
  • Recognizing the limitations of prevention and designing for containment
  • Lab 01: Attack your own chatbot, bypass basic filters, and restructure prompts

Module 3: Managing Untrusted Model Output

  • Viewing model output as untrusted input for downstream applications
  • Risks of insecure output handling: XSS, SSRF, and downstream SQL or command injection
  • Prohibiting the direct execution, evaluation, or rendering of raw model outputs
  • Leveraging structured outputs and schema validation
  • Implementing output encoding and strict allowlists
  • Ensuring safe rendering in web and UI contexts
  • Lab 02: Identify and remediate an insecure-output-handling vulnerability

Module 4: Securing RAG Systems

  • Threats targeting vector databases and retrieval mechanisms
  • Sanitization processes during data ingestion
  • Establishing document provenance and trust scoring
  • Controlling retrieval scope and isolating metadata
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration via retrieval channels
  • Lab 03: Poison a RAG pipeline, then implement defensive measures

Module 5: Safety in Agents and Tools

  • Mitigating excessive agency and tool misuse
  • Applying least privilege principles to agents
  • Enforcing tool allowlists and validating arguments
  • Implementing approval gates and human-in-the-loop controls
  • Sandboxing tool execution environments
  • Using scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Restrict the permissions of an over-privileged agent

Module 6: Managing Secrets, Identity, and Costs

  • API key and secret management: exclusion from prompts, code, and logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Preventing "denial of wallet" through unbounded token and cost usage
  • Setting rate limits, token budgets, and timeout mechanisms
  • Logging securely without exposing secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement cost constraints

Module 7: Implementing Guardrail Frameworks

  • Capabilities and limitations of guardrail libraries
  • Input guardrails: detection of injection, PII, and topic classifiers
  • Output guardrails: validation, filtering, and grounding checks
  • Deciding when to use guardrails versus custom deterministic checks
  • Integrating guardrails with controls from previous modules
  • Managing performance, false positives, and potential failure modes
  • Lab 06: Deploy input and output guardrail layers and measure their efficacy

Module 8: Red-Teaming Your Application

  • Creating comprehensive abuse and test suites for AI features
  • Automating prompt injection and jailbreak testing
  • Conducting regression tests on guardrails and policies
  • Incorporating AI security checks into continuous integration pipelines
  • Securing the model and dependency supply chain through provenance and pinning
  • Applying a pre-release security checklist for AI features
  • Lab 07: Develop automated red-team tests and integrate them into CI

Module 9: Assessing AI Security via the SAIS-100 Framework

  • The AI Security Hexagon: shifting focus from "is it secure" to six critical questions
  • Scoring six key categories: data, prompt, agent, supply chain, detection, and governance
  • Understanding the 100-point rubric and its weighting structure
  • Interpreting verdict bands and the single-category override rule
  • Using security scoring as a metric before and after hardening
  • Conducting a scoring exercise on the capstone application

Capstone Project: Hardening an AI Application

  • Starter app components: injectable prompts, insecure output handling, and unscoped RAG
  • Starter app components: over-permissioned agents, secrets in prompt paths, and absent cost limits
  • Restructuring prompts for containment and implementing model output validation
  • Sanitizing and scoping retrieval, followed by applying least privilege and approval gates
  • Migrating secrets to secure storage and enforcing cost and rate limits
  • Integrating guardrails and automated red-team testing
  • Final Deliverable: A hardened application accompanied by an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Working knowledge of a scripting language, with labs conducted in Python.
  • Familiarity with basic application authentication, git workflows, and command-line operations.
  • No prior machine learning expertise is necessary; this is an application security course for engineers building with LLMs, not for those training models.

Target Audience

  • Software and backend engineers developing LLM features.
  • Full-stack and API developers.
  • Application engineers specializing in AI and ML.
  • Platform engineers deploying copilots and autonomous agents.
  • Tech leads and senior engineers responsible for AI feature delivery.

Testimonials (3)

Related Categories