Course Outline
Module 1: Failure Modes in AI Applications
- LLM, RAG, and agent architectures from a developer's perspective
- The request and response lifecycle of an AI feature
- Prompt flow: system, developer, user, and tool messages
- Entry and re-entry points of untrusted data into the model
- Distinguishing between trust boundaries a developer owns and those inherited
- The semantic, rather than syntactic, nature of AI attacks
- Aligning the OWASP LLM Top 10 with the code you write
Module 2: Prompt Injection for Developers
- Direct versus indirect prompt injection
- Hidden instructions in documents, web pages, and tool outputs
- Jailbreaks and role confusion
- The importance of separating instructions from data
- Defensive prompt design: delimiters, structure, and minimal authority
- The limitations of prevention and the need for containment strategies
- Lab 01: Attack your own chatbot, bypass a naïve filter, and restructure the prompt
Module 3: Handling Model Output as Untrusted
- Treating model output as untrusted input for the rest of the application
- Insecure output handling: XSS, SSRF, and downstream command or SQL injection
- Prohibiting the use of eval, exec, or rendering of raw model output
- Structured outputs and schema validation
- Output encoding and the use of allowlists
- Safe rendering in web and UI contexts
- Lab 02: Identify and remediate an insecure output handling bug
Module 4: RAG Security
- Threats associated with vector databases and retrieval
- Ingestion sanitization
- Document provenance and trust scoring
- Retrieval scoping and metadata isolation
- Hidden instructions within retrieved content
- Data exfiltration via retrieval
- Lab 03: Poison a RAG pipeline and then implement defenses
Module 5: Agent and Tool Safety
- Excessive agency and tool abuse
- Applying least privilege to agents
- Tool allowlists and argument validation
- Approval gates and human-in-the-loop mechanisms
- Sandboxing tool execution
- Scoped, short-lived credentials and restrictions on autonomous loops
- Lab 04: Secure an over-permissioned agent
Module 6: Secrets, Identity, and Cost Management
- API key and secret management: exclusion from prompts, code, and logs
- Per-user authentication and authorization for AI features
- Propagating user identity to tools and retrieval systems
- Denial of wallet: unbounded token and cost consumption
- 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
- The capabilities and limitations of guardrail frameworks
- Input guardrails: injection, PII, and topic classifiers
- Output guardrails: validation, filtering, and grounding checks
- Determining when to use guardrails versus custom deterministic checks
- Integrating guardrails with controls from earlier modules
- Performance considerations, false positives, and failure modes
- Lab 06: Implement input and output guardrail layers and evaluate their performance
Module 8: Red-Teaming Your Own App
- Developing an abuse and test suite for AI features
- Automated prompt injection and jailbreak testing
- Regression testing of guardrails and policies
- Incorporating AI security checks into continuous integration
- Model and dependency supply chain: provenance and version pinning
- A pre-release security checklist for AI features
- Lab 07: Create automated red-team tests and integrate them into CI
Module 9: AI Security Scoring: The SAIS-100 Framework
- The AI Security Hexagon: six core questions instead of a binary security verdict
- The six scored categories: data, prompt, agent, supply chain, detection, and 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: Hardening an AI Application
- The starter app: vulnerable to prompt injection, insecure output handling, and unscoped RAG
- The starter app: features an over-permissioned agent, secrets in the prompt path, and lacks 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
- Incorporating guardrails and automated red-team tests
- Deliverable: A hardened app accompanied by an OWASP LLM Top 10 self-assessment
Requirements
- Proficiency in building and consuming REST APIs.
- Knowledge of a scripting language, with labs conducted in Python.
- Familiarity with basic application authentication, git, and command line operations.
- No prior machine learning background is required; this is an application security course for those building with LLMs, not for training them.
Audience
- Software and backend engineers developing LLM features.
- Full-stack and API developers.
- AI and ML application engineers.
- Platform engineers shipping copilots and agents.
- Tech leads and senior engineers accountable 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