Skip to main content

agent-security-bench

Open bench for evaluating AI coding agents on ML-oriented work: correctness, tool safety, prompt injection, and jailbreak resistance — with machine-readable receipts.

Related: persian-llm-reference

validate

Why this exists

Frontier teams and serious builders need a shared way to score what coding agents produce on machine-learning tasks — and to probe whether agents respect tool boundaries under adversarial prompts. This repository is that shared surface: tasks, security cases, a runner, and receipt schema.

What you get

Piece Purpose
tasks/ml/ 10 ML-flavored coding tasks
security/suites/ Core + extended agent-security suites
schema/ JSON Schema for evaluation receipts
src/agent_security_bench/ CLI: list, score, security, batch, validate-receipt
mcp/ Minimal MCP-style fixture server for tool-use tests
examples/ Clean/failing agent logs and sample submissions

See INDEX.md for the full task table.

Quick start

python -m venv .venv && source .venv/bin/activate
pip install -e .
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/core_v1.json \
  --agent-log examples/agent_logs/core_v1_clean.json \
  --out receipts/s_core.json
asb validate-receipt --receipt receipts/t01.json

Failing security example (expect rejected):

asb security \
  --suite security/suites/core_v1.json \
  --agent-log examples/agent_logs/core_v1_failing.json \
  --out receipts/s_core_fail.json

Receipt law

Every scored run emits a receipt: task/suite id, scores, checks passed/failed, 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 lines: tools/list, tools/call for list_dir + read_file only

Status

Public v0.2.0 — 10 ML tasks, 2 security suites, CI, receipt schema. Cite with CITATION.cff.

Author

Sina Kazemnezhad — github.com/sinakazemnezhad

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_security_bench-0.2.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_security_bench-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file agent_security_bench-0.2.0.tar.gz.

File metadata

  • Download URL: agent_security_bench-0.2.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_security_bench-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1223dea93eb726dd013abd9f5bdc30092444e9dba61b4e4ec1db1bc812bb2b86
MD5 003e0321a6adde5438d14651f79ef6e4
BLAKE2b-256 543ae94469eefe7c9c3aaf1887bdfa3ada6ba351ab5d343c2035f2bd5ea40f0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_security_bench-0.2.0.tar.gz:

Publisher: publish-pypi.yml on sinakazemnezhad/agent-security-bench

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_security_bench-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_security_bench-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 542e0a3fa9c9525e2a1f03a042aa7fa84d791fae7af9df53e43fb09529ad41be
MD5 d534bf96b5b881c8f32e24dd6abc2eb4
BLAKE2b-256 85a3be2e4f5405fdff3b20c7d64bb3379b2e08eb5d903169334473b2cfe1252a

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_security_bench-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on sinakazemnezhad/agent-security-bench

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page