Get in Touch
 Duration 21 hours

Course Outline

Module 1: How AI Apps Break

  • 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
  • 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
  • Mapping the OWASP LLM Top 10 to practical code implementation

Module 2: Prompt Injection for Builders

  • Direct versus indirect prompt injection techniques
  • Hidden instructions embedded in documents, web pages, and tool output
  • Jailbreak methods and role confusion vulnerabilities
  • The importance of separating instructions from data
  • Defensive prompt design using delimiters, structure, and minimal authority
  • Recognizing the limits of prevention and designing for containment
  • Lab 01: Attack your own chatbot, bypass a naïve filter, and restructure the prompt

Module 3: Treating Model Output as Untrusted

  • Viewing model output as untrusted input for the broader application
  • Insecure output handling: XSS, SSRF, and downstream command or SQL injection
  • Avoiding direct evaluation, execution, or rendering of raw 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 remediate an insecure-output-handling bug

Module 4: RAG Security

  • Threats to vector databases and retrieval mechanisms
  • Sanitization practices during data ingestion
  • Managing document provenance and trust scoring
  • Scoping retrieval and isolating metadata
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration via retrieval processes
  • Lab 03: Poison a RAG pipeline, then implement defenses

Module 5: Agent and Tool Safety

  • Addressing excessive agency and tool abuse
  • Applying least privilege principles to agents
  • Using tool allowlists and argument validation
  • Implementing approval gates and human-in-the-loop checks
  • 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

  • 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
  • Mitigating 'Denial of Wallet' through bounded token and cost consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging securely 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: injection detection, PII filtering, and topic classification
  • Output guardrails: validation, filtering, and grounding checks
  • Deciding when to use guardrails versus custom deterministic checks
  • Integrating guardrails with controls from previous modules
  • Managing performance, false positives, and failure modes
  • Lab 06: Implement input and output guardrail layers and measure their impact

Module 8: Red-Teaming Your Own App

  • Constructing abuse and test suites for AI features
  • Automating prompt injection and jailbreak tests
  • Regression testing guardrails and security policies
  • Incorporating AI security checks into continuous integration
  • Managing model and dependency supply chains: provenance and pinning
  • Using 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, the SAIS-100 Framework

  • The AI Security Hexagon: six questions to replace 'is it secure?'
  • 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 pre- and post-hardening scores as a metric
  • Conducting a scoring exercise on the capstone application

Capstone: Harden an AI Application

  • The starter app: features an injectable prompt, insecure output handling, and unscoped RAG
  • The starter app: includes an over-permissioned agent, 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
  • Implementing guardrails and automated red-team tests
  • Deliverable: A hardened application plus an OWASP LLM Top 10 self-assessment

Requirements

  • Familiarity with building and consuming REST APIs.
  • Proficiency in a scripting language, as labs are conducted in Python.
  • Basic understanding of application authentication, git, and command-line operations.
  • No machine learning background is necessary; this course focuses on application security for those building with LLMs, rather than training the models themselves.

Audience

  • Software and backend engineers developing LLM-based 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 feature integrity.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories