Get in Touch
 Duration 21 hours

Course Outline

Module 1: AI Application Vulnerabilities

  • Developer-centric views of LLM, RAG, and agent architectures
  • The request and response lifecycle specific to AI features
  • Prompt flows: system, developer, user, and tool messages
  • Entry points and re-entry vectors for untrusted data in models
  • Distinguishing trust boundaries owned by developers versus those inherited
  • The semantic nature of AI attacks compared to syntactic vulnerabilities
  • Aligning the OWASP LLM Top 10 with actual code implementations

Module 2: Prompt Injection for Developers

  • Differences between direct and indirect prompt injection
  • Hidden instructions embedded in documents, web pages, and tool outputs
  • Jailbreak techniques and role confusion scenarios
  • The critical importance of separating instructions from data
  • Defensive prompt design using delimiters, structure, and minimal authority
  • Designing for containment where complete prevention is not feasible
  • Lab 01: Attack a chatbot, bypass basic filters, and restructure the prompt

Module 3: Managing Untrusted Model Output

  • Viewing model output as untrusted input for the broader application
  • Insecure output handling risks: XSS, SSRF, and downstream injection attacks
  • Avoiding eval, exec, or direct rendering of raw model outputs
  • Utilizing structured outputs and strict schema validation
  • Implementing output encoding and allowlist strategies
  • Safe rendering practices for 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 during data ingestion
  • Assessing document provenance and trust scores
  • Scoping retrieval and isolating metadata
  • Intercepting hidden instructions within retrieved content
  • Preventing data exfiltration via retrieval mechanisms
  • Lab 03: Compromise a RAG pipeline and subsequently defend it

Module 5: Agent and Tool Safety

  • Mitigating excessive agency and tool abuse
  • Applying least privilege principles to agents
  • Validating tool allowlists and arguments
  • Implementing approval gates and human-in-the-loop controls
  • Sandboxing tool execution environments
  • Using scoped, short-lived credentials and limiting autonomous loops
  • Lab 04: Restrict permissions for an over-privileged agent

Module 6: Secrets, Identity, and Cost Management

  • API key and secret management: exclusion 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 via unbounded token and cost consumption
  • Configuring rate limits, token budgets, and timeouts
  • Logging practices that prevent secret and PII leakage
  • 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
  • Choosing between guardrail libraries and custom 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 Application

  • Creating comprehensive abuse and test suites for 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 via provenance and pinning
  • Developing a pre-release security checklist for AI features
  • Lab 07: Create automated red-team tests and integrate them into CI

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

  • The AI Security Hexagon: six critical questions beyond binary security status
  • Six scored categories: data, prompt, agent, supply chain, detection, governance
  • Understanding the 100-point rubric and its weightings
  • Verdict bands and the single-category override rule
  • Using pre- and post-hardening scores as performance metrics
  • Applying the scoring framework to the capstone application

Capstone: Hardening an AI Application

  • Starter app vulnerabilities: injectable prompts, insecure output, unscoped RAG
  • Starter app weaknesses: over-permissioned agents, exposed secrets, no cost limits
  • Restructuring prompts for containment and validating model outputs
  • Sanitizing retrieval, scoping access, and applying least privilege with approval gates
  • Securing secrets and implementing cost and rate limitations
  • Integrating guardrails and automated red-team testing
  • Final Deliverable: A hardened application accompanied by an OWASP LLM Top 10 self-assessment

Requirements

  • Proficiency in developing and consuming REST APIs.
  • Knowledge of a scripting language, with labs conducted in Python.
  • Familiarity with basic application authentication, git workflows, and command-line operations.
  • No prior machine learning experience is necessary; this is an application security course for developers integrating LLMs, not for those training models.

Target Audience

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

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 4350 € + VAT*

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

Testimonials (3)

Upcoming Courses

Related Categories