Get in Touch
 Duration 21 hours

Course Outline

Module 1: Failure Modes in AI Applications

  • Understanding LLM, RAG, and agent architectures from a developer’s perspective
  • The lifecycle of requests and responses within an AI feature
  • Prompt flow analysis: system, developer, user, and tool messages
  • Identifying entry points for untrusted data and how it re-enters the model
  • Distinguishing between trust boundaries a developer owns versus those inherited
  • Why AI attacks are semantic in nature rather than syntactic
  • Mapping the OWASP LLM Top 10 to specific code implementations

Module 2: Prompt Injection for Developers

  • Contrasting direct versus indirect prompt injection
  • Detecting hidden instructions in documents, web pages, and tool outputs
  • Understanding jailbreaks and role confusion techniques
  • The importance of separating instructions from data
  • Defensive prompt design strategies: delimiters, structure, and minimal authority
  • Why prevention is only partial, and the necessity of designing for containment
  • Lab 01: Attack your own chatbot, bypass a basic filter, and restructure the prompt

Module 3: Handling Model Output as Untrusted

  • Treating model output as untrusted input for the broader application
  • Identifying insecure output handling risks: XSS, SSRF, and downstream command or SQL injection
  • Prohibiting the use of eval, exec, or raw rendering of model output
  • Leveraging 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 processes
  • Sanitization techniques for data ingestion
  • Establishing document provenance and trust scoring
  • Scoping retrieval and isolating metadata
  • Detecting hidden instructions within retrieved content
  • Preventing data exfiltration through retrieval mechanisms
  • Lab 03: Compromise a RAG pipeline, then implement defenses

Module 5: Agent and Tool Safety

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

Module 6: Secrets, Identity, and Cost Management

  • API key and secret management: excluding them from 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 via unbounded token and cost consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging practices that prevent leakage of secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement cost controls

Module 7: Guardrail Frameworks

  • 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
  • Integrating guardrails with controls from previous modules
  • Managing performance, false positives, and potential failure modes
  • Lab 06: Deploy input and output guardrail layers and assess their effectiveness

Module 8: Red-Teaming Your Application

  • Creating abuse and test suites specific to AI features
  • Automating prompt injection and jailbreak tests
  • Regression testing for guardrails and security policies
  • Incorporating AI security checks into continuous integration pipelines
  • Securing the model and dependency supply chain through provenance and pinning
  • Using a pre-ship security checklist for AI features
  • Lab 07: Develop automated red-team tests and integrate them into CI

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

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

Capstone: Hardening an AI Application

  • Review of the starter app: vulnerable to prompt injection, insecure output handling, and unscoped RAG
  • Review of the starter app: over-permissioned agent, secrets in the prompt path, and lack of cost limits
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, while applying least privilege and approval gates
  • Removing secrets from the prompt path and implementing cost and rate limits
  • Adding guardrails and automated red-team tests
  • Final deliverable: a hardened application accompanied by an OWASP LLM Top 10 self-assessment

Requirements

  • Confidence in building and consuming REST APIs.
  • Proficiency in a scripting language; all labs are conducted in Python.
  • Familiarity with basic application authentication, git workflows, and command-line operations.
  • No machine learning background is necessary; this is an application security course for professionals building with LLMs, not for training them.

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 accountable for AI product features.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories