← all repositories
AgentSafeLabs/safelabs-eval

Red-team your agent with 300 prompts and zero LLM judges

safelabs-eval fires a curated adversarial prompt corpus at your agent and scores the damage with pattern detectors — no grader model, no agent code changes.

★707 stars Python LLMOps · EvalAgents
Feature · 22 Oct 2026
The Red-Team Tool That Grades Your Agent With Regex, Not a Judge Model

safelabs-eval fires 300 adversarial prompts at your agent and scores the damage with pure Python — and its own research admits that's both the point and the problem.

Read the in-depth article →
safelabs-eval
Not currently ranked.
star history

What it does

It’s a red-teaming harness for AI agents built on LangChain, CrewAI, AutoGen, LlamaIndex, the OpenAI Agents SDK, Google ADK, Semantic Kernel, or anything custom. You point it at an HTTP endpoint or wrap a Python callable, and it sends 300 adversarial prompts — 30 each across ten ASI categories (prompt injection, insecure output handling, excessive agency, data leakage, hallucination, and friends). Every response gets scored by pattern-based detectors into one of four verdicts: VULNERABLE, FAIL, UNCERTAIN, or PASS, with a structured report at the end.

The interesting bit

Detection is entirely pattern-based — no LLM-as-judge, so grading costs nothing and runs deterministically. The prompt library is unusually well-documented for this genre: every entry carries a difficulty tier, provenance metadata, and MITRE ATLAS technique IDs, and the authors ran a verbatim-text provenance audit over the early corpus. The taxonomy is OWASP-inspired, not the official OWASP Top 10 for Agentic Applications 2026 — and since both use ASI01–ASI10 numbering, the same ID means different things in each. The README is refreshingly blunt about this.

Key highlights

  • 300 prompts, 10 per (category, difficulty-tier) cell — tiers are author-defined, not calibrated against real refusal rates
  • Works via CLI against HTTP endpoints (with auth and timeout options) or via a Python API wrapping any callable, sync or async
  • JSON output for CI pipelines; per-result remediation hints
  • Confidence figures are heuristic evidence scores, not calibrated probabilities — the README says so explicitly
  • Apache 2.0, with a published Zenodo dataset (SafeAgent-300) and DOI

Caveats

  • Pattern detectors can miss subtle or paraphrased unsafe compliance and can false-positive; results are detector-derived, not ground truth
  • The corpus is English-only and single-turn — ASI08’s “multi-turn” scenarios are described within one prompt, not actually executed across turns
  • Only the first 131 prompts got the full provenance audit; the 169 added later are labeled original but got lighter overlap checks

Verdict

Worth a look if you’re shipping an agent to production and want a cheap, repeatable first-pass safety check in CI. If you need calibrated safety measurements, multi-turn attack execution, or non-English coverage, this won’t carry the load alone — but as a deterministic smoke test, it’s a solid, honest tool.

Frequently asked

What is AgentSafeLabs/safelabs-eval?
safelabs-eval fires a curated adversarial prompt corpus at your agent and scores the damage with pattern detectors — no grader model, no agent code changes.
Is safelabs-eval open source?
Yes — AgentSafeLabs/safelabs-eval is open source, released under the Apache-2.0 license.
What language is safelabs-eval written in?
AgentSafeLabs/safelabs-eval is primarily written in Python.
How popular is safelabs-eval?
AgentSafeLabs/safelabs-eval has 707 stars on GitHub.
Where can I find safelabs-eval?
AgentSafeLabs/safelabs-eval is on GitHub at https://github.com/AgentSafeLabs/safelabs-eval.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.