@x1pay/langchain
LangChain/LangGraph tools for AI agent x402 payments on X1
Crawler Summary
Static security scanner for LLM agents — prompt injection, MCP config auditing, taint analysis. 51 rules mapped to OWASP Agentic Top 10 (2026). Works with LangChain, CrewAI, AutoGen. $1 **Find security vulnerabilities in your AI agent code before they reach production.** $1 $1 $1 $1 $1 $1 $1 --- Why Agent Security Fails in Production AI agents are not just chatbots. They execute code, call tools, and touch real systems, so one unsafe input path can become a production incident. - Prompt injection rewrites agent intent through user-controlled context - Unsafe tool inputs can reach subprocess/eval Capability contract not published. No trust telemetry is available yet. 174 GitHub stars reported by the source. Last updated 5/31/2026.
Freshness
Last checked 5/31/2026
Best For
agent-audit is best for crewai, multi-agent workflows where OpenClaw compatibility matters.
Not Ideal For
Contract metadata is missing or unavailable for deterministic execution.
Evidence Sources Checked
editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack
Static security scanner for LLM agents — prompt injection, MCP config auditing, taint analysis. 51 rules mapped to OWASP Agentic Top 10 (2026). Works with LangChain, CrewAI, AutoGen. $1 **Find security vulnerabilities in your AI agent code before they reach production.** $1 $1 $1 $1 $1 $1 $1 --- Why Agent Security Fails in Production AI agents are not just chatbots. They execute code, call tools, and touch real systems, so one unsafe input path can become a production incident. - Prompt injection rewrites agent intent through user-controlled context - Unsafe tool inputs can reach subprocess/eval
Public facts
4
Change events
0
Artifacts
0
Freshness
May 31, 2026
Capability contract not published. No trust telemetry is available yet. 174 GitHub stars reported by the source. Last updated 5/31/2026.
Trust score
Unknown
Compatibility
OpenClaw
Freshness
May 31, 2026
Vendor
Headyzhang
Artifacts
0
Benchmarks
0
Last release
Unpublished
Key links, install path, and a quick operational read before the deeper crawl record.
Summary
Capability contract not published. No trust telemetry is available yet. 174 GitHub stars reported by the source. Last updated 5/31/2026.
Setup snapshot
git clone https://github.com/HeadyZhang/agent-audit.gitSetup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.
Vendor
Headyzhang
Protocol compatibility
OpenClaw
Adoption signal
174 GitHub stars
Handshake status
UNKNOWN
Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.
Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.
Extracted files
0
Examples
6
Snippets
0
Languages
python
bash
pip install agent-audit
bash
agent-audit scan ./your-agent-project
bash
# Show only high+ findings agent-audit scan . --severity high # Fail CI when high+ findings exist agent-audit scan . --fail-on high
text
╭──────────────────────────────────────────────────────────────────────────────╮
│ Agent Audit Security Report │
│ Scanned: ./your-agent-project │
│ Files analyzed: 2 │
│ Risk Score: 8.4/10 (HIGH) │
╰──────────────────────────────────────────────────────────────────────────────╯
BLOCK -- Tier 1 (Confidence >= 90%) -- 16 findings
AGENT-001: Command Injection via Unsanitized Input
Location: agent.py:21
Code: result = subprocess.run(command, shell=True, capture_output=True, text=True)
AGENT-010: System Prompt Injection Vector in User Input Path
Location: agent.py:13
Code: system_prompt = f"You are a helpful {user_role} assistant..."
AGENT-041: SQL Injection via String Interpolation
Location: agent.py:31
Code: cursor.execute(f"SELECT * FROM users WHERE name = '{query}'")
AGENT-031: Mcp Sensitive Env Exposure
Location: mcp_config.json:1
Code: env: {"API_KEY": "sk-a***"}
... and 15 more
Summary:
BLOCK: 16 | WARN: 2 | INFO: 1
Risk Score: =========================----- 8.4/10 (HIGH)bash
npx clawhub@latest install agent-audit-scanner
bash
# Scan a project agent-audit scan ./my-agent # JSON output for scripting agent-audit scan ./my-agent --format json # SARIF output for GitHub Code Scanning agent-audit scan . --format sarif --output results.sarif # Only fail CI on critical findings agent-audit scan . --fail-on critical # Inspect a live MCP server (read-only, never calls tools) agent-audit inspect stdio -- npx -y @modelcontextprotocol/server-filesystem /tmp
Full documentation captured from public sources, including the complete README when available.
Docs source
GITHUB OPENCLEW
Editorial quality
ready
Static security scanner for LLM agents — prompt injection, MCP config auditing, taint analysis. 51 rules mapped to OWASP Agentic Top 10 (2026). Works with LangChain, CrewAI, AutoGen. $1 **Find security vulnerabilities in your AI agent code before they reach production.** $1 $1 $1 $1 $1 $1 $1 --- Why Agent Security Fails in Production AI agents are not just chatbots. They execute code, call tools, and touch real systems, so one unsafe input path can become a production incident. - Prompt injection rewrites agent intent through user-controlled context - Unsafe tool inputs can reach subprocess/eval
Find security vulnerabilities in your AI agent code before they reach production.
AI agents are not just chatbots. They execute code, call tools, and touch real systems, so one unsafe input path can become a production incident.
subprocess/eval and become command executionIf your team ships agent features, owns CI security gates, or operates MCP servers and tool integrations, this is a high-probability risk surface rather than an edge case. You likely need this before every merge if agent code can trigger tools, commands, or external systems.
Agent Audit catches these issues before deployment with an analysis core designed for agent workflows today: tool-boundary taint tracking, MCP configuration auditing, and semantic secret detection, with room to extend into learning-assisted detection over time.
Think of it as security linting for AI agents, with 53 rules mapped to the OWASP Agentic Top 10 (2026).
pip install agent-audit
agent-audit scan ./your-agent-project
# Show only high+ findings
agent-audit scan . --severity high
# Fail CI when high+ findings exist
agent-audit scan . --fail-on high
--severity controls what is reported. --fail-on controls when the command exits with code 1.
Sample report output:
╭──────────────────────────────────────────────────────────────────────────────╮
│ Agent Audit Security Report │
│ Scanned: ./your-agent-project │
│ Files analyzed: 2 │
│ Risk Score: 8.4/10 (HIGH) │
╰──────────────────────────────────────────────────────────────────────────────╯
BLOCK -- Tier 1 (Confidence >= 90%) -- 16 findings
AGENT-001: Command Injection via Unsanitized Input
Location: agent.py:21
Code: result = subprocess.run(command, shell=True, capture_output=True, text=True)
AGENT-010: System Prompt Injection Vector in User Input Path
Location: agent.py:13
Code: system_prompt = f"You are a helpful {user_role} assistant..."
AGENT-041: SQL Injection via String Interpolation
Location: agent.py:31
Code: cursor.execute(f"SELECT * FROM users WHERE name = '{query}'")
AGENT-031: Mcp Sensitive Env Exposure
Location: mcp_config.json:1
Code: env: {"API_KEY": "sk-a***"}
... and 15 more
Summary:
BLOCK: 16 | WARN: 2 | INFO: 1
Risk Score: =========================----- 8.4/10 (HIGH)
Validation snapshot (as of 2026-02-19, v0.16 benchmark set): 94.6% recall, 87.5% precision, 0.91 F1, with 10/10 OWASP Agentic Top 10 coverage across 9 open-source targets.
Details: Benchmark Results | Competitive Comparison
| Category | What goes wrong | Example rule |
|----------|----------------|--------------|
| Injection attacks | User input flows to exec(), subprocess, SQL | AGENT-001, AGENT-041 |
| Prompt injection | User input concatenated into system prompts | AGENT-010 |
| Leaked secrets | API keys hardcoded in source or MCP config | AGENT-004, AGENT-031 |
| Missing input validation | @tool functions accept raw strings without checks | AGENT-034 |
| Unsafe MCP servers | No auth, no version pinning, overly broad permissions | AGENT-005, AGENT-029, AGENT-030, AGENT-033 |
| MCP tool poisoning | Hidden instructions or data exfiltration in tool descriptions | AGENT-056, AGENT-057 |
| MCP tool shadowing | Multiple servers register identical tool names to override behavior | AGENT-055 |
| MCP rug pull / drift | Server tools change after initial security audit | AGENT-054 |
| No guardrails | Agent runs without iteration limits or human approval | AGENT-028, AGENT-037 |
| Unrestricted code execution | Tools run eval() or shell=True without sandboxing | AGENT-035 |
| Source map leakage | Debug artifacts (.map, .pdb) included in published agent packages | AGENT-110 |
| Sub-agent privilege escalation | Child agents inherit parent's full tool set without restriction | AGENT-112 |
| Delegation without auth | Cross-agent delegation without identity verification | AGENT-113 |
| Auto-approve all tools | Agent auto-approves tool execution without safety classification | AGENT-117 |
| HITL bypass | Human-in-the-loop approval bypassed via delegation or self-modification | AGENT-118 |
| Trace suppression | AI attribution removed from git commits, logs, or outputs | AGENT-119 |
| Config hooks poisoning | Malicious hooks in .claude/settings.json, .cursor/, .mcp.json (CVE-2025-59536) | AGENT-120 |
Full coverage of all 10 OWASP Agentic Security categories. Framework-specific detection for LangChain, CrewAI, AutoGen, and AgentScope. See all rules ->
Agent Audit is available as an OpenClaw skill on ClawHub:
npx clawhub@latest install agent-audit-scanner
Once installed, ask your OpenClaw agent:
The scanner covers all 10 OWASP Agentic AI threat categories and has been validated against 18,899 ClawHub skills at 80% precision.
mcp.json / claude_desktop_config.json for secrets, auth gaps, and supply chain risks# Scan a project
agent-audit scan ./my-agent
# JSON output for scripting
agent-audit scan ./my-agent --format json
# SARIF output for GitHub Code Scanning
agent-audit scan . --format sarif --output results.sarif
# Only fail CI on critical findings
agent-audit scan . --fail-on critical
# Inspect a live MCP server (read-only, never calls tools)
agent-audit inspect stdio -- npx -y @modelcontextprotocol/server-filesystem /tmp
Track only new findings across commits:
# Save current state as baseline
agent-audit scan . --save-baseline baseline.json
# Only report new findings not in baseline
agent-audit scan . --baseline baseline.json --fail-on-new
name: Agent Security Scan
on: [push, pull_request]
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: HeadyZhang/agent-audit@v1
with:
path: '.'
fail-on: 'high'
upload-sarif: 'true'
| Input | Description | Default |
|-------|-------------|---------|
| path | Path to scan | . |
| format | Output format: terminal, json, sarif, markdown | sarif |
| severity | Minimum severity to report | low |
| fail-on | Exit with error at this severity | high |
| baseline | Baseline file for incremental scanning | - |
| upload-sarif | Upload SARIF to GitHub Security tab | true |
Evaluated on Agent-Vuln-Bench (19 samples across 3 vulnerability categories), compared against Bandit and Semgrep:
| Tool | Recall | Precision | F1 | |------|-------:|----------:|---:| | agent-audit | 94.6% | 87.5% | 0.91 | | Bandit 1.8 | 29.7% | 100% | 0.46 | | Semgrep 1.x | 27.0% | 100% | 0.43 |
| Category | agent-audit | Bandit | Semgrep | |----------|:-----------:|:-----:|:-------:| | Set A -- Injection / RCE | 100% | 68.8% | 56.2% | | Set B -- MCP Configuration | 100% | 0% | 0% | | Set C -- Data / Auth | 84.6% | 0% | 7.7% |
Neither Bandit nor Semgrep can parse MCP configuration files -- they achieve 0% recall on agent-specific configuration vulnerabilities (Set B).
Full evaluation details: Benchmark Results | Competitive Comparison
</details>Source Files (.py, .json, .yaml, .env, ...)
|
+-- PythonScanner ---- AST Analysis ---- Dangerous Patterns
| | Tool Metadata
| +-- TaintTracker --------------- Source->Sink Reachability
| +-- DangerousOperationAnalyzer - Tool Boundary Detection
|
+-- SecretScanner ---- Regex Candidates
| +-- SemanticAnalyzer ----------- 3-Stage Filtering
| (Known Formats -> Entropy/Placeholder -> Context)
|
+-- MCPConfigScanner -- Server Provenance / Path Permissions / Auth
|
+-- PrivilegeScanner -- Daemon / Sudoers / Sandbox / Credential Store
|
v
RuleEngine -- 53 Rules x OWASP Agentic Top 10 -- Findings
Key technical contributions:
Tool-boundary-aware taint analysis -- Tracks data flow from @tool function parameters to dangerous sinks (eval, subprocess.run, cursor.execute), with sanitization detection. Only triggers when a confirmed tool entry point has unsanitized parameters flowing to dangerous operations.
MCP configuration auditing -- Parses claude_desktop_config.json and MCP gateway configs to detect unverified server sources, overly broad filesystem permissions, missing authentication, unpinned package versions, tool description poisoning, cross-server tool shadowing, and baseline drift (rug pull) -- a category entirely missed by existing SAST tools.
Three-stage semantic credential detection -- (1) Regex candidate discovery with priority tiers, (2) value analysis with known-format matching, entropy scoring, and placeholder/UUID exclusion, (3) context adjustment by file type, test patterns, and framework schema detection.
53 detection rules covering all 10 categories of the OWASP Agentic Top 10 (2026):
| OWASP Category | Rules | Example Detections |
|----------------|------:|-------------------|
| ASI-01 Agent Goal Hijack | 6 | Prompt injection, tool description poisoning, argument poisoning |
| ASI-02 Tool Misuse | 9 | @tool input to subprocess without validation |
| ASI-03 Identity & Privilege | 4 | Daemon privilege escalation, >10 MCP servers |
| ASI-04 Supply Chain | 7 | Unverified MCP source, tool shadowing, baseline drift (rug pull) |
| ASI-05 Code Execution | 3 | eval/exec in tool without sandbox |
| ASI-06 Memory Poisoning | 2 | Unsanitized input to vector store upsert |
| ASI-07 Inter-Agent Comm | 1 | Multi-agent over HTTP without TLS |
| ASI-08 Cascading Failures | 3 | AgentExecutor without max_iterations |
| ASI-09 Trust Exploitation | 6 | Critical ops without human_in_the_loop |
| ASI-10 Rogue Agents | 3 | No kill switch, no behavior monitoring |
Scanned 9 open-source projects to validate detection quality:
| Target | Project | Findings | OWASP Categories | |--------|---------|----------|------------------| | T1 | damn-vulnerable-llm-agent | 4 | ASI-01, ASI-02, ASI-06 | | T2 | DamnVulnerableLLMProject | 41 | ASI-01, ASI-02, ASI-04 | | T3 | langchain-core | 3 | ASI-01, ASI-02 | | T6 | openai-agents-python | 25 | ASI-01, ASI-02 | | T7 | adk-python | 40 | ASI-02, ASI-04, ASI-10 | | T8 | agentscope | 10 | ASI-02 | | T9 | crewAI | 155 | ASI-01, ASI-02, ASI-04, ASI-07, ASI-08, ASI-10 | | T10 | MCP Config (100-tool server) | 8 | ASI-02, ASI-03, ASI-04, ASI-05, ASI-09 | | T11 | streamlit-agent | 6 | ASI-01, ASI-04, ASI-08 |
10/10 OWASP Agentic Top 10 categories detected across targets. Quality gate: PASS.
</details>| Capability | agent-audit | Bandit | Semgrep |
|-----------|:-----------:|:-----:|:-------:|
| Agent-specific threat model (OWASP Agentic Top 10) | Yes | No | No |
| MCP configuration auditing | Yes | No | No |
| Tool-boundary taint analysis | Yes | No | No |
| @tool decorator awareness | Yes | No | No |
| Semantic credential detection | Yes | Basic | Basic |
| General Python security | Partial | Yes | Yes |
| Multi-language support | Python-focused | Python | Multi |
agent-audit is complementary to general-purpose SAST tools. It targets the security gap specific to AI agent applications that existing tools cannot address.
# .agent-audit.yaml
scan:
exclude: ["tests/**", "venv/**"]
min_severity: low
fail_on: high
ignore:
- rule_id: AGENT-003
paths: ["auth/**"]
reason: "Auth module legitimately communicates externally"
allowed_hosts:
- "api.openai.com"
@tool detection rules.git clone https://github.com/HeadyZhang/agent-audit
cd agent-audit/packages/audit
poetry install
poetry run pytest ../../tests/ -v # 1239 tests
See CONTRIBUTING.md for full development setup and PR guidelines.
If you use agent-audit in your research, please cite:
@software{agent_audit_2026,
author = {Zhang, Haiyue},
title = {Agent Audit: Static Security Analysis for AI Agent Applications},
year = {2026},
url = {https://github.com/HeadyZhang/agent-audit},
note = {Based on OWASP Agentic Top 10 (2026) threat model}
}
MIT -- see LICENSE.
Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.
Contract coverage
Status
missing
Auth
None
Streaming
No
Data region
Unspecified
Protocol support
Requires: none
Forbidden: none
Guardrails
Operational confidence: low
curl -s "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/trust"
Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.
Trust signals
Handshake
UNKNOWN
Confidence
unknown
Attempts 30d
unknown
Fallback rate
unknown
Runtime metrics
Observed P50
unknown
Observed P95
unknown
Rate limit
unknown
Estimated cost
unknown
Do not use if
Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.
Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.
LangChain/LangGraph tools for AI agent x402 payments on X1
An implementation of a multi-agent swarm using LangGraph
LangGraph Multi-Agent Supervisor
LangChain tools for OceanBus — give your LangChain and CrewAI agents a global identity, encrypted messaging, and Yellow Pages service discovery with a single import.
Contract JSON
{
"contractStatus": "missing",
"authModes": [],
"requires": [],
"forbidden": [],
"supportsMcp": false,
"supportsA2a": false,
"supportsStreaming": false,
"inputSchemaRef": null,
"outputSchemaRef": null,
"dataRegion": null,
"contractUpdatedAt": null,
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Invocation Guide
{
"preferredApi": {
"snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/snapshot",
"contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/contract",
"trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/trust"
},
"curlExamples": [
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/snapshot\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/contract\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/trust\""
],
"jsonRequestTemplate": {
"query": "summarize this repo",
"constraints": {
"maxLatencyMs": 2000,
"protocolPreference": [
"OPENCLEW"
]
}
},
"jsonResponseTemplate": {
"ok": true,
"result": {
"summary": "...",
"confidence": 0.9
},
"meta": {
"source": "GITHUB_OPENCLEW",
"generatedAt": "2026-10-08T23:15:08.875Z"
}
},
"retryPolicy": {
"maxAttempts": 3,
"backoffMs": [
500,
1500,
3500
],
"retryableConditions": [
"HTTP_429",
"HTTP_503",
"NETWORK_TIMEOUT"
]
}
}Trust JSON
{
"status": "unavailable",
"handshakeStatus": "UNKNOWN",
"verificationFreshnessHours": null,
"reputationScore": null,
"p95LatencyMs": null,
"successRate30d": null,
"fallbackRate": null,
"attempts30d": null,
"trustUpdatedAt": null,
"trustConfidence": "unknown",
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Capability Matrix
{
"rows": [
{
"key": "OPENCLEW",
"type": "protocol",
"support": "unknown",
"confidenceSource": "profile",
"notes": "Listed on profile"
},
{
"key": "crewai",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
},
{
"key": "multi-agent",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
}
],
"flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}Facts JSON
[
{
"factKey": "vendor",
"label": "Vendor",
"value": "Headyzhang",
"category": "vendor",
"href": "https://github.com/HeadyZhang/agent-audit",
"sourceUrl": "https://github.com/HeadyZhang/agent-audit",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-05-31T06:18:33.897Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "protocols",
"label": "Protocol compatibility",
"value": "OpenClaw",
"category": "compatibility",
"href": "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-05-31T06:18:33.897Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "traction",
"label": "Adoption signal",
"value": "174 GitHub stars",
"category": "adoption",
"href": "https://github.com/HeadyZhang/agent-audit",
"sourceUrl": "https://github.com/HeadyZhang/agent-audit",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-05-31T06:18:33.897Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "handshake_status",
"label": "Handshake status",
"value": "UNKNOWN",
"category": "security",
"href": "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-headyzhang-agent-audit/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true,
"metadata": {}
}
]Change Events JSON
[]
Sponsored
Ads related to agent-audit and adjacent AI workflows.