Docker ComposeKubernetes / Helm

AI 101 — Agents, MCP & the Agentic Security Model

What is this workshop?

This is a hands-on lab that takes you from raw LLM inference all the way through a realistic agentic security attack, using a purpose-built application running entirely on your laptop. The four lab exercises take roughly 2.5 hours; allow ~3 hours total including setup, a break, and wrap-up.

You will build a small HR assistant backed by a local LLM, connect it to tools, extend it with MCP, and then break it deliberately — watching SQL injection, data exfiltration, and audit-log contrast play out in real time.

flowchart LR
    Browser --> UI[nginx UI]
    UI --> Agent[FastAPI Agent]
    Agent --> Ollama[Ollama<br>qwen2.5:3b]
    Agent --> MCP[MCP Server<br>FastMCP]
    MCP --> DB[(SQLite<br>Employees)]

What you will build across the four labs

LabTopicTime
Lab 1 — InferenceDirect LLM calls, prompt injection~30 min
Lab 2 — AgentsExplicit tool-call loop, chained actions~45 min
Lab 3 — MCPDynamic discovery, hot tool swap~30 min
Lab 4 — SecuritySQLi, data exfil, observability contrast~45 min

Learning objectives

After completing these labs you will be able to:

  1. Explain how LLM inference works and why system-prompt isolation is not a security boundary.
  2. Describe the agentic loop (LLM + loop + tools) and trace a multi-step tool call through the Trace panel.
  3. Explain MCP and why dynamic tool discovery changes the attack surface.
  4. Demonstrate SQL injection and data exfiltration through an AI agent, and explain why conventional controls miss it.
  5. Articulate why audit logging is the prerequisite for any defensive response.

Optional: FortiAIGate integration

This workshop stands on its own. All labs run against a local Ollama instance with no external dependencies.

If you want to extend the experience with enterprise AI security controls, the FortiAIGate Workshop picks up where Lab 4 ends: you change one value (OPENAI_BASE_URL) to route the same agent through FortiAIGate, then explore input/output guardrails, AI Flow policies, and the detection story — using the same attack chain you ran in Lab 4.

Prerequisites

See Setup & Prerequisites for the full list. Short version:

  • One of the two deployment paths — Docker with the Compose plugin (v2), or Kubernetes with Helm 3 — chosen on the setup page linked above
  • Git and a terminal
  • ~8 GB RAM free; discrete GPU optional but speeds model loading significantly