ShieldBench
live backend: checking
LLM red-teaming & guardrail evaluation

Red-team an LLM app. Measure the guard and what it costs.

ShieldBench attacks a fake shop bot with fake secrets, puts five kinds of guard in front of it, and counts what gets through and what harmless requests get blocked. Everything here was measured on a laptop and a small API budget.

Every test set, every guard

Each cell is a count out of that row's test size. Hover a cell for the 95% interval.

What the numbers say

The strong guards hold

The cascade let through none of the attacks in any set, fixed, adaptive or unseen. The Claude guard let through one in 40 on the advanced set. The regex rules stopped some and missed most.

The cheap detector pays in false alarms

The trained detector is fast and free, but it blocks harmless role-play and look-alike prompts. The cascade sends its unsure cases to Claude and keeps most of the safety.

For agents, put permissions in code

When the bot can use tools, text filters left 13 to 17% of attacks working and blocked a quarter of normal tasks. A check in code at the tool layer stopped all 30 at no cost to normal tasks.

Read zeros carefully. With 40 attacks, 0 worked means the true rate is probably under about 9%. With 124 it is under about 3%. Several sets are small, one human labeled the judge check, the Claude guard and the Claude judge are the same model family, and only 4 of the 10 OWASP risks are covered.