Get in Touch
 Duration 21 hours

Course Outline

Module 1: How AI Apps Break

  • Developer-side perspectives on LLM, RAG, and agent architectures
  • The request and response lifecycle of AI features
  • Prompt flow: understanding system, developer, user, and tool messages
  • Identifying where untrusted data enters and re-enters the model
  • Distinguishing between trust boundaries owned by the developer and those inherited
  • Understanding why AI attacks are semantic rather than syntactic
  • Mapping the OWASP LLM Top 10 to the code you write

Module 2: Prompt Injection for Builders

  • Direct versus indirect prompt injection techniques
  • Hidden instructions embedded in documents, web pages, and tool outputs
  • Jailbreaks and role confusion scenarios
  • The critical importance of separating instructions from data
  • Defensive prompt design: using delimiters, structure, and minimal authority
  • Why prevention is partial and the need to design for containment
  • Lab 01: Attacking your own chatbot, bypassing naive filters, and restructuring prompts

Module 3: Treating Model Output as Untrusted

  • Viewing model output as untrusted input for the rest of the application
  • Insecure output handling: addressing XSS, SSRF, and downstream command or SQL injection
  • Avoiding direct evaluation, execution, or rendering of raw model output
  • Using structured outputs and schema validation
  • Implementing output encoding and allowlists
  • Safe rendering practices in web and UI contexts
  • Lab 02: Identifying and fixing an insecure output handling bug

Module 4: RAG Security

  • Threats associated with vector databases and retrieval
  • Sanitization processes during ingestion
  • Managing document provenance and trust scoring
  • Retrieval scoping and metadata isolation techniques
  • Handling hidden instructions within retrieved content
  • Preventing data exfiltration through retrieval channels
  • Lab 03: Poisoning a RAG pipeline and subsequently defending against it

Module 5: Agent and Tool Safety

  • Addressing 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 environments
  • Managing scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Locking down an over-permissioned agent

Module 6: Secrets, Identity, and Cost

  • API key and secret management: ensuring they never appear in prompts, code, or logs
  • Per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Mitigating 'Denial of Wallet': preventing unbounded token and cost consumption
  • Implementing rate limits, token budgets, and timeouts
  • Logging practices that prevent leakage of secrets or PII
  • Lab 05: Removing secrets from the prompt path and adding cost limits

Module 7: Guardrail Libraries

  • Understanding the capabilities and limitations of guardrail frameworks
  • Input guardrails: detection of 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 earlier modules
  • Evaluating performance, false positives, and failure modes
  • Lab 06: Adding input and output guardrail layers and measuring their impact

Module 8: Red-Teaming Your Own App

  • Building comprehensive abuse and test suites for AI features
  • Automating prompt injection and jailbreak tests
  • Regression testing guardrails and security policies
  • Integrating AI security checks into continuous integration pipelines
  • Managing model and dependency supply chains: provenance and pinning
  • Using a pre-ship security checklist for AI features
  • Lab 07: Writing automated red-team tests and integrating them into CI

Module 9: Scoring AI Security, the SAIS-100 Framework

  • The AI Security Hexagon: six key questions instead of a simple 'is it secure' query
  • The six scored categories: data, prompt, agent, supply chain, detection, and governance
  • The 100-point rubric and its specific weightings
  • Verdict bands and the single-category override rule
  • Using scoring before and after hardening as a performance metric
  • Scoring exercises applied to the capstone application

Capstone: Harden an AI Application

  • The starter app features: injectable prompts, insecure output handling, and unscoped RAG
  • The starter app features: over-permissioned agents, secrets in the prompt path, and no cost limits
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, then applying least privilege and approval gates
  • Removing secrets from sensitive paths and adding cost and rate limits
  • Integrating guardrails and automated red-team tests
  • Final deliverable: a hardened application plus an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Familiarity with a scripting language, with labs specifically delivered in Python.
  • Basic understanding of application authentication, git, and command-line usage.
  • No prior machine learning background is required; this is an application security course for developers building with LLMs, not a course on 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.

Testimonials (3)

Related Categories