Course Outline
Module 1: How AI Applications Fail
- Developer perspectives on LLM, RAG, and agent architectures
- The request and response lifecycle within AI features
- Prompt flows: system, developer, user, and tool messages
- Identifying where untrusted data enters and re-enters the model
- Distinguishing trust boundaries owned by the developer versus those inherited
- Understanding why AI attacks are semantic rather than syntactic
- Aligning the OWASP LLM Top 10 with practical code implementations
Module 2: Prompt Injection for Builders
- Differences between direct and indirect prompt injection
- Hidden instructions embedded in documents, web pages, and tool outputs
- Exploring jailbreaks and role confusion techniques
- The critical importance of separating instructions from data
- Defensive prompt design: using delimiters, structure, and minimal authority
- Accepting that prevention is partial and designing for containment
- Lab 01: Test your own chatbot, bypass naive filters, and restructure prompts
Module 3: Treating Model Output as Untrusted
- Viewing model output as untrusted input for the broader application
- Insecure output handling risks: XSS, SSRF, and downstream command or SQL injection
- Avoiding eval, exec, or raw rendering of model output
- Utilizing structured outputs and schema validation
- Applying output encoding and allowlists
- Ensuring safe rendering in web and UI contexts
- Lab 02: Identify and resolve an insecure output-handling vulnerability
Module 4: RAG Security
- Threats to vector databases and retrieval mechanisms
- Sanitizing data during ingestion
- Managing document provenance and trust scores
- Scoping retrieval and isolating metadata
- Detecting hidden instructions in retrieved content
- Preventing data exfiltration through retrieval
- 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
- Implementing tool allowlists and argument validation
- Using approval gates and human-in-the-loop mechanisms
- Sandboxing tool execution
- Managing scoped, short-lived credentials and limiting autonomous loops
- Lab 04: Restrict an over-permissioned agent
Module 6: Secrets, Identity, and Cost
- API key and secret management: avoiding exposure in prompts, code, or logs
- Implementing per-user authentication and authorization for AI features
- Propagating user identity to tools and retrieval systems
- Addressing denial of wallet: unbounded token and cost consumption
- Enforcing 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 Libraries
- Understanding the capabilities and limitations of guardrail frameworks
- Input guardrails: detecting injection, PII, and off-topic content
- Output guardrails: validation, filtering, and grounding checks
- Deciding when to use guardrails versus custom deterministic checks
- Combining guardrails with controls from previous modules
- Managing performance, false positives, and failure modes
- Lab 06: Integrate input and output guardrails and measure their impact
Module 8: Red-Teaming Your Own App
- Creating abuse and test suites for AI features
- Automating prompt injection and jailbreak tests
- Regression testing guardrails and policies
- Incorporating AI security checks into continuous integration
- Model and dependency supply chain: ensuring provenance and pinning
- Establishing a pre-release 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: shifting focus from binary security to six key questions
- The six scored categories: data, prompt, agent, supply chain, detection, governance
- The 100-point rubric and its weightings
- Verdict bands and the single-category override rule
- Using scoring before and after hardening as a metric
- Scoring exercise applied to the capstone application
Capstone: Harden an AI Application
- Starter app profile: injectable prompts, insecure output handling, unscoped RAG
- Starter app profile: over-permissioned agent, secrets in the prompt path, no cost limits
- Restructuring prompts for containment and validating model output
- Sanitizing and scoping retrieval, then applying least privilege and approval gates
- Moving secrets out of the path and adding cost and rate limits
- Integrating guardrails and automated red-team tests
- 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, with labs conducted in Python.
- Understanding of basic application authentication, git, and command-line operations.
- No machine learning background is necessary; this course targets application security for developers utilizing LLMs, not model training.
Target Audience
- Software and backend engineers developing LLM features.
- Full-stack and API developers.
- AI and ML application engineers.
- Platform engineers deploying 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