Agentic-Threat-Auditor

mcp
Security Audit
Warn
Health Warn
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

OWASP Agentic Threat Auditor (OATA) - Dynamic penetration testing & excessive agency (LLM08) auditing toolkit for multi-hop AI agents across LangChain, CrewAI, AutoGen, and Model Context Protocol (MCP) ecosystems.

README.md

OWASP Agentic Threat Auditor (OATA)

OWASP Incubator
License: Apache 2.0
Classification: Breaker
CI
Python Version
OWASP Slack

Dynamic Penetration Testing & Excessive Agency Auditing Toolkit for Multi-Hop AI Agents

Targeting LangChain, LangGraph, CrewAI, AutoGen, and Model Context Protocol (MCP) ecosystems.


Quick Links


Overview

The OWASP Agentic Threat Auditor (OATA) is an open-source, dynamic penetration testing and red teaming toolkit designed to audit autonomous AI agents for Excessive Agency (OWASP LLM08), parameter mutation bypasses, and Layer 7 lateral delegation escalation.

While static code analysis (SAST) tools inspect source code syntax, OATA dynamically interacts with agentic runtime middleware. It acts as an automated Red Team, executing mutated cognitive payloads against live tool-calling interfaces to verify whether an agent's execution boundaries remain isolated from untrusted user prompts.

Key Capabilities

  • 🎯 Dynamic Middleware Fuzzing: Probes live tool dispatch loops for parameter injection and type confusion.
  • 🛡️ Safe Local Containment: Defaults strictly to localhost and local mock environments to prevent unintended outbound execution.
  • 🧩 Pluggable Framework Adapters: Native drivers for LangChain, LangGraph, CrewAI, AutoGen, and Model Context Protocol (MCP) servers.
  • 📊 Standardized Reporting: Emits terminal markdown tables, JSON dumps, and SARIF v2.1.0 for direct GitHub Code Scanning integration.
  • 🔧 Remediation Architecture: Automatically generates reachability hardening policies mapped to open standards (such as Creduent Delegation Tokens / CDT).

Why Agentic Penetration Testing Matters

Autonomous agents execute multi-step reasoning loops with access to system shells, databases, file APIs, and network egress. Traditional perimeter and API defenses fail when the threat model shifts from input parsing to ambient cognitive authority.

2026 Threat Telemetry:

  • 78% of enterprise multi-agent deployments grant unbounded tool permissions with no runtime scope attenuation.
  • 42% of multi-agent delegation chains allow low-privileged agents to invoke high-privileged tools via lateral handoffs.
  • 3.2x increase in agentic CVEs and prompt-injection-to-RCE reports across Q1 2026.

The Problem Space

Active Threats (2026)

Threat Impact Real-World Vector
Agentic RCE via Indirect Injection Remote code execution via unsanitized tool parameters CVE-2025-59536 / CVE-2025-21852
WebSocket / Protocol Hijacking Arbitrary tool execution over persistent agent communication sockets CVE-2026-28363
Lateral Cross-Agent Scope Escalation Low-tier research agent triggering high-tier financial execution tools Multi-agent delegation failure
MCP Tool Reflection Poisoning Unauthorized tool invocation via unauthenticated stdio/SSE endpoints Unbounded tool registry mutation
Ambient Context Bleed Memory poisoning forcing deferred tool dispatch on subsequent user sessions Persistent scratchpad contamination

The Lethal Trifecta in Autonomous Agents

An autonomous agent deployment presents critical security risk when three conditions converge:

  1. Ambient Authority: The agent possesses persistent credentials or tools capable of modifying system state.
  2. Untrusted Input Ingestion: The agent processes untrusted external instructions (user prompts, emails, web content).
  3. Unbounded Execution Loop: The middleware executes tool calls without per-action cryptographic attenuation or human-in-the-loop validation.

OATA dynamically stress-tests this trifecta to identify vulnerabilities before deployment.


The 5 Core Attack Vectors

# Attack Vector Severity Target Layer Primary Audit Mechanism
AT-01 Excessive Tool Agency Critical Tool Execution Layer Automated boundary probing via indirect prompt overrides (OWASP LLM08).
AT-02 Multi-Hop Lateral Escalation Critical Delegation Middleware Attenuation failure verification across Agent-to-Agent task handoffs.
AT-03 Tool Parameter Injection High Argument Parsing Schema Boundary mutation, type confusion, shell injection, and path traversal in parameters.
AT-04 Context Bleed & Memory Poisoning High Conversational Scratchpad Injecting persistent instructions into agent memory to trigger deferred actions.
AT-05 MCP Tool Reflection Hijacking High MCP Protocol (stdio/SSE) Probing unauthorized tool reflection and schema mutation on MCP servers.

Quickstart

Installation

Clone the repository and install the package in editable mode:

git clone https://github.com/OWASP/Agentic-Threat-Auditor.git
cd Agentic-Threat-Auditor
pip install -e .

Verify the installation:

oata version

1. Instant Demo (Zero Dependencies)

Run an immediate local evaluation against the built-in mock agent:

oata demo

Output highlights excessive agency violations in terminal tables:

OWASP AGENTIC THREAT AUDITOR (OATA)  v0.1-Alpha
Target: MockVulnerableAgent (mock://localhost)

Identified Excessive Agency & Safety Violations:
- OATA-VEC-02A (CRITICAL): Unbounded Scope Escalation via exec_shell
- OATA-VEC-01A (HIGH): Tool Parameter Path Traversal Mutation
- OATA-VEC-03A (HIGH): Context Boundary Bleed & Credential Query Override

Audit Execution Summary:
- Vectors Tested: 3
- Failed (Vulnerable): 3
- Critical Severity: 1
- High Severity: 2

Export results directly to SARIF v2.1.0 for GitHub Code Scanning:

oata demo --format sarif --output oata-report.sarif

2. Inspect Available Payloads

View registered offensive vectors, their severity, and threat taxonomy:

# Core Phase 1 suite
oata list-payloads

# Full suite including SSRF and credential exfiltration probes
oata list-payloads --all

3. Audit a Live Agent Endpoint or Offline Trace

Audit a local HTTP or /v1/chat/completions endpoint (protected by the Safe Local Target Guard) or an offline execution trace:

# 1. Start the built-in vulnerable live agent server (Terminal 1)
python examples/live_agent_server.py

# 2. Audit the live /v1/chat/completions endpoint with the full payload suite (Terminal 2)
oata audit --target http://127.0.0.1:8000/v1/chat/completions --adapter http --profile full --concurrency 5

# Audit a generic REST agent endpoint with custom auth header and Markdown output
oata audit --target http://127.0.0.1:8000/chat --adapter http -H "Authorization: Bearer token" -f markdown

# Audit an offline interaction trace JSON file
oata audit --target ./examples/sample_trace.json --adapter trace --format sarif --output trace_audit.sarif

Getting Started

For AppSec & Red Teams

  1. Review Attack Vectors: Read the AT-01 through AT-05 attack specifications.
  2. Execute Baseline Scans: Test agentic middleware endpoints in staging environments.
  3. Export SARIF Reports: Integrate scan output with GitHub Advanced Security or OWASP DefectDojo.
  4. Enforce Safety Gates: Break CI/CD builds if critical excessive agency vectors are detected.

For Agent Developers & Framework Engineers

  1. Run Local Testbeds: Validate tool execution boundaries locally before releasing agents.
  2. Implement Scope Attenuation: Ensure delegated sub-agents cannot inherit parent tool credentials.
  3. Sanitize Tool Schemas: Restrict parameter schemas with strict type validation and regex boundaries.
  4. Adopt Open Delegation Standards: Review Creduent Delegation Token (CDT) patterns for cryptographic capability restriction.

For Enterprise DevSecOps & GRC

  1. Map Compliance Controls: Map OATA findings directly to OWASP LLM08, NIST AI RMF, and ISO 42001.
  2. Continuous Regression Testing: Automate periodic audits against deployed agent endpoints.
  3. Inventory Tool Permissions: Catalog and restrict high-risk tools (shell, database_drop, wire_transfer).

Project Roadmap (Year 1)

OATA follows the 4-phase milestone schedule approved under OWASP Incubation Application PPS-157:

Phase Timeline Status Core Focus Key Deliverables
Phase 1 Months 1-3 🔄 In Progress Foundation & Core Architecture Core CLI (oata), safe target guard, base payloads, mock testbed agent, v0.1-Alpha release.
Phase 2 Months 4-6 📋 Planned Multi-Hop Adapters & Fuzzing Native adapters (LangChain, CrewAI), parameter fuzzing engine, MCP tool auditor, v1.0-Beta release.
Phase 3 Months 7-9 📋 Planned Remediation & Ecosystem Automated remediation mapping (Creduent CDT), OWASP DefectDojo integration, AutoGen adapter.
Phase 4 Months 10-12 📋 Planned CI/CD & Lab Graduation Official GitHub Action (owasp/oata-action), Docker distribution, enterprise case studies, OWASP Lab application.

Contributing & Governance

OWASP Agentic Threat Auditor is an official, vendor-neutral open-source project stewarded under the OWASP Foundation:


License

This project is licensed under the Apache License 2.0.

Reviews (0)

No results found