🛡️ Laya Agent Guard

A guardrail for AI agents. Paste anything an agent might read — a user message, an email, a web page, a tool result — and it decides in one forward pass whether it is benign, a prompt injection, a jailbreak or a harmful request.

Text to check

Try an example:0 / 4000

Result

Run a check to see the verdict, class probabilities and timing.

Your checks this session

TextVerdictP(attack)ModelTotal
No checks yet.

Benchmark results

ModelF1AUROCFalse blocksT4 latency
Laya Agent Guard (this)0.880.977%34 ms
Jev (hosted API)0.780.9217%n/a
Llama Guard 3 1B0.650.8119%98 ms
Laya base (no fine-tune)0.580.6934%44 ms

18,617 test prompts across 11 benchmarks, threshold 0.5. Weak spots: it trails Jev on XSTest, JailbreakBench and deepset. Full results →

How it works

1 · One sheetThe question, the four labels and your text go into one input. Each label gets a [MASK] "answer box".
2 · ReadModernBERT-large reads everything bidirectionally; each box absorbs how well its label fits.
3 · CompareTwo extra Transformer layers let the boxes compete; one shared scorer gives each a number.
4 · CalibrateSoftmax with a fitted temperature turns scores into honest probabilities.

Fine-tuned on 78k examples from 13 public datasets plus synthetic indirect injections, on free Kaggle GPUs.