AI Agent Security: Threat Modelling, Red Teaming and Defence by Design
AI agents are moving beyond the pilot phase – and with them, vulnerabilities that traditional IT security fails to cover are coming into focus. Prompt injection, tool poisoning via MCP, data exfiltration via side channels, or the ‘deadly triad’ of data, tools and external communication are posing new challenges for defenders. This two-day deep dive provides the answers – practical, consistently defensive and aligned with today’s relevant frameworks.nnWhat you’ll learn:n- Threat landscape and real-world incidents: why AI systems constitute a distinct security discipline and how to derive concrete measures from incidentsn- Framework mapping based on OWASP (both Top 10 lists), MITRE ATLAS, NIST AI RMF including the GenAI profile, ISO/IEC 42001, BSI guidelines and the EU AI Act (Art. 15)n- In-depth prompt injection: attack classes, obfuscation techniques and indirect injection via the tool layer (MCP)n- The ‘deadly triad’ and data exfiltration – including the ‘Agents Rule of Two’ for systematically breaking the triad and hardening exfiltration channels- Red teaming of AI systems using tools such as garak and mcp-scan – structured runs including at the tool level, with a transition from red teaming to detectionn- Defence by design: Isolation, guardrails, detection rules and supply chain hardening (model, skill and Unicode checks)n- Incident response exercise for AI incidents and maturity assessment with a verifiable report.Target audience: The course is aimed at security professionals, red and blue team members, developers and architects of AI agents, as well as those responsible for the secure deployment of AI. Participants are expected to have covered the content of the introductory and advanced courses – a basic understanding of LLM agents and AI security is required.nnBenefits after the course: You will be able to carry out structured threat modelling for your own agents, harden them specifically against prompt injection, tool poisoning and exfiltration, run red-team exercises, and map every finding back to common frameworks and standards – from technical details right through to a verifiable assessment report. You will work throughout in an isolated Threat Lab environment on your own scenario and take a reusable, defensive playbook back into your operational environment.
What is this training course about?
AI agents and large language models are moving beyond the pilot phase and being deployed in production – as research assistants, automation tools and even as decision-making systems with access to sensitive data. This reality is giving rise to a new, distinct security discipline. Unlike traditional software, which separates code from data, an LLM processes instructions and data within the same text stream – an inherent weakness that attackers systematically exploit.
This two-day deep dive is entirely defence-focused: it does not show you how to attack, but how to defend. You will develop your own threat model under realistic conditions, simulate attacks in an isolated Threat Lab environment, carry out structured red-teaming and implement verifiable countermeasures. The central focus is a verifiable security report for your own agent, containing findings, evidence of hardening measures, framework mappings and a prioritised action plan.
The guiding principle of this course is that you can only defend against what you understand. That is why all attack techniques are analysed down to their mechanics – but always with the aim of deriving a concrete, technically feasible countermeasure. Each exercise takes place against your own agent in your own sandbox, is categorised according to a recognised threat taxonomy, and is countered with a verifiable defence.
Contents at a glance
The course follows a clear structure: first, understanding (Day 1), then defence (Day 2). All content is technically in-depth and practice-oriented – no theoretical framework exercises, but practical labs with reproducible results.
Day 1 – Understanding and modelling attacks
- Threat landscape and real-world incidents (2024–2026): EchoLeak, the GitHub MCP incident, the Supabase leak, ClawHavoc, OpenClaw – why these incidents occurred and what recurring patterns are emerging
- Why AI systems constitute a distinct security discipline: the convergence of code and data, non-determinism, volatile supply chains, and attack surfaces without parallel in traditional software
- The defensive perspective: from incident report to countermeasure – the three questions that structure every incident and clarify its technical defence
- Framework mapping and standards: OWASP Top 10 for LLM and agent-based applications, MITRE ATLAS as a vocabulary for tactics and techniques, NIST AI RMF with GenAI profile appendix, ISO/IEC 42001 (management system), BSI guidelines, EU AI Act (Art. 15)
- Bringing the frameworks together: Who answers which question – checklists for threat modelling
- In-depth prompt injection: direct injection (jailbreak, system prompt leak, payload splitting), indirect injection (via website, document, tool description), memory and rules poisoning as persistence vectors
- Obfuscation techniques: ASCII smuggling, Unicode homoglyphs, tag blocks and zero-width characters – what the human eye cannot see, the model reads; normalisation and cleansing as basic measures
- Attacks at the MCP tool level: tool poisoning, rug pulls, state handle hijacking, confused deputy, token passthrough abuse
- The deadly triad: private data + third-party content + path to the outside = security breach. The Agents’ Rule of Two – systematically breaking the triad through separation of duties and batch processing
- Exfiltration channels and their defence: direct email/HTTP output, Markdown image rendering, file downloads, side channels (prompt cache timing); control at the perimeter rather than within the model
- Red-teaming AI systems: structured runs using garak, PyRIT, promptfoo and mcp-scan; non-determinism, scoring and statistical conclusions; the transition from finding to inferring (regression)
Day 2 – Defence by Design and Operations
- Secure agent architecture: Why filters alone fail – the strongest defence is architecture, not detection
- Six design patterns to combat prompt injection: Action Selector, Plan-Then-Execute, LLM Map-Reduce, Context Minimisation, Output Filtering, Input Filtering
- Dual-LLM and CaMeL: Structurally preventing injection – two separate models (low-action vs. action-capable), taint tracking, capabilities-based access control, verifiable security instead of classifiers
- Practical implementation on Hermes: profiles, isolation, separation of duties, verified artefact handover
- Securing the AI supply chain: four levels with varying risks and countermeasures
- Models: Pickle vs. safetensors, model signing (Sigstore), ModelScan/picklescan, isolation on first load
- Skills: Mandatory review, `skills.write_approval`, scan for invisible Unicode (Rules File Backdoor), Snyk Agent scan across all files
- MCP server: Pinning (version/hash), `tools.include` instead of `Allowall`, logging at tool level, service account with minimal privileges, `mcp-scan` check
- Packages and dependencies: Hermes security audit against the OSV database, lockfiles, supply chain risk modelling
- AI-BOM (AI Bill of Materials): the agent’s bill of materials (models with provenance/signature, skills, MCP server, packages) – a prerequisite for rapid incident response
- In-depth MCP security: protocol specification, OAuth requirements, state handle hijacking, the confused deputy problem, attacks at the tool level and their defence
- Defending your own MCP server: the principle of least privilege, read-only access where possible, authentication/authorisation, audit logging, service account isolation
- Auditing third-party MCP servers: mcp-scan/Snyk, manual review of descriptions, permission checks, hashing after approval
- Detection, guardrails and incident response: multi-layered defence
- Guardrails: specialised classifiers at the edges (input: Prompt Guard; output: Llama Guard, URL allowlist), locally deployable models, but not the only layer
- Detection Engineering for agents: Detection rules based on laboratory attacks, MITRE ATLAS mapping, SIEM integration, logging requirements
- Incident Response for Agents: Immediate measures (hermes pause, token rotation, network isolation), analysis (forensics on state.db, memory checks), recovery (snapshot, hardening), follow-up (lessons learnt, reporting obligations)
- Governance and Compliance: Maturity assessment, assurance process, framework mapping for audits, continuous improvement
Methodology & Practical Component
This course is 60 per cent hands-on. You will work in a dedicated, isolated Threat Lab VM with full documentation – without any contact with the production network or real data. Each concept is put into practice immediately in labs using your own agent.
Lab 0: Setting up the Threat Lab – VM isolation, tools (garak, mcp-scan, Python/venv), sink server and canaries for reproducible exfiltration exercises
Lab 1: Threat model for one’s own agent – data flow diagram, deadly triad analysis, OWASP ASI checklist
Lab 2: Preparing the framework mapping – Mapping table: Attack → OWASP → MITRE ATLAS → Countermeasure
Lab 3: Prompt Injection and Obfuscation – Reproducing direct injection, making invisible characters visible, building a normalisation hook
Lab 4: Indirect Injection and Tool Poisoning – File-based attacks, demonstrating isolation, checking MCP tool descriptions
Lab 5: Exfiltration and Output Filters – Markdown rendering channel, HTTP outflows, robust output filter for all channels
Lab 6 Red-teaming with garak and mcp-scan – structured runs against the unhardened agent, baseline measurement, scoring
Lab 7 Defence by Design – implementing isolation and the Rule of Two, dual profiles with role separation, regression testing
Lab 8 Supply chain auditing – checking models before loading (safetensors, signatures), scanning Skills for Unicode, Snyk integration
Lab 9 MCP Security – MCP server hardening, logging, authentication, third-party server checks
Lab 10 Guardrails and Detection Rules – Inbound/outbound checks, writing ATLAS-based detection rules, SIEM integration
Lab 11 Incident response exercise – simulated compromise, containment (hermes pause, token rotation), forensic analysis, recovery
Lab 12 Assessment report – documenting findings, catalogue of measures with maturity assessment, suitable for audit/review
Who is this training course suitable for?
This course is designed for experienced IT security professionals who not only operate AI systems but also need to monitor and secure them. It requires a solid foundation of prior knowledge and leads to an in-depth, practical understanding.
- Security analysts and security architects who need to incorporate AI risks into their modelling
- Penetration testers and red teamers who wish to test AI agents and LLM applications in a structured manner
- Compliance and audit professionals who need to incorporate AI security into their assessments
- SOC staff and SIEM teams who are setting up detection for AI incidents
- ISBs (Information Security Officers) and CISOs responsible for the secure adoption of AI within their organisations
- Developers of AI agents and security architects who wish to design their systems to be secure from the ground up
- Operators or administrators of in-house agents and LLM platforms
- Quality assurance specialists and technical auditors who assess AI security
The benefits you’ll experience after your workout
By the end of the training, you will have acquired concrete, technically sound and reproducible skills to protect and test AI systems. You will leave with a documented foundation for secure operation.
- You will be able to create and document threat models for your own agent – including data flows, attack scenarios and prioritised risks
- You will understand and apply the five relevant frameworks: OWASP, MITRE ATLAS, NIST AI RMF, ISO 42001, EU AI Act
- You will be able to understand, replicate and defend against prompt injection attacks in both breadth and depth – whether direct, indirect or obfuscated
- You will master the ‘deadly triad’ and the ‘Agents Rule of Two’ – the core concept for the systematic prevention of data leaks
- You carry out structured red-teaming exercises (garak, mcp-scan, promptfoo) and document your findings in a reproducible manner
- You design secure agent architectures (isolation, dual-LLM, CaMeL, design patterns) from scratch
- You harden the entire AI supply chain (models, skills, MCP servers, dependencies) and create an AI BOM
- You re-engineer MCP security to specification and check external servers for compliance
- You implement guardrails, detection engineering and SIEM integration for AI incidents
- You carry out incident response for AI compromises – from containment through to forensics and recovery
- You produce a verifiable security report for audit and governance – including findings, a catalogue of measures and a matu
- You have prepared your organisation for upcoming compliance requirements (AI Act, NIS-2, GDPR Article 33)
Requirements
This course is an in-depth programme and builds on a solid foundation of IT security knowledge. You should already have practical experience of traditional IT security and be familiar with the basics of AI.
- Completion of the Wendel Academy beginner’s and advanced courses, or equivalent practical experience with your own secure Hermes agent, including profiles, skills, MCP integrations and hooks
- In-depth knowledge of IT security: network security, authentication/authorisation, logging and SIEM integration, secure software development
- Confidence in using the Linux command line (bash, ssh, basic system administration) and a basic knowledge of Python
- A basic understanding of OAuth 2.0, HTTP/HTTPS, X.509 certificates and the TLS handshake
- Your own VM environment (ideally a clone of the advanced course VM): 4 vCPUs, 8 GB RAM, 60 GB storage, isolated with no access to production systems
- Willingness to experiment with realistic attack techniques – strictly within your own lab environment and in accordance with documented rules
Let’s talk about your AI needs
This post is also available in:

