Course Outline
Module 1: How AI Applications Fail
- Developer perspectives on LLM, RAG, and agent architectures
- The complete request and response lifecycle of AI features
- Prompt flow: managing system, developer, user, and tool messages
- Identifying where untrusted data enters and re-enters the model
- Distinguishing between trust boundaries owned by the developer versus those inherited
- Understanding why AI attacks are semantic rather than syntactic in nature
- Mapping the OWASP LLM Top 10 to the code developers write
Module 2: Prompt Injection for Developers
- Differentiating between direct and indirect prompt injection
- Identifying hidden instructions in documents, web pages, and tool outputs
- Understanding jailbreaks and role confusion techniques
- The critical importance of separating instructions from data
- Defensive prompt design strategies: using delimiters, structure, and minimal authority
- Accepting partial prevention and designing for containment
- Lab 01: Attack a personal chatbot, bypass naive filters, and restructure the prompt
Module 3: Treating Model Output as Untrusted
- Viewing model output as untrusted input for the broader application
- Insecure output handling patterns: XSS, SSRF, and downstream command or SQL injection
- Avoiding direct evaluation, execution, or raw rendering of model output
- Implementing structured outputs and schema validation
- Applying output encoding and allowlist strategies
- Ensuring safe rendering in web and UI contexts
- Lab 02: Identify and remediate an insecure output handling vulnerability
Module 4: RAG Security
- Threats specific to vector databases and retrieval processes
- Sanitization practices during data 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
- Defining 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: Secure an agent with excessive permissions
Module 6: Secrets, Identity, and Cost
- API key and secret management: 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' attacks through unbounded token or 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 from previous modules
- Evaluating performance, false positives, and failure modes
- Lab 06: Implement and measure an input and output guardrail layer
Module 8: Red-Teaming Your Own Application
- Creating comprehensive abuse and test suites for AI features
- Automating prompt injection and jailbreak tests
- Regression testing for guardrails and policies
- Integrating AI security checks into continuous integration pipelines
- Managing model and dependency supply chain risks: provenance and pinning
- Using a pre-release security checklist for AI features
- Lab 07: Develop automated red-team tests and integrate them into CI
Module 9: Scoring AI Security with the SAIS-100 Framework
- The AI Security Hexagon: posing six critical questions beyond 'is it secure'
- Six scored categories: data, prompt, agent, supply chain, detection, and governance
- Understanding the 100-point rubric and its specific weightings
- Interpreting verdict bands and the single-category override rule
- Using pre- and post-hardening scores as security metrics
- Scoring exercises applied to the capstone application
Capstone: Hardening an AI Application
- Starter app vulnerabilities: injectable prompts, insecure output handling, and unscoped RAG
- Starter app vulnerabilities: over-permissioned agents, secrets in prompt paths, and lack of cost limits
- Restructuring prompts for containment and validating model outputs
- Sanitizing and scoping retrieval, then applying least privilege and approval gates
- Removing secrets from critical paths and adding cost and rate limits
- Implementing guardrails and automated red-team tests
- Final deliverable: a hardened application accompanied by an OWASP LLM Top 10 self-assessment
Requirements
- Proficiency in building and consuming REST APIs.
- Knowledge of at least one scripting language, with labs specifically conducted in Python.
- Familiarity with basic application authentication, git workflows, and command-line interfaces.
- No prior machine learning background is necessary; this is an application security course for developers building with LLMs, not for training them.
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 autonomous agents.
- Tech leads and senior engineers who own AI feature development.
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