Get in Touch
 Duration 21 hours

Course Outline

Module 1: How AI Apps Break

  • LLM, RAG, and agent architectures from a developer’s perspective
  • The request and response lifecycle of AI features
  • Prompt flow: system, developer, user, and tool messages
  • Points where untrusted data enters and re-enters the model
  • Trust boundaries owned versus inherited by developers
  • Why AI attacks are semantic rather than syntactic
  • Mapping the OWASP LLM Top 10 to developer code

Module 2: Prompt Injection for Builders

  • Direct versus indirect prompt injection
  • Hidden instructions in documents, web pages, and tool outputs
  • Jailbreaks and role confusion techniques
  • The importance of separating instructions from data
  • Defensive prompt design: delimiters, structure, and minimal authority
  • Why prevention is partial and the necessity of 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 rest of the application
  • Insecure output handling: XSS, SSRF, and downstream command or SQL injection
  • Avoiding eval, exec, or raw rendering of model output
  • Structured outputs and schema validation
  • Output encoding and allowlists
  • Safe rendering in web and UI contexts
  • Lab 02: Identify and fix an insecure-output-handling bug

Module 4: RAG Security

  • Vector database and retrieval threats
  • Ingestion sanitization practices
  • Document provenance and trust scoring
  • Retrieval scoping and metadata isolation
  • Hidden instructions within retrieved content
  • Data exfiltration through retrieval
  • Lab 03: Poison a RAG pipeline, then implement defenses

Module 5: Agent and Tool Safety

  • Excessive agency and tool abuse
  • Applying least privilege to agents
  • Tool allowlists and argument validation
  • Approval gates and human-in-the-loop mechanisms
  • Sandboxing tool execution
  • Scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Secure an over-permissioned agent

Module 6: Secrets, Identity, and Cost

  • API key and secret management: keeping them out of prompts, code, and logs
  • Per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Denial of wallet: unbounded token and cost consumption
  • Rate limits, token budgets, and timeouts
  • Logging without leaking secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement cost limits

Module 7: Guardrail Libraries

  • Capabilities and limitations of guardrail frameworks
  • Input guardrails: injection, PII, and topic classifiers
  • Output guardrails: validation, filtering, and grounding checks
  • Determining when to use guardrails versus custom deterministic checks
  • Layering guardrails with controls from earlier modules
  • Performance considerations, false positives, and failure modes
  • Lab 06: Implement input and output guardrail layers and measure their impact

Module 8: Red-Teaming Your Own App

  • Building abuse and test suites for AI features
  • Automated prompt injection and jailbreak tests
  • Regression testing guardrails and policies
  • Integrating AI security checks into continuous integration
  • Model and dependency supply chain: provenance and pinning
  • Pre-release security checklists for AI features
  • Lab 07: Create automated red-team tests and integrate them into CI

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

  • The AI Security Hexagon: six critical questions instead of a binary 'is it secure' approach
  • Six scored categories: data, prompt, agent, supply chain, detection, and governance
  • 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
  • Scoring exercise applied to the capstone application

Capstone: Harden 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
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, then applying least privilege and approval gates
  • Moving secrets out of the prompt path and adding cost and rate limits
  • Adding guardrails and automated red-team tests
  • Deliverable: a hardened app and an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Familiarity with a scripting language, with labs conducted in Python.
  • Basic understanding of application authentication, git, and command line operations.
  • No machine learning background is required; this course focuses on application security for developers building with LLMs, not on training models.

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 features.

Number of participants


Price per participant

Testimonials (3)

Provisional Upcoming Courses (Require 5+ participants)

Related Categories