Get in Touch
 Duration 21 hours

Course Outline

Module 1: Understanding AI Application Vulnerabilities

  • Developer-centric views of LLM, RAG, and agent architectures
  • The lifecycle of requests and responses in AI features
  • Prompt flow dynamics: system, developer, user, and tool messages
  • Identifying where untrusted data enters and re-enters the model
  • Distinguishing trust boundaries owned by developers from those inherited
  • Understanding why AI attacks are semantic rather than syntactic
  • Mapping the OWASP LLM Top 10 to practical code implementation

Module 2: Prompt Injection for Developers

  • Differences between direct and indirect prompt injection
  • Hidden instructions within documents, web pages, and tool outputs
  • Techniques for jailbreaks and role confusion
  • The importance of separating instructions from data
  • Defensive prompt design strategies: delimiters, structure, and minimal authority
  • Designing for containment, acknowledging that prevention is often partial
  • Lab 01: Attack your own chatbot, bypass basic filters, and restructure prompts

Module 3: Managing Untrusted Model Output

  • Viewing model output as untrusted input for the rest of the application
  • Risks of insecure output handling: XSS, SSRF, and downstream SQL or command injection
  • Avoiding eval, exec, or raw rendering of model output
  • Implementing structured outputs and schema validation
  • Applying output encoding and allowlists
  • Ensuring safe rendering in web and UI contexts
  • Lab 02: Identify and remediate insecure output handling bugs

Module 4: RAG Security

  • Threats to vector databases and retrieval processes
  • Sanitization techniques during ingestion
  • Managing document provenance and trust scoring
  • Retrieval scoping and metadata isolation
  • Countering hidden instructions in retrieved content
  • Preventing data exfiltration via retrieval
  • Lab 03: Poison a RAG pipeline, then implement defenses

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 processes
  • Sandboxing tool execution environments
  • Managing 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' through unbounded token and cost consumption
  • Enforcing rate limits, token budgets, and timeouts
  • Logging securely without exposing secrets or PII
  • Lab 05: Remove secrets from the prompt path and implement cost limits

Module 7: Guardrail Frameworks

  • Capabilities and limitations of guardrail frameworks
  • Input guardrails: detecting injection, PII, and topic classification
  • Output guardrails: validation, filtering, and grounding checks
  • Determining when to use guardrails versus deterministic checks
  • Integrating guardrails with controls from previous modules
  • Addressing performance, false positives, and failure modes
  • Lab 06: Implement and measure input and output guardrail layers

Module 8: Red-Teaming Your Own Application

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

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

  • The AI Security Hexagon: six key questions instead of a binary 'is it secure'
  • The six scored categories: data, prompt, agent, supply chain, detection, and governance
  • The 100-point rubric and its weighting system
  • Verdict bands and the single-category override rule
  • Using scoring before and after hardening as a performance metric
  • Applying scoring exercises to the capstone application

Capstone: Hardening an AI Application

  • Starter app setup: injectable prompts, insecure output handling, and unscoped RAG
  • Starter app setup: over-permissioned agents, secrets in prompt paths, and no cost limits
  • Restructuring prompts for containment and validating model output
  • Sanitizing and scoping retrieval, while applying least privilege and approval gates
  • Removing secrets and implementing cost and rate limits
  • Integrating guardrails and automated red-team tests
  • Deliverable: A hardened application accompanied by an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in building and consuming REST APIs.
  • Knowledge of a scripting language, with labs provided in Python.
  • Familiarity with basic application authentication, git, and command line usage.
  • No prior machine learning background is necessary; this is an application security course for those building with LLMs, not for training them.

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.

Custom Corporate Training

Training solutions designed exclusively for businesses.

  • Customized Content: We adapt the syllabus and practical exercises to the real goals and needs of your project.
  • Flexible Schedule: Dates and times adapted to your team's agenda.
  • Format: Online (live), In-company (at your offices), or Hybrid.
Investment

Price per private group, online live training, starting from 4800 € + VAT*

Contact us for an exact quote and to hear our latest promotions

Testimonials (3)

Provisional Upcoming Courses (Contact Us For More Information)

Related Categories