← Agent labsFree lab · Agent labs

Red-team and harden your AI agent team

You've built a single agent. You've built a team. Now put that team through what a real security review looks like: turn on production guardrails, then try to break it with five real attack techniques, and see whether your defences hold. Still no code. Your work stays in this browser and is never sent anywhere.

A specialist studies a wall of monitors showing abstract orange network visualisations in a dark security operations room, representing hardening and red-teaming an AI agent team

Listen to this briefing

Hardening and Red-Teaming an AI Agent Team

0:00

New here? Start with the first two tools

This tool builds on Advanced AI Agent Builder, which itself builds on Build Your Own AI Agent. If you haven't built a Supervisor-and-Specialist team before, start there first: this tool assumes you already know what a Supervisor, a Specialist, and a checkpoint are.

What's different here

Advanced tool

A team that plans, runs, pauses for approval, and recovers from an ordinary tool failure.

This tool

The same kind of team, hardened with production guardrails, then deliberately attacked with 5 real techniques to see which guardrails hold.

What you will do: 5 steps

  1. 1Choose a team. Load a production-style team, the same shape you'd build in the Advanced tool.
  2. 2Harden it. Turn on the guardrails a real deployment would need, before anything goes live.
  3. 3Red-team it. Pick a real attack technique and watch it play out against your team, guardrails and all.
  4. 4Respond to the incident. Contain it, decide who needs to know, and log the root cause.
  5. 5Get your governance record. A structured record of every guardrail, every attack and every outcome, ready as the starting point for an auditor.

Your guardrails and attack results are kept in this browser as you go, so you can leave and come back. Press Start over to clear them.

Step 1 of 5: Choose a team to harden

1

Choose a team to harden

Pick a production-style team, the same shape as the Advanced tool's templates (a Supervisor plus two Specialists), so you can jump straight to hardening it.

Why this step matters

Real hardening reviews start with a team that's already been designed and approved, not a blank page. These three are the same shape as the production deployments most companies stand up first.

Four ideas this tool adds

You already know Supervisor, Plan, Checkpoint, and Recovery from the Advanced tool. Hardening a team for production adds four more ideas.

Guardrail

A specific, always-on control that blocks one category of attack, like screening tool output, or redacting secrets before they leave the team.

Attack surface

Everywhere your team could be tricked, fooled, or exploited: a poisoned webpage, an over-eager task, or another agent's bad guess.

Red-team

Deliberately attacking your own system before someone else does, so you find the gaps while they're still cheap to fix.

Residual risk

What's left over after your guardrails are in place: never zero, but a number you can see and manage.

How the red-team step works

Five attacks, each aimed at one guardrail

Poisoned Search ResultA web page hides an instruction inside its text.Screen anything a tool brings back before any agent acts on itGRD-PER-01Blocked if on
Scope CreepA task asks a Specialist to do more than its job.Every Specialist can only do the exact job you gave itIDY-ACT-01Blocked if on
Memory PoisoningAn old, unverified claim resurfaces in a new task.Each new task starts clean, with no memory carried overMEM-ACT-01Blocked if on
Secret LeakageAn answer would naturally include a key or personal data.Redact secrets and personal data before anything leaves the teamGRD-ACT-01Blocked if on
Cascading HallucinationOne agent's mistake becomes the next agent's "fact."Treat another agent's claim as unverified until it's checkedRAG-ACT-01Blocked if on

Residual risk in the governance record

ElevatedAny tested attack got through. Fix the missing guardrail and re-test before go-live.
StandardSome attacks tested, all blocked. Test the rest for full coverage.
LowAll 5 attacks tested and blocked. Residual risk is never zero.

The pairings and rating rule the tool uses. It is a practice simulation with built-in rules: no real AI model is called and no real attack is performed. Leave a guardrail off and its matching attack gets through.

Terence Kok
Before You Go

This is the tool I wish more people built before, not after, something goes wrong. Every attack in here, the poisoned search result, the scope creep, the memory that should have been wiped, is a simplified version of something that has happened to a real agent somewhere. Turning on a guardrail feels abstract until you watch the matching attack walk straight through the gap you left open. That's the whole point: find the gap here, where the cost of being wrong is nothing.

Terence Kok