Course Outline
Module 1: Understanding AI Application Vulnerabilities
- Developer perspective on 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 your codebase
Module 2: Prompt Injection for Developers
- Direct versus indirect prompt injection techniques
- Hidden instructions embedded in documents, web pages, and tool outputs
- Jailbreaks and role confusion vulnerabilities
- The critical importance of separating instructions from data
- Defensive prompt design: using delimiters, structure, and minimal authority
- Designing for containment, acknowledging that prevention is partial
- Lab 01: Attack your own chatbot, bypass a naïve filter, and restructure the prompt
Module 3: Treating Model Output as Untrusted
- Viewing model output as untrusted input for the rest of the application
- Insecure output handling risks: XSS, SSRF, and downstream command or SQL injection
- Avoiding direct execution or rendering of raw 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 fix an insecure output handling bug
Module 4: RAG Security
- Threats associated with vector databases and retrieval processes
- Sanitization strategies during data ingestion
- Establishing document provenance and trust scoring
- Retrieval scoping and metadata isolation techniques
- Detecting hidden instructions in retrieved content
- Preventing data exfiltration through 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
- Configuring tool allowlists and validating arguments
- Implementing approval gates and human-in-the-loop processes
- Sandboxing tool execution environments
- Using scoped, short-lived credentials to limit autonomous loops
- Lab 04: Restrict the permissions of an over-permissioned agent
Module 6: Secrets, Identity, and Cost Management
- API key and secret management: 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
- Countering denial of wallet attacks via unbounded token and cost consumption
- Setting rate limits, token budgets, and timeouts
- Logging effectively without leaking secrets or PII
- Lab 05: Remove secrets from the prompt path and implement cost limits
Module 7: Guardrail Frameworks
- Understanding the capabilities and limitations of guardrail frameworks
- Input guardrails: detecting injection, PII, and classifying topics
- Output guardrails: validation, filtering, and grounding checks
- Deciding when to use guardrails versus implementing custom deterministic checks
- Layering guardrails with controls from previous modules
- Managing performance, false positives, and failure modes
- Lab 06: Add input and output guardrail layers and measure their impact
Module 8: Red-Teaming Your Own Application
- Creating abuse and test suites specific to AI features
- Developing automated prompt injection and jailbreak tests
- Regression testing guardrails and security policies
- Integrating AI security checks into continuous integration pipelines
- Securing the model and dependency supply chain: provenance and pinning
- Establishing 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: six key questions beyond simple binary security assessments
- The six scored categories: data, prompt, agent, supply chain, detection, and governance
- The 100-point rubric and its associated weightings
- Verdict bands and the single-category override rule
- Using pre- and post-hardening scores as a metric for improvement
- Conducting a scoring exercise on the capstone application
Capstone: Hardening an AI Application
- The starter app features: injectable prompts, insecure output handling, and unscoped RAG
- The starter app vulnerabilities: over-permissioned agents, secrets in the prompt path, and lack of cost limits
- Restructuring prompts for containment and validating model output
- Sanitizing and scoping retrieval, then applying least privilege and approval gates
- Removing secrets from the prompt path and adding cost and rate limits
- Integrating guardrails and automated red-team tests
- Final deliverable: a hardened application along with 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 the command line.
- No machine learning background is required; this is an application security course for developers working with LLMs, not a course on training models.
Target Audience
- Software and backend engineers implementing LLM features.
- Full-stack and API developers.
- AI and ML application engineers.
- Platform engineers developing copilots and agents.
- Tech leads and senior engineers responsible for AI features.
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