Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Vulnerabilities

  • LLM, RAG, and agent architectures from a developer’s perspective
  • The request and response lifecycle of AI features
  • Prompt flow: system, developer, user, and tool messages
  • Points where untrusted data enters and re-enters the model
  • Trust boundaries that are developer-owned versus inherited
  • The semantic nature of AI attacks, as opposed to syntactic ones
  • Mapping the OWASP LLM Top 10 to practical code implementation

Module 2: Prompt Injection for Developers

  • Differences between direct and indirect prompt injection
  • Hidden instructions embedded in documents, web pages, and tool outputs
  • Jailbreak techniques and role confusion
  • The importance of separating instructions from data
  • Defensive prompt design: using delimiters, structure, and minimal authority
  • Why prevention is only partial, and the need to design for containment
  • Lab 01: Attack your own chatbot, bypass naive filters, and restructure prompts

Module 3: Handling Model Output as Untrusted Data

  • Viewing 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 raw model output
  • Using structured outputs and schema validation
  • Output encoding and the use of allowlists
  • Safe rendering practices 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
  • Sanitization during ingestion
  • Document provenance and trust scoring
  • Retrieval scoping and metadata isolation
  • Hidden instructions within retrieved content
  • Data exfiltration via retrieval processes
  • Lab 03: Poison a RAG pipeline and then implement defenses

Module 5: Agent and Tool Safety

  • Issues of 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
  • Using scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Restrict an over-permissioned agent

Module 6: Secrets, Identity, and Cost Management

  • API key and secret management: ensuring they are never in prompts, code, or logs
  • Per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Denial of wallet: preventing unbounded token and cost consumption
  • Implementing 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 detection, PII filtering, and topic classification
  • Output guardrails: validation, filtering, and grounding checks
  • Deciding when to use guardrails versus custom deterministic checks
  • Layering guardrails with controls from previous modules
  • Considerations for performance, false positives, and failure modes
  • Lab 06: Integrate input and output guardrail layers and measure their impact

Module 8: Red-Teaming Your Own Application

  • Creating abuse and test suites for AI features
  • Automated prompt injection and jailbreak testing
  • Regression testing for guardrails and policies
  • Incorporating AI security checks into continuous integration
  • Model and dependency supply chain: ensuring provenance and pinning
  • 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 rather than a simple secure/insecure verdict
  • 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 performance metrics
  • Scoring exercise applied to the capstone application

Capstone: Hardening an AI Application

  • Starter app characteristics: injectable prompts, insecure output handling, unscoped RAG
  • Starter app characteristics: over-permissioned agents, secrets in the prompt path, lack of cost limits
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, applying least privilege, and adding approval gates
  • Removing secrets and implementing cost and rate limits
  • Adding guardrails and automated red-team tests
  • Deliverable: A hardened application accompanied by an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Knowledge of a scripting language, with labs provided in Python.
  • Familiarity with basic application authentication, git, and command-line operations.
  • No machine learning background is required; this course is focused on application security for those building with LLMs, rather than training them.

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.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories