Get in Touch
 Duration 21 hours

Course Outline

Module 1: Architecture and Failure Modes in AI Applications

  • Core architectures: LLMs, RAG, and agents from an engineering perspective
  • Analyzing the lifecycle of requests and responses in AI services
  • Prompt composition: distinguishing system, developer, user, and tool inputs
  • Identifying entry points for untrusted data and potential re-injection into models
  • Defining trust boundaries: developer responsibilities versus inherited constraints
  • Understanding the semantic nature of AI threats versus traditional syntactic vulnerabilities
  • Aligning development practices with the OWASP LLM Top 10 risk framework

Module 2: Mitigating Prompt Injection Risks

  • Comparing direct and indirect prompt injection vectors
  • Detecting hidden directives in external documents, web sources, and tool outputs
  • Addressing jailbreak attempts and role-based confusion attacks
  • The critical importance of isolating instructions from variable data
  • Implementing defensive prompt structures: delimiters, strict formatting, and minimal authority
  • Recognizing the limits of prevention and designing for effective containment
  • Practical Exercise 01: Simulate chatbot attacks, test filter efficacy, and refactor prompts

Module 3: Securing Downstream Handling of Model Outputs

  • Viewing model responses as untrusted inputs to downstream application components
  • Addressing insecure output processing: XSS, SSRF, and injection risks in SQL or commands
  • Prohibiting the direct execution or evaluation of raw model-generated content
  • Enforcing structured outputs and rigorous schema validation
  • Applying output encoding and strict allowlisting strategies
  • Ensuring safe rendering practices for web and user interface contexts
  • Practical Exercise 02: Identify and remediate insecure output handling defects

Module 4: Securing Retrieval-Augmented Generation (RAG)

  • Threat landscape for vector databases and retrieval mechanisms
  • Sanitizing data during the ingestion phase
  • Establishing document provenance and trust scoring mechanisms
  • Controlling retrieval scope and enforcing metadata isolation
  • Detecting and neutralizing hidden instructions within retrieved content
  • Preventing data exfiltration via malicious retrieval queries
  • Practical Exercise 03: Simulate RAG pipeline poisoning and implement defensive controls

Module 5: Safeguarding Agents and Tool Interactions

  • Managing excessive agency and preventing tool misuse
  • Implementing least privilege principles for AI agents
  • Utilizing tool allowlists and rigorous argument validation
  • Integrating approval gates and human-in-the-loop oversight
  • Sandboxing tool execution environments
  • Managing scoped, short-lived credentials and restricting autonomous loops
  • Practical Exercise 04: Harden an agent with excessive permissions

Module 6: Managing Secrets, Identity, and Operational Costs

  • Secure secret management: prohibiting secrets in prompts, code, and logs
  • Implementing per-user authentication and authorization for AI features
  • Propagating user identity securely to tools and retrieval systems
  • Preventing “Denial of Wallet” attacks via unbounded token consumption
  • Enforcing rate limits, token budgets, and request timeouts
  • Logging activities while preventing leakage of secrets or PII
  • Practical Exercise 05: Remove secrets from the prompt path and implement cost controls

Module 7: Implementing Guardrail Frameworks

  • Defining the capabilities and limitations of guardrail frameworks
  • Input guardrails: detecting injection, PII, and off-topic content
  • Output guardrails: validating, filtering, and grounding response checks
  • Determining when to use guardrails versus deterministic custom checks
  • Integrating guardrails with controls established in previous modules
  • Evaluating performance, false positive rates, and potential failure modes
  • Practical Exercise 06: Deploy input and output guardrails and measure their effectiveness

Module 8: Conducting Red-Team Testing on AI Applications

  • Developing comprehensive abuse and test suites for AI features
  • Automating prompt injection and jailbreak testing scenarios
  • Performing regression testing on guardrails and security policies
  • Integrating AI security checks into continuous integration pipelines
  • Securing the model and dependency supply chain through provenance and pinning
  • Establishing a pre-release security checklist for AI features
  • Practical Exercise 07: Create automated red-team tests and integrate them into CI workflows

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

  • The AI Security Hexagon: shifting from binary security questions to nuanced assessments
  • Assessing six core categories: data, prompt, agent, supply chain, detection, and governance
  • Applying the 100-point rubric and understanding category weightings
  • Interpreting verdict bands and applying single-category override rules
  • Using security scores as metrics for improvement before and after hardening
  • Conducting a scoring exercise on the capstone application

Capstone Project: Hardening an AI Application

  • Initial state review: vulnerable prompts, insecure output handling, and unscoped RAG
  • Initial state review: over-permissioned agents, exposed secrets, and lack of cost limits
  • Refactoring prompts for containment and implementing robust model output validation
  • Sanitizing retrieval inputs, scoping data access, and applying least privilege with approval gates
  • Eliminating secret exposure and implementing cost and rate limiting controls
  • Integrating guardrails and automated red-team testing capabilities
  • Final Deliverable: A hardened application and a completed OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Familiarity with a scripting language; labs are delivered in Python.
  • Basic knowledge of application authentication, version control (git), and command-line interfaces.
  • No machine learning background is required; this is an application security course focused on building with LLMs, not training them.

Target Audience

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

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories