Spaces:
Sleeping
Sleeping
File size: 1,314 Bytes
94edd6d 70e66bb 94edd6d 70e66bb 94edd6d 70e66bb 94edd6d 70e66bb 05cad5c 70e66bb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ---
title: AgentGuard Bench
emoji: 🛡️
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 4.36.0
app_file: app.py
pinned: false
license: apache-2.0
tags:
- llm-security
- prompt-injection
- guardrails
- agentic-ai
- safety
---
# 🛡️ AgentGuard Bench
A side-by-side comparison of a **pattern-based** prompt-injection
guardrail and a **fine-tuned transformer classifier**, built to make
the latency/robustness tradeoff between the two approaches concrete
and explorable.
- **Live Compare** — paste any prompt, see both guardrails score it instantly
- **Adversarial Test Suite** — run a curated set of attack + benign prompts and compare accuracy and latency
- **About** — methodology, related work, and limitations
The pattern-based guardrail is a Python port of the `PromptInjectionGuardrail`
I contributed to [LangChain4j](https://github.com/langchain4j/langchain4j)
(Java) in [PR #5619](https://github.com/langchain4j/langchain4j/pull/5619) —
same detection taxonomy, demonstrating it generalizes across ecosystems.
The model-based guardrail uses
[`protectai/deberta-v3-base-prompt-injection-v2`](https://huggingface.co/protectai/deberta-v3-base-prompt-injection-v2)
(Apache 2.0).
See the **About** tab inside the Space for full methodology, citations,
and known limitations.
|