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.
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.
465 samples · 0 API errors · ~0.64s median scan latency
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.
| Source | Samples | Caught |
|---|---|---|
| deepset/prompt-injections | 100 | 43 (all 40 benign + 3 attacks) |
| BIPIA (indirect injection) | 30 | 0 |
| HackAPrompt (extraction) | 37 | 0 |
| TensorTrust (hijacking) | 40 | 2 |
| gitleaks fixtures | 4 | 3 |
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.
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.
| Source | Malicious samples | Caught — heuristics only | Caught — with semantic review |
|---|---|---|---|
| deepset/prompt-injections | 60 | 3 | 47 |
| BIPIA (indirect injection) | 30 | 0 | 23 |
| HackAPrompt (extraction) | 37 | 0 | 25 |
| TensorTrust (hijacking) | 40 | 2 | 36 |
| gitleaks fixtures | 4 | 3 | 3 |
| Total | 171 | 8 | 134 |
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.
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.
| Category | Samples | Recall |
|---|---|---|
| Link-local | 15 | 100% |
| Private ranges | 30 | 100% |
| Loopback | 25 | 80% |
| Cloud metadata | 30 | 73% |
| Encoding tricks | 30 | 47% |
| DNS-based | 20 | 25% |
| Redirect-based | 20 | 0% |
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.
| Engine | Recall | Precision | FPR | What changed |
|---|---|---|---|---|
| heuristic_v1 | 30.8% | 86.6% | 12.7% | Baseline: narrow phrase patterns |
| heuristic_v2 | 52.9% | 90.7% | 14.3% | Paraphrase families, base64 decode, defang normalization, placeholder allowlist |
| heuristic_v3 | 58.7% | 89.9% | 17.5% | Encoding normalization (hex/ROT13/homoglyph/leet/reversed), jailbreak-persona signals |
| heuristic_v4 | 58.8% | 89.2% | 18.8% | Hex/octal/decimal IP literals, de-JSON fragment joining; +5 Claude adversarial cases |
| heuristic_v5 | 58.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.
| Category | Samples | Correct | Miss rate |
|---|---|---|---|
| Direct prompt injection | 50 | 23 | 54% |
| Indirect injection (hidden in content) | 50 | 35 | 30% |
| Encoded / obfuscated injection | 40 | 10 | 75% |
| Role spoofing | 40 | 16 | 60% |
| System-prompt extraction attempts | 40 | 13 | 68% |
| Secrets exposure (AWS/GitHub/PEM) | 40 | 32 | 20% |
| PII exposure (SSN / cards) | 40 | 40 | 0% |
| SSRF-risk URLs | 30 | 23 | 23% |
| Benign — normal text | 60 | 60 | 0% FP |
| Benign — tricky edge cases | 60 | 45 | 25% FP |
| Panel adversarial cases | 10 | 7 | 30% |
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.
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.
| Category | Coverage | What that means here |
|---|---|---|
| LLM01 | Covered — pre-filter | Deterministic 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 Disclosure | Covered | The 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 Chain | Not covered | Agent-Shield does not audit models, datasets, plugins, or software dependencies. |
| LLM04 Data and Model Poisoning | Not covered | We scan content at runtime; we do not validate training data or model integrity. |
| LLM05 Improper Output Handling | Partial | Outputs 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 Agency | Partial | Enforce 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 Leakage | Partial | System-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 Weaknesses | Not covered | There is no vector store or embedding component in Agent-Shield. |
| LLM09 Misinformation | Not covered | We check content against threat patterns, not against the truth. |
| LLM10 Unbounded Consumption | Partial | Per-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.
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.