Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Vulnerabilities

  • Developer-centric views of LLM, RAG, and agent architectures
  • The complete request and response lifecycle of an AI feature
  • Prompt flow mechanics: system, developer, user, and tool messages
  • Identifying entry and re-entry points for untrusted data within the model
  • Distinguishing between trust boundaries owned by developers and those inherited
  • Why AI attacks are fundamentally semantic rather than syntactic
  • Mapping OWASP LLM Top 10 risks to specific code implementations

Module 2: Prompt Injection for Developers

  • Differentiating between direct and indirect prompt injection vectors
  • Recognizing hidden instructions embedded in documents, web content, or tool outputs
  • Addressing jailbreaks and role confusion scenarios
  • The critical importance of separating instructions from data
  • Defensive prompt design strategies: delimiters, structural integrity, and minimal authority
  • Acknowledging the limits of prevention and designing for effective containment
  • Lab 01: Attack your own chatbot, bypass basic filters, and restructure prompts for security

Module 3: Managing Model Output as Untrusted Data

  • Viewing model output as untrusted input for the broader application ecosystem
  • Mitigating insecure output handling risks such as XSS, SSRF, and downstream injection flaws
  • Avoiding direct execution of raw model output via eval, exec, or rendering
  • Implementing structured outputs and rigorous schema validation
  • Utilizing output encoding and strict allowlists for safety
  • Ensuring safe rendering practices in web and UI environments
  • Lab 02: Identify and remediate an insecure output handling vulnerability

Module 4: RAG Security

  • Threats associated with vector databases and retrieval mechanisms
  • Sanitizing data during the ingestion process
  • Tracking document provenance and applying trust scoring
  • Scoping retrieval operations and isolating metadata
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration through retrieval channels
  • Lab 03: Poison a RAG pipeline and then implement defensive controls

Module 5: Agent and Tool Safety

  • Mitigating excessive agency and tool abuse risks
  • Enforcing least privilege principles for autonomous agents
  • Implementing tool allowlists and rigorous argument validation
  • Establishing approval gates and human-in-the-loop oversight
  • Sandboxing tool execution environments
  • Using scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Secure an over-permissioned agent configuration

Module 6: Secrets, Identity, and Cost Management

  • Secure API key and secret management practices, excluding them from prompts, code, and logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity through tools and retrieval systems
  • Preventing 'denial of wallet' via unbounded token or cost consumption
  • Applying rate limits, token budgets, and timeout controls
  • Logging practices that avoid leaking secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement cost constraints

Module 7: Guardrail Frameworks

  • Understanding the capabilities and limitations of guardrail frameworks
  • Input guardrails: detecting injection, PII, and topic violations
  • Output guardrails: performing validation, filtering, and grounding checks
  • Determining when to use guardrails versus custom deterministic checks
  • Integrating guardrails with controls established in earlier modules
  • Balancing performance, minimizing false positives, and handling failure modes
  • Lab 06: Implement input and output guardrail layers and measure their efficacy

Module 8: Red-Teaming Your Own Application

  • Constructing comprehensive abuse and test suites for AI features
  • Automating prompt injection and jailbreak testing
  • Performing regression testing on guardrails and security policies
  • Integrating AI security checks into continuous integration pipelines
  • Managing model and dependency supply chain risks through provenance and pinning
  • Utilizing a pre-ship security checklist for AI features
  • Lab 07: Create automated red-team tests and integrate them into CI workflows

Module 9: Assessing AI Security with the SAIS-100 Framework

  • The AI Security Hexagon: addressing six core questions beyond simple security assurance
  • Six scored categories: data, prompt, agent, supply chain, detection, and governance
  • Understanding the 100-point rubric and its associated 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

  • Reviewing the starter app: vulnerable prompts, insecure output handling, and unscoped RAG
  • Addressing agent over-permissions, secrets in the prompt path, and lack of cost limits in the starter app
  • 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 limit controls
  • Integrating guardrails and automated red-team testing capabilities
  • 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 understanding of application authentication, git workflows, and command-line operations.
  • No prior machine learning experience is necessary; this course focuses on application security for developers building with LLMs, rather than model training.

Target Audience

  • Software and backend engineers integrating LLM capabilities.
  • Full-stack and API developers.
  • AI and ML application engineers.
  • Platform engineers deploying copilots and autonomous agents.
  • Tech leads and senior engineers responsible for AI feature delivery.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories