Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Vulnerabilities

  • Examining LLM, RAG, and agent architectures from a developer’s perspective
  • Tracing the lifecycle of requests and responses within AI features
  • Analyzing prompt flows involving system, developer, user, and tool messages
  • Identifying entry and re-entry points for untrusted data into the model
  • Distinguishing trust boundaries controlled by the developer versus those inherited
  • Understanding the semantic nature of AI attacks rather than purely syntactic
  • Correlating the OWASP LLM Top 10 with practical code implementations

Module 2: Addressing Prompt Injection for Developers

  • Differentiating between direct and indirect prompt injection techniques
  • Detecting hidden instructions in documents, web content, and tool responses
  • Mitigating jailbreak attempts and role confusion scenarios
  • Emphasizing the importance of separating instructions from data
  • Implementing defensive prompt design through delimiters, structure, and minimal authority
  • Designing for containment when complete prevention is not feasible
  • Lab 01: Testing a chatbot, bypassing basic filters, and restructuring prompts

Module 3: Managing Untrusted Model Outputs

  • Treating model outputs as untrusted inputs for the broader application
  • Addressing insecure output handling related to XSS, SSRF, and downstream injections
  • Avoiding the direct evaluation, execution, or rendering of raw model output
  • Utilizing structured outputs and schema validation
  • Applying output encoding and allowlist strategies
  • Ensuring safe rendering in web and UI environments
  • Lab 02: Identifying and remediating bugs in output handling

Module 4: Securing RAG Pipelines

  • Assessing threats in vector databases and retrieval processes
  • Implementing sanitization during data ingestion
  • Establishing document provenance and trust scoring mechanisms
  • Applying retrieval scoping and metadata isolation
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration via retrieval channels
  • Lab 03: Introducing vulnerabilities to a RAG pipeline and subsequently securing it

Module 5: Ensuring Agent and Tool Safety

  • Controlling excessive agency and preventing tool misuse
  • Applying least privilege principles to agents
  • Implementing tool allowlists and validating arguments
  • Introducing approval gates and human-in-the-loop checks
  • Sandboxing the execution of tools
  • Using scoped, short-lived credentials and restricting autonomous loops
  • Lab 04: Restricting the permissions of an overly privileged agent

Module 6: Managing Secrets, Identity, and Costs

  • Securing API keys and secrets by excluding them from prompts, code, and logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Mitigating 'denial of wallet' attacks through unbounded token and cost usage
  • Enforcing rate limits, token budgets, and timeout policies
  • Logging activities without exposing secrets or PII
  • Lab 05: Removing secrets from the prompt path and implementing cost controls

Module 7: Utilizing Guardrail Frameworks

  • Understanding the capabilities and limitations of guardrail libraries
  • Configuring input guardrails for injection, PII, and topic classification
  • Setting up output guardrails for validation, filtering, and grounding checks
  • Determining when to use guardrails versus custom deterministic checks
  • Layering guardrails alongside controls from previous modules
  • Managing performance, false positives, and failure modes
  • Lab 06: Integrating input and output guardrails and assessing their impact

Module 8: Red-Teaming Internal Applications

  • Developing comprehensive abuse and test suites for AI features
  • Automating prompt injection and jailbreak testing
  • Performing regression testing on guardrails and policies
  • Incorporating AI security checks into continuous integration pipelines
  • Addressing model and dependency supply chain issues through provenance and pinning
  • Creating a pre-deployment security checklist for AI features
  • Lab 07: Writing automated red-team tests and integrating them into CI

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

  • Using the AI Security Hexagon to assess security through six key questions
  • Reviewing the six scored categories: data, prompt, agent, supply chain, detection, and governance
  • Applying the 100-point rubric and its associated weightings
  • Interpreting verdict bands and the single-category override rule
  • Tracking improvements in security scores before and after hardening
  • Conducting a scoring exercise on the capstone application

Capstone: Fortifying an AI Application

  • Reviewing the starter app’s vulnerabilities: injectable prompts, insecure output handling, and unscoped RAG
  • Addressing starter app issues: over-privileged agents, secrets in the prompt path, and lack of cost limits
  • Refactoring prompts for containment and validating model outputs
  • Sanitizing and scoping retrieval while applying least privilege and approval gates
  • Relocating secrets and introducing cost and rate limiting
  • Implementing guardrails and automated red-team testing
  • Deliverables: A hardened application and an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in developing and utilizing REST APIs.
  • Knowledge of a scripting language, with all labs conducted in Python.
  • Familiarity with basic application authentication, Git, and command-line operations.
  • No prior machine learning experience is necessary; this is an application security course for developers building with LLMs, not a course on training models.

Target Audience

  • Software and backend engineers working on LLM integrations.
  • Full-stack and API-focused developers.
  • AI and ML application engineers.
  • Platform engineers responsible for releasing copilots and agents.
  • Tech leads and senior engineers with ownership of AI product features.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories