Detection benchmarks

We publish our real numbers — including the misses. 465 labeled samples run against the live production engine on 2026-10-07, plus a 211-sample external set the engine never saw. Methodology reviewed by three AI systems (ChatGPT, Grok, Claude — full critiques in the repo). Per-sample results: download the 465-sample dev set (CSV); hold-out kept private so it stays honest.

In plain English

Reliably catches: SSNs and credit-card numbers (100%), leaked and credentials (~80%), risky URLs (~77%). Ordinary text never flags.

Harder, and improved: novel attacks. Pattern matching alone caught about 1 in 20 unseen attacks. Since 2026-11-03 a semantic review stage runs behind the patterns on the API (v2), and on the same external hold-out it catches about 4 in 5 — 37 of 171 unseen attacks still get through, so it is a stronger layer, not a solved problem.

When to rely on Agent-Shield today: as a fast pre-filter for secrets, PII, and known-bad URLs in agent traffic, plus semantic review of novel injection on v2 scans. When not to: as your only defense against prompt injection.

Headline numbers — engine: heuristic_v5 (2026-10-14, fifth iteration)

58.8%
— attacks caught
89.2%
Precision — flags that were real
18.8%
rate
41.3%
False-negative rate

465 samples · 0 API errors · ~0.64s median scan latency

External hold-out set — the number that actually matters

Our 465-sample set was written by our own team, which means tuning against it inflates recall (Claude's authorship-circularity warning). So we built a second set from external corpora the detector never saw: deepset/prompt-injections, HackAPrompt, TensorTrust, BIPIA, and gitleaks fixtures — 211 samples, sampled blind, labels from the sources.

4.7%
Recall on unseen attacks
100%
Precision — zero false positives
0.0%
False-positive rate (40/40 benign clean)
SourceSamplesCaught
deepset/prompt-injections10043 (all 40 benign + 3 attacks)
BIPIA (indirect injection)300
HackAPrompt (extraction)370
TensorTrust (hijacking)402
gitleaks fixtures43

The gap between 59% (our own samples) and 4.7% (unseen attacks) is the overfitting this page exists to prevent. A heuristic pattern-matcher cannot do semantic injection detection — this is the true baseline the Tev1 decision-model layer must beat, on this same hold-out set. We will not tune the heuristics against these samples.

Update, 2026-11-03: the production pipeline has now been run against this same hold-out with the semantic review stage live — same 211 samples, same scoring rule. Results in the next card.

Semantic review — live since 2026-11-03

The heuristics still run first, exactly as measured above. On /v2/scan, every payload they pass as clean — or find only borderline — is then reviewed by a semantic model (Meta Model API, Muse Spark 1.3) that judges injection intent instead of matching patterns. It can only escalate a verdict, never downgrade one, and its spend is capped in code (a $120 hard stop; at the cap the stage switches itself off and scans fall back to heuristics only). The stage is live in production. It does not run on /v1 — v1 still returns heuristic-only verdicts.

Same 211-sample external hold-out, same scoring rule (malicious or suspicious counts as a catch), re-run 2026-11-03. The heuristic-only baseline reproduced exactly (4.7%) in the same run before the semantic stage was applied.

78.4%
Recall on unseen attacks — was 4.7%
100%
Precision — zero false positives, unchanged
0.0%
False-positive rate (40/40 benign clean), unchanged
SourceMalicious samplesCaught — heuristics onlyCaught — with semantic review
deepset/prompt-injections60347
BIPIA (indirect injection)30023
HackAPrompt (extraction)37025
TensorTrust (hijacking)40236
gitleaks fixtures433
Total1718134

37 unseen attacks still get through — mostly short fragments whose intent is genuinely thin out of context. 78.4% is a better layer, not a guarantee: a clean result still means no known-bad patterns detected, now with a semantic second look on v2. We will not tune against these samples either.

— 62% recall on unseen variants

Same honesty, different attack class. Our SSRF detector scored 77% on our own dev set — so we built a 200-sample blind set from public SSRF literature the detector never saw: cloud metadata, loopback, private ranges, link-local, encoding tricks, DNS-based, redirect-based, plus 30 benign controls. Run once against the frozen live engine on 2026-10-12. We will not tune against these samples.

62.4%
Recall on unseen SSRF variants (106/170)
13.3%
False-positive rate (4/30 benign flagged)
CategorySamplesRecall
Link-local15100%
Private ranges30100%
Loopback2580%
Cloud metadata3073%
Encoding tricks3047%
DNS-based2025%
Redirect-based200%

The misses cluster exactly on our published known limitations: no redirect-hop validation, no internal-DNS classification, partial encoding coverage. The 0% on redirects is the honest baseline — it is our top engineering priority, and the nightly review loop is now targeting the DNS and encoding gaps. Core IP classification (link-local, private, loopback) generalizes well.

Iteration history — published, not cherry-picked

EngineRecallPrecisionFPRWhat changed
heuristic_v130.8%86.6%12.7%Baseline: narrow phrase patterns
heuristic_v252.9%90.7%14.3%Paraphrase families, base64 decode, defang normalization, placeholder allowlist
heuristic_v358.7%89.9%17.5%Encoding normalization (hex/ROT13/homoglyph/leet/reversed), jailbreak-persona signals
heuristic_v458.8%89.2%18.8%Hex/octal/decimal IP literals, de-JSON fragment joining; +5 Claude adversarial cases
heuristic_v558.8%89.2%18.8%Current: KV write trim (5→3/scan), probe-pattern guards; detection unchanged from v4

Five iterations, and recall has converged near 59% while the false-positive rate keeps climbing — the heuristic wall, confirmed. Further tuning against our own samples would manufacture numbers, not earn them (see authorship circularity note). The semantic gap is what the Tev1 decision-model layer is being built to close.

Per-category results

CategorySamplesCorrectMiss rate
Direct prompt injection502354%
Indirect injection (hidden in content)503530%
Encoded / obfuscated injection401075%
Role spoofing401660%
System-prompt extraction attempts401368%
Secrets exposure (AWS/GitHub/PEM)403220%
PII exposure (SSN / cards)40400%
SSRF-risk URLs302323%
Benign — normal text60600% FP
Benign — tricky edge cases604525% FP
Panel adversarial cases10730%

What the numbers actually say

Representative misses

False negatives (attacks scored clean): paraphrased instruction overrides, HTML-comment hidden instructions, defanged SSRF URLs, debugging-framed credential exfiltration.

False positives (benign text flagged): threat-briefing quotes of known attacks, README PEM examples, test fixtures containing AWS documentation placeholder keys.

Methodology

Coverage vs OWASP LLM Top 10 (2025)

Where this scanner honestly sits against the OWASP Top 10 for LLM Applications. Every category is accounted for — including the four we do not cover at all. "Partial" means partial; the notes say exactly where the boundary is.

CategoryCoverageWhat that means here
LLM01 Covered — pre-filterDeterministic pattern scanning of prompts, tool outputs, and fetched content before an agent acts. The published numbers above are the coverage: strong on known patterns; on novel injection the heuristics alone reach 4.7% on the external hold-out, and the semantic review stage live on v2 since 2026-11-03 raises that to 78.4% on the same set. A pre-filter, not a guarantee.
LLM02 Sensitive Information DisclosureCoveredThe secrets and PII score classes: SSNs and Luhn-valid card numbers (40/40 on the dev set), AWS/GitHub/PEM credential patterns (~80%). See per-category results above.
LLM03 Supply ChainNot coveredAgent-Shield does not audit models, datasets, plugins, or software dependencies.
LLM04 Data and Model PoisoningNot coveredWe scan content at runtime; we do not validate training data or model integrity.
LLM05 Improper Output HandlingPartialOutputs are covered when the integration scans both ways — this site's chat and panel scan model replies before returning them, and the Protocol defines that as conformance Level 2. Whether a given deployment scans outputs is the integrator's choice.
LLM06 Excessive AgencyPartialEnforce mode returns block / review / allow verdicts an agent host can gate tool actions on. Agent-Shield does not execute or sandbox tools itself — the host enforces the verdict.
LLM07 System Prompt LeakagePartialSystem-prompt extraction attempts are a pattern class inside the injection detector — on the dev set that category caught 13 of 40. Novel extraction phrasing carries the same limits as LLM01.
LLM08 Vector and Embedding WeaknessesNot coveredThere is no vector store or embedding component in Agent-Shield.
LLM09 MisinformationNot coveredWe check content against threat patterns, not against the truth.
LLM10 Unbounded ConsumptionPartialPer-key daily quotas and rate limits cap scan volume (over-limit requests get HTTP 429 and are never billed). That bounds consumption of this service — not your own model spend.

Machine-readable version of the numbers behind this table: /benchmarks.json.

The same OWASP mapping, a MITRE ATLAS mapping, our data-handling posture, and the compliance roadmap live on /security.

What this means for the roadmap

heuristic_v5 is a deterministic pre-filter, not a semantic classifier — and these numbers are the honest baseline it sets. Five iterations took recall from 30.8% to 58.8%, but the false-positive rate climbed from 12.7% to 18.8%: the heuristic wall, confirmed. The semantic gap (injection intent under paraphrase and adversarial context) is what the Tev1 decision-model layer — a small language model trained to judge intent, now in calibration — is being built to close. The next benchmark will run all 676 samples against heuristic_v5 + Tev1 and publish the delta.