Get in Touch
 Duration 21 hours

Course Outline

Module 1: Vulnerabilities in AI Applications

  • Developer-centric view of LLM, RAG, and agent architectures
  • The request and response lifecycle of AI features
  • Prompt flow: system, developer, user, and tool messages
  • Identifying where untrusted data enters and re-enters the model
  • Distinguishing trust boundaries owned by developers from those inherited
  • Understanding why AI attacks are semantic rather than syntactic
  • Mapping the OWASP LLM Top 10 to practical code implementations

Module 2: Prompt Injection for Builders

  • Comparing direct and indirect prompt injection techniques
  • Identifying hidden instructions in documents, web pages, and tool outputs
  • Analyzing jailbreaks and role confusion scenarios
  • The critical importance of separating instructions from data
  • Defensive prompt design: using delimiters, structure, and minimal authority
  • Acknowledging the limits of prevention and focusing on containment strategies
  • Lab 01: Attack your own chatbot, bypass a naive filter, and restructure the prompt

Module 3: Managing Untrusted Model Output

  • Viewing model output as untrusted input for downstream application components
  • Identifying insecure output handling issues like XSS, SSRF, and command/SQL injection
  • Avoiding the use of eval, exec, or raw rendering of model output
  • Utilizing structured outputs and schema validation
  • Implementing output encoding and allowlists
  • Ensuring safe rendering in web and UI contexts
  • Lab 02: Identify and remediate an insecure output handling bug

Module 4: RAG Security

  • Threats associated with vector databases and retrieval processes
  • Sanitizing data during ingestion
  • Establishing document provenance and trust scoring
  • Scoping retrieval and isolating metadata
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration via retrieval mechanisms
  • Lab 03: Poison a RAG pipeline and 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 processes
  • Sandboxing tool execution environments
  • Managing scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Secure an over-permissioned agent

Module 6: Secrets, Identity, and Cost Management

  • API key and secret management: keeping them out of prompts, code, and logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Addressing 'denial of wallet' risks from unbounded token and cost consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging practices that prevent leakage of secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement 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
  • Determining when to use guardrails versus custom deterministic checks
  • Layering guardrails with controls from previous modules
  • Considering performance, false positives, and failure modes
  • Lab 06: Implement input and output guardrail layers and measure their impact

Module 8: Red-Teaming Your Own Application

  • Developing an abuse and test suite for AI features
  • Creating automated prompt injection and jailbreak tests
  • Regression testing for guardrails and policies
  • Integrating AI security checks into continuous integration pipelines
  • Managing model and dependency supply chains: 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: framing six key questions instead of a binary secure/unsafe judgment
  • The six scored categories: data, prompt, agent, supply chain, detection, and governance
  • Understanding the 100-point rubric and its weightings
  • Interpreting verdict bands and the single-category override rule
  • Using pre- and post-hardening scores as performance metrics
  • Conducting a scoring exercise on the capstone application

Capstone: Hardening an AI Application

  • Starting with a vulnerable app featuring injectable prompts, insecure output handling, and unscoped RAG
  • Addressing an over-permissioned agent, secrets in the prompt path, and lack of cost limits
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, while applying least privilege and approval gates
  • Removing secrets and implementing cost and rate limits
  • Integrating guardrails and automated red-team tests
  • Final deliverable: a hardened application and an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Familiarity with a scripting language, as labs are conducted in Python.
  • Basic knowledge of application authentication, git, and command line operations.
  • No prior machine learning background is necessary; this course focuses on application security for those 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 deploying copilots and agents.
  • Tech leads and senior engineers overseeing AI feature development.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories