Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Failures

  • LLM, RAG, and agent architectures from a developer's perspective
  • The request and response lifecycle within AI features
  • Prompt flow dynamics: system, developer, user, and tool messages
  • Entry and re-entry points for untrusted data into the model
  • Distinguishing trust boundaries owned by the developer versus those inherited
  • The semantic nature of AI attacks versus syntactic issues
  • Aligning the OWASP LLM Top 10 with specific code implementations

Module 2: Prompt Injection for Builders

  • Differentiating direct from indirect prompt injection
  • Embedded malicious instructions in documents, web pages, and tool outputs
  • Jailbreak techniques and role confusion scenarios
  • The critical importance of separating instructions from data
  • Defensive prompt engineering: using delimiters, structure, and minimal authority
  • Accepting partial prevention and designing for effective containment
  • Lab 01: Compromise your own chatbot, evade a basic filter, and restructure the prompt

Module 3: Handling Model Output as Untrusted

  • Viewing model output as untrusted input for the broader application
  • Insecure output processing risks: XSS, SSRF, and downstream command or SQL injection
  • Prohibiting the use of eval, exec, or raw rendering of model output
  • Utilizing structured outputs and schema validation
  • Implementing output encoding and allowlisting strategies
  • Safe rendering practices in web and UI environments
  • Lab 02: Identify and remediate an insecure-output-handling vulnerability

Module 4: RAG Security

  • Threats to vector databases and retrieval mechanisms
  • Sanitization processes during data ingestion
  • Tracking document provenance and assigning trust scores
  • Retrieval scoping and metadata isolation techniques
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration via the retrieval layer
  • Lab 03: Poison a RAG pipeline, then implement defenses

Module 5: Agent and Tool Safety

  • Risks of excessive agency and tool misuse
  • Applying least privilege principles to agents
  • Configuring tool allowlists and validating arguments
  • Implementing approval gates and human-in-the-loop mechanisms
  • Sandboxing tool execution environments
  • Using scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Restrict the permissions of an over-privileged agent

Module 6: Secrets, Identity, and Cost Management

  • API key and secret management: avoiding exposure in prompts, code, or logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity to tools and retrieval systems
  • Preventing 'denial of wallet' via unbounded token and cost consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging practices that prevent secret or PII leakage
  • Lab 05: Remove secrets from the prompt path and implement cost controls

Module 7: Guardrail Frameworks

  • Capabilities and limitations of guardrail frameworks
  • Input guardrails: detecting injection, PII, and off-topic content
  • Output guardrails: validation, filtering, and grounding checks
  • Deciding when to use guardrails versus custom deterministic checks
  • Layering guardrails with controls from previous modules
  • Evaluating performance, false positives, and failure modes
  • Lab 06: Integrate input and output guardrail layers and assess their performance

Module 8: Red-Teaming Your Own Application

  • Developing abuse and test suites for AI features
  • Automating prompt injection and jailbreak testing
  • Regression testing for guardrails and security policies
  • Incorporating AI security checks into continuous integration pipelines
  • Managing model and dependency supply chains: provenance and version pinning
  • Creating a pre-release security checklist for AI features
  • Lab 07: Write automated red-team tests and integrate them into CI

Module 9: Scoring AI Security: The SAIS-100 Framework

  • The AI Security Hexagon: replacing binary security questions with six key areas
  • Six scored categories: data, prompt, agent, supply chain, detection, and governance
  • The 100-point rubric and its weighting structure
  • Verdict bands and the single-category override rule
  • Using scoring as a metric to measure hardening impact
  • Conducting a scoring exercise on the capstone application

Capstone: Hardening an AI Application

  • Starter app overview: injectable prompts, insecure output handling, and unscoped RAG
  • Starter app overview: over-privileged agents, secrets in the prompt path, and lack of cost limits
  • Restructuring prompts for containment and validating model outputs
  • Sanitizing and scoping retrieval, then applying least privilege and approval gates
  • Removing secrets from sensitive paths and adding cost and rate limits
  • Integrating guardrails and automated red-team tests
  • Final deliverable: a hardened application plus an OWASP LLM Top 10 self-assessment

Requirements

  • Confidence in building and consuming REST APIs.
  • Proficiency in a scripting language, with labs conducted in Python.
  • Familiarity with basic application authentication, git, and command-line interfaces.
  • No prior machine learning background is necessary; this is an application security course for developers building with LLMs, not for training the models themselves.

Target Audience

  • Software and backend engineers implementing LLM features.
  • Full-stack and API developers.
  • AI and ML application engineers.
  • Platform engineers deploying copilots and autonomous agents.
  • Tech leads and senior engineers responsible for AI feature integrity.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories