Course Outline
Module 1: Understanding AI Application Failures
- LLM, RAG, and agent architectures from a developer's perspective
- The complete lifecycle of requests and responses in AI features
- Prompt flow analysis: system, developer, user, and tool messages
- Identifying entry points for untrusted data and its re-introduction into models
- Distinguishing between 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 coding standards
Module 2: Prompt Injection for Developers
- Direct versus indirect prompt injection techniques
- Identifying hidden instructions within documents, web pages, and tool outputs
- Understanding jailbreaks and role confusion scenarios
- The critical importance of separating instructions from data
- Defensive prompt design strategies: delimiters, structure, and minimal authority
- Designing for containment given that full prevention is limited
- Lab 01: Attack a custom chatbot, bypass a basic filter, and restructure the prompt
Module 3: Handling Model Output as Untrusted Data
- Treating model output as untrusted input for the rest of the application
- Risks of insecure output handling: XSS, SSRF, and downstream command or SQL injection
- Avoiding the use of eval, exec, or raw rendering of 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 resolve an insecure output handling vulnerability
Module 4: RAG Security
- Threats to vector databases and retrieval systems
- Sanitization processes during data ingestion
- Establishing document provenance and trust scores
- Scoping retrieval and isolating metadata
- Detecting hidden instructions within retrieved content
- Preventing data exfiltration through retrieval mechanisms
- Lab 03: Poison a RAG pipeline and then implement defenses
Module 5: Agent and Tool Safety
- Mitigating excessive agency and tool abuse
- Implementing least privilege for agents
- Using tool allowlists and validating arguments
- Incorporating approval gates and human-in-the-loop processes
- Sandboxing tool execution environments
- Managing scoped, short-lived credentials and limiting autonomous loops
- Lab 04: Secure an over-permissioned agent
Module 6: Secrets, Identity, and Cost Management
- API key and secret management: ensuring they are not present 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' risks from unbounded token and cost consumption
- Enforcing rate limits, token budgets, and timeouts
- Logging practices that prevent the leakage of secrets or PII
- Lab 05: Remove secrets from the prompt path and implement cost limitations
Module 7: Guardrail Frameworks
- Understanding the capabilities and limitations of guardrail frameworks
- Input guardrails: detecting injection, PII, and topic classification
- Output guardrails: validation, filtering, and grounding checks
- Determining when to use guardrails versus custom deterministic checks
- Layering guardrails with controls from previous modules
- Addressing performance impacts, false positives, and failure modes
- Lab 06: Implement input and output guardrail layers and measure their effectiveness
Module 8: Red-Teaming Your Application
- Developing abuse and test suites for AI features
- Automating 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 pinning
- Creating a pre-release security checklist for AI features
- Lab 07: Write automated red-team tests and integrate them into CI
Module 9: Assessing AI Security with the SAIS-100 Framework
- The AI Security Hexagon: framing security as six questions rather than a binary state
- The six scored categories: data, prompt, agent, supply chain, detection, and governance
- Understanding the 100-point rubric and its weightings
- Interpreting verdict bands and the single-category override rule
- Using pre- and post-hardening scores as performance metrics
- Conducting a scoring exercise on the capstone application
Capstone: Hardening an AI Application
- Starter application vulnerabilities: injectable prompts, insecure output handling, and unscoped RAG
- Starter application vulnerabilities: over-permissioned agents, secrets in the prompt path, and lack of cost limits
- Restructuring prompts for containment and validating model outputs
- Sanitizing and scoping retrieval, while applying least privilege and approval gates
- Relocating secrets and implementing cost and rate limits
- Adding 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.
- Familiarity with a scripting language, as labs are conducted in Python.
- Basic knowledge of application authentication, Git, and command-line operations.
- No prior machine learning background is necessary; this course focuses on application security for developers integrating LLMs, rather than training the models themselves.
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