Course Outline
Module 1: How AI Applications Fail
- Understanding LLM, RAG, and agent architectures from a developer's perspective
- The request and response lifecycle of an AI feature
- Prompt flow: managing system, developer, user, and tool messages
- Identifying where untrusted data enters and re-enters the model
- Differentiating 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 actual code implementations
Module 2: Prompt Injection for Builders
- Distinguishing between direct and indirect prompt injection
- Identifying hidden instructions in documents, web pages, and tool outputs
- Understanding jailbreaks and role confusion
- The importance of separating instructions from data
- Defensive prompt design: utilizing delimiters, structure, and minimal authority
- Recognizing the limitations of prevention and designing for containment
- Lab 01: Attack a custom chatbot, bypass a naive filter, and restructure the prompt
Module 3: Treating Model Output as Untrusted
- Viewing model output as untrusted input for the rest of the application
- Addressing insecure output handling: XSS, SSRF, and downstream command or SQL injection
- Prohibiting the use of eval, exec, or raw rendering of model output
- Utilizing structured outputs and schema validation
- Applying output encoding and allowlists
- Safe rendering practices in web and UI contexts
- Lab 02: Identify and remediate an insecure output-handling vulnerability
Module 4: RAG Security
- Threats associated with vector databases and retrieval processes
- Sanitizing data during ingestion
- Document provenance and trust scoring
- Scope management and metadata isolation in retrieval
- Detecting hidden instructions within retrieved content
- Preventing data exfiltration via retrieval mechanisms
- 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
- Implementing tool allowlists and argument validation
- Integrating approval gates and human-in-the-loop mechanisms
- Sandboxing tool execution environments
- Using scoped, short-lived credentials and limiting autonomous loops
- Lab 04: Secure an over-permissioned agent
Module 6: Secrets, Identity, and Cost
- Managing API keys and secrets: ensuring they never appear in prompts, code, or logs
- Implementing per-user authentication and authorization for AI features
- Propagating user identity to tools and retrieval systems
- Preventing 'denial of wallet' scenarios involving unbounded token and cost consumption
- Enforcing rate limits, token budgets, and timeouts
- Logging practices that avoid leaking 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 classifiers
- Output guardrails: validation, filtering, and grounding checks
- Determining when to use guardrails versus custom deterministic checks
- Layering guardrails with controls established in previous modules
- Addressing performance impacts, false positives, and failure modes
- Lab 06: Implement input and output guardrail layers and evaluate their performance
Module 8: Red-Teaming Your Own App
- Constructing abuse and test suites for AI features
- Creating automated prompt injection and jailbreak tests
- Regression testing guardrails and policies
- Integrating AI security checks into continuous integration pipelines
- Managing model and dependency supply chains: provenance and version pinning
- Using a pre-deployment security checklist for AI features
- Lab 07: Write automated red-team tests and integrate them into CI
Module 9: Scoring AI Security, the SAIS-100 Framework
- The AI Security Hexagon: shifting focus from 'is it secure' to six specific questions
- The six scored categories: data, prompt, agent, supply chain, detection, governance
- The 100-point rubric and its weighting system
- Interpreting verdict bands and the single-category override rule
- Using pre- and post-hardening scores as security metrics
- Scoring exercise applied to the capstone application
Capstone: Hardening an AI Application
- The starter application: features an injectable prompt, insecure output handling, and unscoped RAG
- The starter application: includes an over-permissioned agent, secrets in the prompt path, and no cost limits
- Restructuring prompts for containment and validating model outputs
- Sanitizing and scoping retrieval, then applying least privilege and approval gates
- Migrating secrets out of the prompt path and implementing cost and rate limits
- Adding guardrails and automated red-team tests
- Deliverable: a hardened application accompanied by an OWASP LLM Top 10 self-assessment
Requirements
- Proficiency in building and consuming REST APIs.
- Knowledge of a scripting language; labs are conducted in Python.
- Familiarity with basic application authentication, Git, and command-line operations.
- No prior machine learning background is necessary; this is an application security course for those building with LLMs, not for training the models themselves.
Audience
- Software and backend engineers developing LLM-based features.
- Full-stack and API developers.
- AI and ML application engineers.
- Platform engineers responsible for deploying copilots and agents.
- Tech leads and senior engineers accountable for AI feature delivery.
Custom Corporate Training
Training solutions designed exclusively for businesses.
- Customized Content: We adapt the syllabus and practical exercises to the real goals and needs of your project.
- Flexible Schedule: Dates and times adapted to your team's agenda.
- Format: Online (live), In-company (at your offices), or Hybrid.
Price per private group, online live training, starting from 3900 € + VAT*
Contact us for an exact quote and to hear our latest promotions
Testimonials (3)
inventory and identifying the different risk exposures within AI
Gary Cook - Cybersecurity and Information Technology Risk Division
Course - Introduction to AI Trust, Risk, and Security Management (AI TRiSM)
I really enjoyed learning about AI attacks and the tools out there to begin practicing and actively using for security testing. I took a lot of knowledge away which I didn't have at the beginning and the course met what I hoped it would be. My favorite part shown from the training was Comet Browser and was amazed at what it could do. Definitely something will be looking into more. Overall it was a great course and enjoyed learning all OWASP GenAI Top 10.
Patrick Collins - Optum
Course - OWASP GenAI Security
The profesional knolage and the way how he presented it before us