Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Vulnerabilities

  • Developer-centric views of LLM, RAG, and agent architectures
  • The request-response lifecycle specific to AI features
  • Understanding prompt flow: system, developer, user, and tool messages
  • Identifying entry points for untrusted data and its re-entry into models
  • Distinguishing trust boundaries owned by developers versus those inherited
  • The semantic nature of AI attacks compared to syntactic vulnerabilities
  • Aligning the OWASP LLM Top 10 with actual code implementation

Module 2: Prompt Injection for Developers

  • Differentiating between direct and indirect prompt injection
  • Detecting hidden instructions in documents, web pages, and tool outputs
  • Analyzing jailbreaks and role confusion tactics
  • The critical importance of separating instructions from data
  • Defensive prompt design techniques: delimiters, structure, and minimal authority
  • Designing for containment rather than absolute prevention
  • Lab 01: Attack a custom chatbot, bypass basic filters, and restructure prompts

Module 3: Handling Model Output as Untrusted Input

  • Treating model output as untrusted input for downstream application components
  • Addressing insecure output handling: XSS, SSRF, and injection risks
  • Avoiding direct execution or rendering of raw model output
  • Utilizing structured outputs and schema validation
  • Implementing output encoding and allowlist strategies
  • Ensuring safe rendering in web and UI contexts
  • Lab 02: Identify and remediate an insecure-output-handling vulnerability

Module 4: RAG Security

  • Threats associated with vector databases and retrieval systems
  • Sanitizing data during the ingestion process
  • Establishing document provenance and trust scoring
  • Scoping retrieval operations and isolating metadata
  • Identifying hidden instructions within retrieved content
  • Preventing data exfiltration via retrieval mechanisms
  • Lab 03: Simulate a RAG pipeline poisoning attack and implement defenses

Module 5: Agent and Tool Safety

  • Mitigating excessive agency and tool abuse
  • Applying least privilege principles to AI agents
  • Configuring tool allowlists and validating arguments
  • Implementing approval gates and human-in-the-loop processes
  • Sandboxing tool execution environments
  • Using scoped, short-lived credentials to limit autonomous loops
  • Lab 04: Restrict permissions for an over-privileged agent

Module 6: Secrets, Identity, and Cost Management

  • Secure management of API keys and secrets: keeping them out of prompts, code, and logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Preventing 'denial of wallet' attacks through unbounded token consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging operations without exposing secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement cost controls

Module 7: Guardrail Libraries

  • Understanding the capabilities and limitations of guardrail frameworks
  • Input guardrails: detecting injection, PII, and topic violations
  • Output guardrails: validation, filtering, and grounding checks
  • Deciding when to use guardrails versus custom deterministic checks
  • Layering guardrails with controls from previous modules
  • Managing performance, false positives, and failure modes
  • Lab 06: Implement and measure an input and output guardrail layer

Module 8: Red-Teaming Your Own Application

  • Constructing abuse and test suites for AI features
  • Automating prompt injection and jailbreak tests
  • Regression testing guardrails and security policies
  • Integrating AI security checks into CI/CD pipelines
  • Securing the model and dependency supply chain via provenance and pinning
  • Utilizing a pre-deployment security checklist for AI features
  • Lab 07: Develop automated red-team tests and integrate them into CI

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

  • The AI Security Hexagon: six key questions beyond 'is it secure'
  • Six scored categories: data, prompt, agent, supply chain, detection, governance
  • Understanding the 100-point rubric and its weighting system
  • Verdict bands and single-category override rules
  • Using pre- and post-hardening scores as progress metrics
  • Conducting scoring exercises on the capstone application

Capstone: Hardening an AI Application

  • Starter app overview: injectable prompts, insecure output handling, unscoped RAG
  • Starter app overview: over-permissioned agent, secrets in prompt path, lack of cost limits
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, then applying least privilege and approval gates
  • Removing secrets from critical paths and implementing cost/rate limits
  • Adding guardrails and automated red-team tests
  • Final Deliverable: A hardened application with 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 knowledge of application authentication, git, and command-line operations.
  • No machine learning background is necessary; this course focuses on application security for professionals building with LLMs, not training models.

Target Audience

  • Software and backend engineers developing LLM-based features.
  • Full-stack and API developers.
  • AI and ML application engineers.
  • Platform engineers responsible for deploying copilots and agents.
  • Tech leads and senior engineers overseeing AI feature development.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories