Skip to main content
Part of the security infrastructure for AI agents

The benchmark for AI agent security.

222 standardized attack scenarios that evaluate whether a runtime security tool can detect and respond to threats against AI agents. Three maturity levels. Mapped to MITRE ATLAS and OWASP Agentic Top 10. Open specification, open test corpus.

$npx hackmyagent secure -b oasb-1
222
Attack scenarios
15
MITRE ATLAS techniques
10
Test categories
3
Maturity levels

What is OASB

OASB evaluates security products, not agents. It answers a specific question. Can your runtime security tool detect and block attacks against AI agents. This is the same concept as MITRE ATT&CK Evaluations, which test endpoint security products against known adversary techniques. Applied to AI.

 OASBHackMyAgent
PurposeEvaluate security productsPentest agents
AnalogyMITRE ATT&CK EvaluationsOWASP ZAP
TargetRuntime security toolsAI agents themselves
OutputDetection rate scorecardVulnerability report

Three maturity levels

Pick the level your project needs to clear. L1 is the floor for any project shipping to production. L2 is the standard for customer facing AI agents. L3 is for regulated, high stakes, or autonomous fleet deployments.

L1

Essential

26 checks
Solo developers and prototypes

Baseline checks every AI agent project should pass before going to production. Credential hygiene, governance presence, basic identity.

  • Credential and secret detection
  • SOUL.md governance file present
  • Cryptographic agent identity
  • Lock file and dependency hygiene
L2

Standard

44 checks
Production teams and SaaS

What a typical production AI agent deployment is expected to clear. Adds runtime monitoring, MCP validation, and trust scoring.

  • All L1 checks plus 18 additional controls
  • MCP server identity and tool call validation
  • Runtime behavior monitoring and anomaly detection
  • 9 factor trust scoring with audit trail
L3

Hardened

46 checks
Regulated, high stakes, or autonomous fleets

Full coverage for regulated workloads, autonomous fleets, and high stakes deployments. Adds capability enforcement and post quantum readiness.

  • All L2 checks plus 2 advanced controls
  • Capability enforcement with default deny policies
  • Post quantum signing readiness (ML-DSA)
  • Full A2A trust boundary validation

Numbers above mirror the HackMyAgent OASB profile counts: 26 essential, 44 standard, 46 hardened.

Ten assessment categories

OASB groups every test into one of ten categories that span the full attack surface of an AI agent. Identity, capability, input, output, credentials, supply chain, A2A, memory, operations, and monitoring.

Identity and provenance

Ed25519 and ML-DSA post quantum keypairs, ownership verification, agent bill of materials.

Capability and authorization

Capability based access control, just in time access grants, runtime enforcement.

Input security

164 adversarial payloads across 16 categories, runtime prompt interception, jailbreak detection.

Output security

Output validation, exfiltration detection, runtime output scanning for sensitive data.

Credential protection

57 credential patterns, MCP vault protection, context window isolation, scope drift analysis.

Supply chain integrity

Skill hash pinning, configuration signing, trust verification across npm, PyPI, and GitHub sources.

Agent to agent security

Mutual authentication, 10 A2A attack payloads, trust boundaries, federated identity.

Memory and context

Context manipulation testing, runtime memory isolation, conversation history hygiene.

Operational security

310 static checks across 69 categories, 29 NanoMind semantic checks, process, network, and filesystem monitoring.

Monitoring and response

9 factor trust scoring, behavioral anomaly detection, kill switch, audit trail with append only logs.

Test structure

Four kinds of tests cover discrete detection, multi step chains, false positive validation, and real OS level execution.

Atomic tests

144 tests

Discrete detection tests covering OS-level system calls and AI-layer attacks. Each test isolates a single technique for precise evaluation.

Integration tests

43 tests

Multi-step attack chains that combine techniques into realistic scenarios. Tests whether security tools detect coordinated threats.

Baseline tests

12 tests

False positive validation using benign operations. Ensures security products do not block legitimate agent behavior.

E2E tests

23 tests

Real OS level detection tests that execute actual system operations. Validates runtime interception capabilities.

MITRE ATLAS coverage

Every attack scenario maps to a MITRE ATLAS technique. OASB covers 15 techniques across the adversarial AI threat landscape. Defensive and capability tests are tracked separately.

Technique IDTechnique Name
AML.T0050Command and Scripting Interpreter
AML.T0105Escape to Host
AML.T0025Exfiltration via Cyber Means
AML.T0034.002Agentic Resource Consumption
AML.T0055Unsecured Credentials
AML.T0037Data from Local System
AML.T0081Modify AI Agent Configuration
AML.T0051LLM Prompt Injection
AML.T0054LLM Jailbreak
AML.T0057LLM Data Leakage
AML.T0053AI Agent Tool Invocation
AML.T0073Impersonation
AML.T0086Exfiltration via AI Agent Tool Invocation
AML.T0046Spamming AI System with Chaff Data
AML.T0015Evade AI Model

AI layer tests

40 tests target the AI specific attack surface. Prompt input and output scanning, MCP tool call validation, inter agent message inspection, and pattern coverage.

Prompt input scanning

11 tests

Tests whether the tool detects malicious instructions embedded in user prompts, system prompts, and injected context.

Prompt output scanning

6 tests

Tests whether the tool detects sensitive data, credential leakage, and unsafe content in model outputs.

MCP tool call scanning

11 tests

Tests whether the scanner validates tool calls for path traversal, command injection, SSRF, and allowlist bypass.

A2A message scanning

7 tests

Tests whether the tool inspects inter agent messages for identity spoofing, delegation abuse, and trust boundary violations.

Pattern coverage

5 tests

Tests that every shipped detection pattern fires on its known payload and stays quiet on benign input.

Run OASB through HackMyAgent

The reference implementation lives in HackMyAgent. One command runs the full OASB benchmark plus 310 static checks across 69 categories, 29 NanoMind semantic checks across 7 analyzers, and 164 adversarial payloads across 16 categories against your project.

Terminal
# Run the OASB Essential profile
$ npx hackmyagent secure -b oasb-1
# Standard profile, JSON output for CI
$ npx hackmyagent secure -b oasb-2 --ci --json
# Hardened profile against the OASB test corpus
$ npx hackmyagent secure -b oasb-3
# From the OpenA2A CLI wrapper
$ npx opena2a-cli benchmark

Run the spec directly

Prefer to run OASB without HackMyAgent. Clone the repository, install dependencies, and execute the benchmark against your own security tool.

Terminal
# Clone the repository
$ git clone https://github.com/opena2a-org/oasb.git
$ cd oasb
# Install dependencies
$ npm install
# Run all tests
$ opena2a benchmark run
# Run a specific category
$ opena2a benchmark run --category atomic
# Run a specific MITRE technique
$ opena2a benchmark run --technique AML.T0051

Benchmark your security tool

One command. Three maturity levels. Open specification, open test corpus, open results.

$npx hackmyagent secure -b oasb-1