Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Vulnerabilities

  • Developer-centric views on LLM, RAG, and agent architectures
  • The complete request and response lifecycle within AI features
  • Understanding prompt flows: system, developer, user, and tool messages
  • Identifying entry points where untrusted data enters and re-enters the model
  • Distinguishing between trust boundaries owned by the developer versus those inherited
  • The semantic nature of AI attacks compared to syntactic vulnerabilities
  • Aligning the OWASP LLM Top 10 with practical coding practices

Module 2: Prompt Injection Strategies for Builders

  • Differentiating between direct and indirect prompt injection techniques
  • Identifying hidden instructions within documents, web pages, and tool outputs
  • Understanding jailbreak attempts and role confusion exploits
  • The critical importance of separating instructions from data
  • Implementing defensive prompt design using delimiters, structure, and minimal authority
  • Acknowledging the limits of prevention and designing for containment
  • Lab 01: Test your own chatbot, bypass a basic filter, and refine prompt structure

Module 3: Managing Untrusted Model Output

  • Viewing model output as untrusted input for downstream applications
  • Addressing insecure output handling, including XSS, SSRF, and injection risks
  • Avoiding the use of eval, exec, or direct rendering of raw model outputs
  • Utilizing structured outputs and implementing schema validation
  • Applying output encoding and strict allowlists
  • Ensuring safe rendering in web and user interface contexts
  • Lab 02: Identify and remediate an insecure output handling vulnerability

Module 4: Securing RAG Pipelines

  • Analyzing threats to vector databases and retrieval processes
  • Implementing data sanitization during ingestion
  • Establishing document provenance and trust scoring mechanisms
  • Defining retrieval scopes and isolating metadata
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration through retrieval attacks
  • Lab 03: Simulate a RAG pipeline poisoning attack and implement defenses

Module 5: Ensuring Agent and Tool Safety

  • Addressing excessive agency and potential tool abuse
  • Applying least privilege principles to AI agents
  • Using tool allowlists and rigorous argument validation
  • Implementing approval gates and human-in-the-loop controls
  • Sandboxing the execution of tools
  • Using scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Restrict the permissions of an over-privileged agent

Module 6: Managing Secrets, Identity, and Costs

  • Secure API key and secret management: avoiding inclusion in prompts, code, or logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Countering 'denial of wallet' attacks involving unbounded token and cost consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging activities while protecting secrets and PII
  • Lab 05: Remove secrets from the prompt path and implement cost constraints

Module 7: Utilizing Guardrail Libraries

  • Understanding the capabilities and limitations of guardrail frameworks
  • Input guardrails: detecting injection, PII, and managing topics
  • Output guardrails: validation, filtering, and grounding checks
  • Determining when to use guardrails versus custom deterministic checks
  • Integrating guardrails with controls established in previous modules
  • Balancing performance, false positives, and potential failure modes
  • Lab 06: Implement input and output guardrail layers and assess their performance

Module 8: Red-Teaming Your Own Application

  • Creating comprehensive abuse and test suites for AI features
  • Running automated tests for prompt injection and jailbreak scenarios
  • Performing regression testing on guardrails and security policies
  • Integrating AI security checks into continuous integration pipelines
  • Monitoring model and dependency supply chains for provenance and version pinning
  • Utilizing a pre-deployment security checklist for AI features
  • Lab 07: Develop automated red-team tests and integrate them into CI workflows

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

  • The AI Security Hexagon: focusing on six key questions rather than a simple 'is it secure' check
  • The six scored categories: data, prompt, agent, supply chain, detection, and governance
  • The 100-point scoring rubric and its weighting system
  • Understanding 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

  • Starter app vulnerabilities: injectable prompts, insecure output handling, and unscoped RAG
  • Starter app vulnerabilities: over-permissioned agents, secrets in the prompt path, and lack of cost limits
  • Refactoring prompts for containment and implementing model output validation
  • Sanitizing and scoping retrieval, while applying least privilege and approval gates
  • Removing secrets from the prompt path and enforcing cost and rate limits
  • Integrating guardrails and automated red-team testing
  • Final Deliverable: A secured application accompanied by an OWASP LLM Top 10 self-assessment report

Requirements

  • Proficiency in building and utilizing REST APIs.
  • Familiarity with at least one scripting language, with all laboratory work conducted in Python.
  • Basic knowledge of application authentication, Git version control, and command-line operations.
  • No prior machine learning expertise is necessary; this course focuses on application security for those developing with LLMs, rather than training models.

Target Audience

  • Software and backend engineers developing LLM-integrated features.
  • Full-stack and API-focused developers.
  • Engineers specializing in AI and machine learning applications.
  • Platform engineers deploying AI copilots and autonomous agents.
  • Tech leads and senior engineers responsible for overseeing AI feature development.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories