Stop Trusting Your LLM. Start Breaking It.

Cyrus Mante

Cyrus Mante

Day 2 • Sun, Oct 18
10:50 - 11:35
Location
R3
Language
English
Category • Level
Security • Medium

Most developers treat their LLMs like trusted colleagues. They prompt, deploy, and hope for the best. But trust is a vulnerability. This talk takes an engineer's approach to AI red-teaming: systematically finding, documenting, and fixing the ways your language models fail before your users or adversaries do. We'll cover a practical taxonomy of LLM failure modes (prompt injection, jailbreaks, sycophancy, data extraction, hallucination under pressure), then build a red-team testing harness live in Python using garak, deepteam, and deepeval. These aren't theoretical failure modes — they're vulnerabilities I've found in production RAG pipelines and chatbots using exactly this workflow. No prior security background needed, just Python and a healthy distrust of your own models. You'll leave with a repeatable methodology and a toolkit you can run on your next LLM-powered application tomorrow.

Description

The Problem

Most LLM applications are tested for what they should do, not for what they can be made to do. Red-teaming flips this: instead of asking "does it work?", we ask "how does it break?" This talk brings an engineer's systematic approach to a problem most Python developers handle ad-hoc, if at all.

What is LLM Red-Teaming?

Red-teaming borrows from cybersecurity — a structured adversarial exercise where you attack your own system to find weaknesses before others do. Applied to LLMs, this means probing for:

  • Prompt injection — hijacking model behavior via malicious input
  • Jailbreaks — bypassing safety guardrails
  • Sycophancy — models agreeing with wrong answers under pressure
  • Data extraction — leaking training data or system prompts
  • Hallucination under adversarial conditions — not just random, but triggered

What We'll Build

A lightweight red-team harness in Python using:

  • garak — LLM vulnerability scanner; generates adversarial probes at scale across jailbreaks, prompt injection, data extraction, and more
  • deepteam — purpose-built LLM red-teaming framework; runs attacks against your application, scores outputs against OWASP Top 10 and NIST AI RMF-aligned vulnerability metrics using LLM-as-judge, and produces a structured risk assessment
  • deepeval — LLM eval framework; layers in general quality scoring (relevancy, faithfulness) to distinguish security failures from general quality degradation

Together these form a complete workflow: probe generation → attack execution → dual-layer scoring → structured report → regression test cases.

Talk Structure

  1. Why evals alone are not enough (5 min)
  2. Taxonomy of LLM failure modes (10 min)
  3. Live demo: building a red-team pipeline (20 min)
  4. What to do when you find something (5 min)
  5. Q&A (5 min)

Audience Takeaway

A repeatable methodology and working Python toolkit to stress-test any LLM application. This workflow has surfaced real vulnerabilities in production RAG pipelines and chatbots — findings that would never have appeared in a standard capability eval. Starting the day after the talk.

Cyrus Mante
Cyrus Mante

Cyrus is an AI Software Developer within the AI Centre of Excellence with a background in data science and machine learning. He works on agentic AI solutions that improve internal workflows and support the responsible adoption of AI across the organization by combining data-driven thinking with software engineering practices. Outside of his work, Cyrus stays active in the tech community through volunteering, community initiatives, and speaking engagements, where he shares practical insights on applied AI and modern software development.

Related Speeches