Catalog PyPI
Back to packageRELEASE DETAILS

0.5.0

PyPI

agent-security-bench

Agent Security Evaluation Kit — score agent code and refuse unsafe tools, with receipts, AST checks, and live-trace adapters.

agent-securityevaljailbreakleaderboardllmmachine-learningmcpprompt-injectionreceiptsssrf
Published16 Aug 2026
Direct dependencies3
Transitive dependenciesNot calculated

README

Version 0.5.0 documentation

agent-security-bench

Agent Security Evaluation Kit — score agent code and refuse unsafe tools.

Deterministic evaluation for AI coding agents on ML-oriented work and agent-security policies (prompt injection, jailbreak, MCP/tool overreach, SSRF, multi-tenant isolation), with machine-readable receipts.

Related: persian-llm-reference

validate PyPI

One job: score what an agent produced, and prove whether it respected tool boundaries.

Why this exists

Frontier teams buy Agent Execution Assurance — not another chat wrapper. They need a shared way to:

  1. Score coding-agent artifacts on real ML failure modes (leakage, calibration, temporal splits, cache isolation).
  2. Regression-test tool policy under adversarial prompts (injection, confused deputy, SSRF args).
  3. Emit receipts that CI and buyers can verify — accepted only when required checks pass.

What you get (v0.5)

PiecePurpose
tasks/ml/23 ML / agent-runtime coding tasks
security/suites/Core, extended, and production suites with severity weights
schema/receipt-v1.jsonJSON Schema for evaluation receipts
src/agent_security_bench/AST + weighted checks, trace adapters, leaderboard batch
mcp/fixture_server.pyAllowlisted stdio tool server with path confinement
examples/Gold submissions, agent logs, live session traces
docs/DEMAND_MAP_2026.mdBuyer demand map → suite cases
tests/Engine + adapter unit tests

See INDEX.md for the full catalog. Demand → buyer map: docs/DEMAND_MAP_2026.md.

Money suite (ABCP twin)

money_v1 demo

Public scorecard: https://banking.noetfield.com/scorecard

Install

pip install -U agent-security-bench==0.5.0
asb selftest

From checkout:

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

Tasks/suites/schema ship inside the wheel. Override with ASB_ROOT only if you keep a custom data tree.

Five-minute score

asb list
asb score \
  --task tasks/ml/01_train_loop_bug.json \
  --submission examples/submissions/01_train_loop_bug.py \
  --out receipts/t01.json
asb security \
  --suite security/suites/production_v1 / money_v1.json \
  --agent-log examples/agent_logs/production_v1_clean.json \
  --out receipts/s_prod.json
asb validate-receipt --receipt receipts/t01.json
asb leaderboard --out-dir receipts/leaderboard

Terminal walkthrough script (no extra deps):

bash scripts/five_minute_score.sh

Quick start (extended)

asb catalog --out /tmp/asb-catalog.json
asb score-trace \
  --suite security/suites/core_v1.json \
  --trace examples/traces/mcp_session_pass.jsonl \
  --out receipts/trace_pass.json
asb selftest

Failing security example (expect rejected):

asb security \
  --suite security/suites/production_v1.json \
  --agent-log examples/agent_logs/production_v1_failing.json \
  --out receipts/s_prod_fail.json

Scoring model

  • Tasks: each check has required + weight. Any required failure → outcome=rejected. Receipts also report weighted_score.
  • Checks: string/regex, python_parses, AST predicates (ast_has_call, …).
  • Security: allowlists, exfil bans, SSRF must_not_call_with_arg_substr.
  • Traces: OpenAI-style / Anthropic tool_use / generic MCP JSONL → agent log → same suite scorer.
  • Leaderboard: task × agent matrix → leaderboard.json.

Receipt law

Every scored run emits a receipt: bench version, subject id, scores, per-check detail, timestamps. Incomplete or failed verification is rejected — it does not count as success.

See governance/METHODOLOGY.md and schema/receipt-v1.json.

MCP fixture

python mcp/fixture_server.py
# stdin/stdout JSON-RPC: initialize, tools/list, tools/call (list_dir + read_file only)

Status

Public v0.5.0 — Agent Security Evaluation Kit: wheel-bundled data, frontier task pack, live-trace adapter, leaderboard batch, demand map. Cite with CITATION.cff.

This kit does not train models, host GPUs, or replace a certified red team. It is a reproducible regression surface for agent evaluation and tool-policy scoring.

Author

Sina Kazemnezhad — github.com/sinakazemnezhad

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
jsonschema
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
jsonschema>=4.22runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest>=8.0; extra == "dev"runtime
build
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
build>=1.2; extra == "dev"runtime

Distribution files

2 collected
agent_security_bench-0.5.0-py3-none-any.whl

bdist_wheel · 49.88 KB · Python py3

Source file
agent_security_bench-0.5.0.tar.gz

sdist · 33.03 KB · Python source

Source file

Repository

PENDING
sinakazemnezhad/persian-llm-reference

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
sinakazemnezhad/agent-security-bench

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:19 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:6bfa2086348177057b01b559d02ef1663f22aab24bb2e46cf39af8ec09b2f014

Other collected versions

View all collected versions →