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 request and response lifecycle within AI features
  • Prompt structure: system, developer, user, and tool messages
  • Identifying entry points where untrusted data enters and re-enters the model
  • Distinguishing between trust boundaries owned by the developer and those inherited from infrastructure
  • Understanding why AI attacks are semantic rather than syntactic
  • Mapping the OWASP LLM Top 10 to specific code implementations

Module 2: Prompt Injection Strategies for Developers

  • Differentiating direct versus indirect prompt injection
  • Detecting hidden instructions in documents, web pages, and tool outputs
  • Mitigating jailbreaks and role confusion
  • The critical importance of separating instructions from data
  • Defensive prompt design using delimiters, structure, and minimal authority
  • Designing for containment since prevention is partial
  • Lab 01: Attack a basic chatbot, bypass simple filters, and restructure prompts for safety

Module 3: Managing Untrusted Model Output

  • Viewing model output as untrusted input for downstream application components
  • Addressing insecure output handling risks such as XSS, SSRF, and injection attacks
  • Prohibiting the direct execution of raw model output via eval, exec, or rendering
  • Utilizing 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: RAG Security Fundamentals

  • Assessing threats to vector databases and retrieval mechanisms
  • Implementing sanitization during the ingestion process
  • Establishing document provenance and trust scoring
  • Scoping retrieval and isolating metadata
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration through retrieval queries
  • Lab 03: Poison a RAG pipeline and subsequently implement defensive measures

Module 5: Ensuring Agent and Tool Safety

  • Addressing excessive agency and potential tool abuse
  • Applying the principle of least privilege to AI agents
  • Configuring tool allowlists and validating arguments
  • Implementing approval gates and human-in-the-loop controls
  • Sandboxing tool execution environments
  • Using scoped, short-lived credentials to limit autonomous loops
  • Lab 04: Secure an over-permissioned agent configuration

Module 6: Managing Secrets, Identity, and Costs

  • Securing API keys and secrets: excluding them 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' scenarios caused by unbounded token consumption
  • Enforcing rate limits, token budgets, and timeout mechanisms
  • Logging activities without exposing secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement cost controls

Module 7: Utilizing Guardrail Libraries

  • Understanding the capabilities and limitations of guardrail frameworks
  • Input guardrails for detecting injection, PII, and off-topic content
  • Output guardrails for validation, filtering, and grounding checks
  • Determining when to use guardrails versus custom deterministic checks
  • Integrating guardrails with controls from previous modules
  • Evaluating performance, false positives, and potential failure modes
  • Lab 06: Implement and measure the effectiveness of input and output guardrail layers

Module 8: Red-Team Testing for AI Applications

  • Constructing comprehensive abuse and test suites for AI features
  • Automating prompt injection and jailbreak tests
  • Performing regression testing on guardrails and security policies
  • Incorporating AI security checks into continuous integration pipelines
  • Managing the model and dependency supply chain through provenance and version pinning
  • Developing a pre-deployment security checklist for AI features
  • Lab 07: Create automated red-team tests and integrate them into CI workflows

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

  • Using the AI Security Hexagon: six critical questions to evaluate security
  • Scoring across six categories: data, prompt, agent, supply chain, detection, and governance
  • Understanding the 100-point rubric and its weighting system
  • Interpreting verdict bands and applying the single-category override rule
  • Using security scores as metrics for before-and-after hardening comparisons
  • Conducting a scoring exercise on the capstone application

Capstone: Hardening an AI Application

  • Starter app challenges: injectable prompts, insecure output handling, and unscoped RAG
  • Starter app challenges: over-permissioned agents, secrets in prompt paths, and lack of cost limits
  • Restructuring prompts for containment and implementing strict model output validation
  • Sanitizing and scoping retrieval while applying least privilege and approval gates
  • Removing secrets from sensitive paths and adding cost and rate constraints
  • 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.
  • Familiarity with at least one scripting language, as labs are conducted in Python.
  • Basic understanding of application authentication, Git, and command-line operations.
  • No prior machine learning experience is necessary; this course focuses on application security for LLM users, not model training.

Target Audience

  • Software and backend engineers integrating LLM features.
  • Full-stack and API developers.
  • AI and ML application engineers.
  • Platform engineers deploying copilots and autonomous agents.
  • Tech leads and senior engineers responsible for AI product features.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories