{
  "service": "Agent-Shield",
  "analyzer": {
    "id": "heuristic_v5",
    "version": "v5",
    "note": "Fifth iteration (2026-10-14); deterministic pattern engine. Since 2026-11-03, /v2/scan adds a semantic review stage behind it (see semantic_stage); /v1 remains heuristic-only."
  },
  "semantic_stage": {
    "status": "live",
    "live_since": "2026-11-03",
    "scope": "/v2/scan only",
    "provider": "Meta Model API",
    "model": "muse-spark-1.3",
    "runs_on": "Payloads the heuristic stage scores clean or borderline (clean or suspicious verdicts).",
    "merge_rule": "Escalate-only: the stage can raise a verdict to suspicious or malicious; it can never downgrade one.",
    "spend_control": "In-code cumulative hard stop at $120; at the cap the stage disables itself and scans fall back to heuristic-only."
  },
  "generated_from": "https://agent-shield.startekenterprises.com/benchmarks",
  "links": {
    "benchmarks_page": "https://agent-shield.startekenterprises.com/benchmarks",
    "protocol": "https://agent-shield.startekenterprises.com/protocol",
    "openapi": "https://agent-shield.startekenterprises.com/openapi.yaml"
  },
  "datasets": [
    {
      "name": "Labeled dev set",
      "type": "regression",
      "samples": 465,
      "malicious_samples": 339,
      "benign_samples": 126,
      "recall": 0.588,
      "precision": 0.892,
      "false_positive_rate": 0.188,
      "false_negative_rate": 0.413,
      "run_date": "2026-10-07",
      "notes": "465 labeled samples run against the live production engine; 0 API errors, ~0.64s median scan latency. Written by our own team — tuning against it inflates recall (authorship circularity), which is why the external hold-out exists. Per-sample results published as CSV at /benchmarks/dev-samples.csv."
    },
    {
      "name": "External hold-out set",
      "type": "external holdout",
      "samples": 211,
      "malicious_samples": 171,
      "benign_samples": 40,
      "recall": 0.047,
      "precision": 1,
      "false_positive_rate": 0,
      "notes": "External corpora the detector never saw: deepset/prompt-injections (100), BIPIA (30), HackAPrompt (37), TensorTrust (40), gitleaks fixtures (4); labels from the sources. Zero false positives (40/40 benign clean). Kept private so it stays honest; never used for tuning. Published with the benchmarks page on 2026-10-07. Heuristic-only run — this remains the /v1 result; for the production /v2 pipeline with semantic review, see the 2026-11-03 entry below."
    },
    {
      "name": "External hold-out set — with semantic review",
      "type": "external holdout",
      "samples": 211,
      "malicious_samples": 171,
      "benign_samples": 40,
      "recall": 0.784,
      "precision": 1,
      "false_positive_rate": 0,
      "run_date": "2026-11-03",
      "notes": "Identical 211 samples and scoring rule as the heuristic-only hold-out above, re-run 2026-11-03 against the production pipeline with the semantic review stage live (Meta Model API, Muse Spark 1.3, /v2/scan only, escalate-only merge). The heuristic baseline reproduced exactly (recall 0.047) in the same run before the stage was applied. True positives 134 of 171 (was 8); false negatives 37 (was 163); zero false positives (40/40 benign clean). Malicious caught per source: deepset 47/60 (was 3 of 60), BIPIA 23/30 (was 0), HackAPrompt 25/37 (was 0), TensorTrust 36/40 (was 2), gitleaks fixtures 3/4 (was 3)."
    },
    {
      "name": "SSRF blind hold-out",
      "type": "blind holdout",
      "samples": 200,
      "malicious_samples": 170,
      "benign_samples": 30,
      "recall": 0.624,
      "false_positive_rate": 0.133,
      "run_date": "2026-10-12",
      "notes": "Blind set built from public SSRF literature (cloud metadata, loopback, private ranges, link-local, encoding tricks, DNS-based, redirect-based) plus 30 benign controls. Recall is 106/170 attacks caught; false-positive rate is 4/30 benign flagged. Run once against the frozen live engine; never used for tuning."
    }
  ]
}