Get in Touch
 Duration 21 hours

Course Outline

Module 1: How AI Applications Fail

  • LLM, RAG, and agent architectures from a developer’s perspective
  • The lifecycle of requests and responses in AI features
  • Prompt flow: system, developer, user, and tool messages
  • Identifying entry and re-entry points for untrusted data in the model
  • Distinguishing between 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 specific code implementations

Module 2: Prompt Injection for Builders

  • Direct versus indirect prompt injection techniques
  • Hidden instructions embedded in documents, web pages, and tool outputs
  • Jailbreaks and role confusion scenarios
  • 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 naive 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 risks
  • Avoiding eval, exec, or rendering of raw model output
  • Utilizing structured outputs and schema validation
  • Applying output encoding and allowlists
  • Safe rendering practices 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 systems
  • Sanitization processes during ingestion
  • Document provenance and trust scoring
  • Retrieval scoping and metadata isolation
  • Detecting hidden instructions in retrieved content
  • Preventing data exfiltration through retrieval
  • Lab 03: Poison a RAG pipeline and subsequently defend against it

Module 5: Agent and Tool Safety

  • Mitigating excessive agency and tool abuse
  • Implementing least privilege for agents
  • Using tool allowlists and argument validation
  • Establishing approval gates and human-in-the-loop mechanisms
  • Sandboxing tool execution
  • Managing scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Restrict an over-permissioned agent

Module 6: Secrets, Identity, and Cost

  • API key and secret management: ensuring they never appear in prompts, code, or logs
  • Per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Preventing Denial of Wallet attacks: unbounded token and cost consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging practices that prevent secret and PII leakage
  • 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
  • Layering guardrails with controls from previous modules
  • Addressing performance, false positives, and failure modes
  • Lab 06: Implement input and output guardrail layers and measure their impact

Module 8: Red-Teaming Your Own Application

  • Creating an abuse and test suite for AI features
  • Automating prompt injection and jailbreak testing
  • Regression testing for guardrails and policies
  • Integrating AI security checks into continuous integration pipelines
  • 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 with the SAIS-100 Framework

  • The AI Security Hexagon: shifting from binary security questions to six key areas
  • The six scored categories: data, prompt, agent, supply chain, detection, and governance
  • Understanding the 100-point rubric and its weightings
  • Verdict bands and the single-category override rule
  • Using scoring before and after hardening as a performance metric
  • Conducting a scoring exercise on the capstone application

Capstone: Hardening an AI Application

  • Starter app overview: vulnerable prompts, insecure output handling, and unscoped RAG
  • Starter app overview: over-permissioned agents, secrets in the prompt path, and lack of cost limits
  • Restructuring prompts for containment and implementing model output validation
  • Sanitizing and scoping retrieval, then applying least privilege and approval gates
  • Removing secrets from critical paths and adding cost and rate limits
  • Integrating guardrails and automated red-team tests
  • Deliverable: A hardened application and an OWASP LLM Top 10 self-assessment report

Requirements

  • Proficiency in building and consuming REST APIs.
  • Knowledge of a scripting language, as labs are conducted in Python.
  • Familiarity with basic application authentication, git workflows, and command-line operations.
  • No machine learning background is required; this course focuses on application security for developers building with LLMs, rather than model training.

Audience

  • Software and backend engineers developing LLM 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