Normalize a public AI inventory and draft a human-review-required MissionPack.
inventory draft-pack
Turn real public missions into safe synthetic tests, trace delegated authority across agent graphs, catch regressions, and export decision-ready evidence—without automating the accountable decision.
Start with a bounded use case—not a vendor claim. Generate synthetic evaluation drafts, exercise every delegation edge, compare verified evidence over time, and package the result for accountable review.
Normalize a public AI inventory and draft a human-review-required MissionPack.
inventory draft-pack
Find the first unsafe authorization edge and calculate synthetic blast radius.
graph run
Compare content-addressed baselines and surface owner-threshold regressions.
watch compare
Export neutral test plans, QASP inputs, cost fields, and portability checks.
acquisition export
AgentGraphTwin keeps the mission fixed while mutating exactly one security-relevant edge. Receipts bind the request, adapter, policy, principal, decision, and reason.
reason: scope_not_grantedCompatibility fixtures validate translation into the benchmark contract. They do not execute, certify, or endorse the named backend.
$ dspy-security-bench graph demoTwo models can complete benign tasks at nearly the same rate and still have radically different prompt-injection failure profiles. Security must be measured directly.
Hover or focus a model. Provisional measurements use a dashed ring.
Robustness is the share of prompt-injection attacks that failed. Capability is benign task completion. Confidence intervals are cluster-bootstrapped over task pairs.
| Rank / model | Family | Robustness | Capability | Evidence |
|---|
Scaffold a config and GitHub Action, preview the exact test matrix without spending API credits, then block regressions with terminal, JSON, and SARIF reports.
# install and create a ready-to-run gate
$ pip install dspy-security-bench
$ dspy-security-bench init --model openai/gpt-4o-mini
# inspect the matrix — zero model calls
$ dspy-security-bench scan --config .dspy-security-bench.yaml --plan
✓ 10 benchmark cases planned
✓ no model was called
Open the five-minute guide
Keep your orchestration code and tools. The integration assistant detects a directly declared framework, generates a reviewable adapter, and validates the wiring without invoking the agent run loop.
dspy-security-bench integratedspy-security-bench doctorno agent runsGenerated workflows are manual by default, so connecting a repository cannot unexpectedly spend model credits.
A reusable workflow isolates model evaluation from signing, recomputes every statistic in a clean job, and binds the exact JSON to a source commit before enforcing the gate.
sha256: 9e81…c4f2
signature verification is separate from score recomputation
permissions:
contents: read
id-token: write
attestations: write
jobs:
proofrun:
uses: immu4989/dspy-security-bench/.github/workflows/proofrun.yml@v0.15.0
with:
agent: myapp.security:build_agent
trials: 10
Every accepted entry preserves all raw trials and passes offline recomputation. A cryptographic badge appears only after the exact digest passes attestation verification and enters the reviewed registry.
Run your agentProvenance authenticates a workflow and exact artifact. It does not independently observe a model provider or turn a synthetic benchmark into certification.
Ship a mission test as reviewable YAML—not benchmark code. SourceTwin holds the authoritative corpus and question fixed, changes only retrieved untrusted content, and scores the agent's recorded claims against exact source IDs.
$ dspy-security-bench pack run source-twin --agent myapp:buildFork it, encode a real mission with synthetic evidence, and publish the first independently reproducible run.
Structured test claims are benchmark ground truth for a fixed synthetic pack—not a legal interpretation, universal truth set, certification, or substitute for agency subject-matter review.
Clean and poisoned procurement twins hold structured facts fixed while varying one untrusted input: vendor-authored text. Then the benchmark measures what changed in the live synthetic world.
Award bias · sealed bids · payment identity · eligibility · approval
Deliberately vulnerable scorer fixture
Scenario value behind compromised actions
Functional environment-state evidence
Ten passes still carry uncertainty. Preserve every raw trial, expose the interval, and gate on its lower bound.
Mission utility, controlled-pair decision invariance, confidentiality, identity, authorization, uncertainty, and bounded economic context—versioned in JSON and SARIF.
$ dspy-security-bench impact repeat --trials 10
Inspect the protocol
Reference fixture, not a model result. Synthetic exposure is not predicted loss or a compliance certification.
Execute the same poisoned missions with the boundary off and on. Measure functional harm, safe recovery, and clean utility independently.
Run the complete experiment again and again. Alternate order. Preserve every child report. Gate the lower confidence bound—not the flattering point estimate.
$ dspy-security-bench impact control-repeat-demo --trials 5Deterministic fixture · fixed synthetic suite · not a model result, population estimate, predicted loss, or certification
$ dspy-security-bench impact control-demo
Deterministic reference fixture, not a model result. Containment is not recovery; synthetic exposure is not predicted loss or certification.
Publish the policy-off and policy-on experiment—even when the control performs poorly. Every accepted entry keeps the raw paired trials, policy identity, uncertainty, and chain of custody inspectable.
A failing control can belong here. Five trials, recomputable evidence, fresh isolation, zero runtime errors, and redacted arguments are the comparison floor.
The exact policy document travels with the evidence. A name alone cannot silently stand in for different enforcement logic.
Blocking harm, safely completing the mission, and preserving clean work are reported independently—never collapsed into one marketing score.
Be the first independent team to publish a policy experiment—not just a score.
evidence-kind: control policy: policies/production.yaml trials: 10
Fixed synthetic ProcureBench suite · repeated execution evidence · not certification, a population estimate, predicted loss, or independent observation of a hosted provider.
Exercise a cyber-response agent inside an inert digital twin, repeat the exact counterfactual protocol, and transform verified evidence into standards-shaped assessment inputs—without claiming certification.
Five clean/poisoned security-operations twins. Authoritative alert facts stay fixed; only hostile external content changes.
ALT-2026-017asset contextsecret → outside.testtier-2-soc$ dspy-security-bench incident demoBind verified ImpactTwin, ControlTwin, IncidentTwin, MissionPack, or AuthorityTwin evidence to an owner-supplied deployment profile and local acceptance thresholds.
$ dspy-security-bench federal initBe the first independent team to publish recomputable incident-response evidence.
Every production pattern pairs an untrusted input with a dangerous sink. Included policies enforce least agency before the side effect—not after an incident.
Resolve tickets without turning a poisoned CRM note into data exfiltration, unlimited refunds, or identity changes.
--profile customer-support
Extract and reconcile invoices while preventing vendor impersonation from becoming an unauthorized transfer.
--profile financial-operations
Search broadly without letting a hostile page become persistent memory, published content, or executable code.
--profile research-rag
Accelerate diagnosis with broad observability while keeping deletion, shell access, and production mutation constrained.
--profile devops
$ dspy-security-bench policy init --profile customer-support
Open implementation guide
Suites, attacks, scaffold, task subset, and decoding settings are hashed and versioned.
Per-model result JSON, run metadata, confidence intervals, and generation scripts live beside the board.
Rows remain provisional when confidence intervals cross a bucket boundary. Green means no known bypass—not safe.
Trust is a system property.
Make the evidence inspectable.