Ingenious AI

Guides · Agent security

How to run an AI red team exercise

A red team exercise is the moment your AI system meets an adversary who is allowed to win — on your schedule, in your environment, with your team watching. For agents and chatbots, red teaming is not optional theatre; it is the only way to discover what your system does when the input is hostile, because demos only ever show what it does when the input is friendly. This guide covers scope, the attack families that matter, and how findings become fixes instead of a scary PDF.

By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026

The short answer

Run an AI red team exercise by scoping it first (which agent, which tools, which data, what counts as a win for the attacker), then working the core attack families: direct and indirect prompt injection, tool-call hijack, data exfiltration through allowed channels, privilege escalation across agents, and multi-turn manipulation. Score every success by real-world impact, deliver findings as engineering tickets with transcripts, fix the architectural causes (permissions, egress, approvals) rather than the individual prompts, and re-test to prove the fixes hold.

Try it free: Rogue-Agent Defense — see the runtime defence layer a red team tests — injection guards and egress control under live attack patterns.

What is AI red teaming?

a structured adversarial test in which testers attack an AI system the way a real adversary would — through its inputs, its retrieved content, its tools and its integrations — to find exploitable weaknesses before deployment or on a regular cadence. Unlike automated scanning, red teaming chains weaknesses together creatively, which is how real incidents happen: rarely one flaw, usually three small ones in a trench coat.

Scope and rules before attacks

Define the target system precisely (agent, version, tools, data sources), the rules of engagement (production or staging, rate limits, what testers may touch), and the win conditions in business terms: extract another customer's data, cause an unauthorised payment, get the agent to send externally, retrieve the system prompt, bypass an approval. Business-term win conditions keep the exercise honest — 'we jailbroke it' is not a finding; 'we made it refund a stranger $400 using only a support email' is. Agree in advance that findings go to engineering, not to blame.

The attack families to work

Start with injection, direct and indirect — payloads typed by the user and payloads planted in content the agent reads (web pages, documents, emails, tickets). Then tool-call hijack: steering arguments rather than text. Then exfiltration through allowed channels: the agent's own email, its URL fetching, its formatting tricks. Then privilege paths: can a low-privilege agent talk a high-privilege one into acting? Finally multi-turn manipulation, where the attack is a conversation, not a message, and each step looks innocent alone. Order matters less than coverage; the family you skip is the one the incident will use.

Score by impact, not by cleverness

Every successful attack becomes a finding with a severity grounded in consequence: what data, what money, what action, at what scale, with what detection. A system-prompt leak is embarrassing; an unauthorised payment path is critical. Include the full transcript and the exact conditions (model version, configuration) so the finding is reproducible — an irreproducible finding gets argued about instead of fixed. Note also what the defence did: which layer noticed, which layer was silent. The silence map is often the most valuable output.

Fix architecture, not prompts

The common failure after a red team is prompt whack-a-mole: add a line banning the exact payload that worked, declare victory, and fall to its cousin next week. Durable fixes are structural — scope the tool, allowlist the egress, gate the action, fence the retrieval, cap the budget — so that the whole family dies, not the instance. Some findings do end in prompt or classifier changes, but they should be the minority and the report should say why. Track fixes like vulnerabilities: owner, deadline, re-test date.

Cadence: red teaming is a rhythm

One exercise is a snapshot of a system that changes weekly. Re-run after every major model change, tool addition or permission change, and run a scheduled exercise at least quarterly for customer-facing agents. Keep a growing regression library: every payload that ever worked stays in the suite forever, run automatically where possible. The measure of a maturing programme is boring — the exercises keep happening and the critical findings keep not appearing.

Your 5-action checklist

  1. Scope the exercise with business-term win conditions, rules of engagement, and a named findings owner.
  2. Work all five families: injection (direct/indirect), tool hijack, exfiltration, privilege paths, multi-turn manipulation.
  3. Write findings with transcripts, exact conditions and impact-based severity — reproducible or it didn't happen.
  4. Fix causes architecturally (scope, egress, approvals, budgets) and ticket every fix with a re-test date.
  5. Re-run after major changes and quarterly at minimum; keep every successful payload in a permanent regression suite.

Worked example: Belize City Port Logistics

Belize City Port Logistics, a fictional freight coordinator, red-teamed its documentation agent before connecting it to carrier payments. In the second day, a tester planted an instruction in a fake bill-of-lading PDF: when summarised, the agent was told to mark the shipment 'charges waived' and email the carrier a confirmation. The agent complied — the PDF was the attack surface nobody had scoped. The finding was scored critical (payment-adjacent action from untrusted content), and the fix was architectural: documents became data-only (the agent summarises but cannot act on instructions found in them), and any charge change requires a human approval showing the literal change. The retest, including the original PDF and eleven variants, produced zero successes. The launch slipped nine days; the first real attempt — which arrived four months later, in an actual bill of lading — cost nothing.

Frequently asked questions

How is red teaming different from penetration testing?

Pen testing attacks the technical stack — networks, applications, credentials. AI red teaming attacks through language and behaviour: the model's interpretation of content, its tool use, its trust in retrieved text. Modern agent deployments need both, because their worst incidents combine the two.

Can we red-team our own system, or must it be external?

Internal teams can and should run continuous adversarial testing; external testers add fresh eyes and freedom from the builders' blind spots. A common pattern: internal suites running constantly, an external exercise annually or before major launches. What matters is that testers are rewarded for breaking things, not for confirming them.

Our agent passed its red team. Are we secure?

You are secure against the attacks tried, on the configuration tested, on that date. That is genuinely valuable and genuinely perishable: models change, tools get added, new payload families appear monthly. Treat a pass as a baseline to defend with cadence, not as a verdict to frame.

What do we do with a critical finding days before launch?

Delay the launch of the affected capability, or launch without it. Shipping a known critical flaw in an agent is choosing the incident date yourself. Reduce scope (read-only mode, human approval on everything) if the business pressure is real — but do not ship the flaw at full privilege and call it a launch.

How much does an AI red team exercise cost?

Internal exercises cost staff time; external ones range from a few thousand dollars for a focused chatbot assessment to substantially more for complex agent estates. Scope by win conditions, not by days: a tight exercise against your worst three outcomes beats a broad one against everything.

Related guides and tools