智能代理漏洞扫描与安全评估
简介
ERC-8004 代理安全审计工具,扫描智能合约代理漏洞并生成完整安全报告,预防恶意交互。
原始描述
Audits ERC-8004 agents by analyzing metadata, endpoints, payment configs, and reputation to identify security risks and generate detailed reports.
通过你的 Agent 添加
安装目录:agent-security-auditor/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
Agent Security Auditor
Scans ERC-8004 agents for security vulnerabilities and generates comprehensive security reports.
Overview
This skill audits ERC-8004 Trustless Agents by querying the Identity Registry and analyzing agent metadata for common security issues. It helps identify potentially malicious or misconfigured agents before interacting with them.
Features
- Identity Registry Query: Fetches agent metadata from the ERC-8004 Identity Registry
- Metadata Validation: Checks for missing, empty, or suspicious metadata
- Endpoint Security: Analyzes service endpoints for red flags
- x402 Payment Analysis: Validates payment configuration
- Reputation Check: Queries the Reputation Registry for feedback signals
- Verification Status: Checks if endpoints are verified via domain control
Usage
# Run the audit script directly with Node.js
node scripts/audit.js <agent-address> [options]
# Options:
# --rpc <url> RPC endpoint URL (default: https://eth.llamarpc.com)
# --chain <id> Chain ID (default: 1)
# --output <file> Output file for JSON report
# --verbose Enable verbose logging
Example
# Audit an agent on Ethereum mainnet
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21
# Audit with custom RPC
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21 --rpc https://mainnet.infura.io/v3/YOUR_KEY
# Save report to file
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21 --output report.json
What Gets Scanned
Critical Issues
- Missing or empty metadata (no name, description)
- No registered services/endpoints
- Invalid or unreachable agent URI
- No agent wallet configured
High Severity Issues
- Unverified endpoints (no domain control proof)
- Suspicious endpoint patterns (localhost, IP addresses, unusual ports)
- No x402 payment support warning
- No reputation signals
Medium Severity Issues
- No validation registrations
- Missing supportedTrust indicators
- Inactive agent status
Info
# Run the audit script directly with Node.js
node scripts/audit.js <agent-address> [options]
# Options:
# --rpc <url> RPC endpoint URL (default: https://eth.llamarpc.com)
# --chain <id> Chain ID (default: 1)
# --output <file> Output file for JSON report
# --verbose Enable verbose logging
Example
# Audit an agent on Ethereum mainnet
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21
# Audit with custom RPC
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21 --rpc https://mainnet.infura.io/v3/YOUR_KEY
# Save report to file
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21 --output report.json
What Gets Scanned
Critical Issues
- Missing or empty metadata (no name, description)
- No registered services/endpoints
- Invalid or unreachable agent URI
- No agent wallet configured
High Severity Issues
# Audit an agent on Ethereum mainnet
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21
# Audit with custom RPC
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21 --rpc https://mainnet.infura.io/v3/YOUR_KEY
# Save report to file
node scripts/audit.js 0x742d35Cc6634C0532925a3b844Bc9e7595f8bE21 --output report.json
Critical Issues
- Unverified endpoints (no domain control proof)
- Suspicious endpoint patterns (localhost, IP addresses, unusual ports)
- No x402 payment support warning
- No reputation signals
Medium Severity Issues
- Reputation score summary
- Validation count
- Service endpoint count
Architecture
agent-security-auditor/
├── SKILL.md # This file
├── scripts/
│ └── audit.js # Main audit logic
└── references/
└── ERC-8004.md # ERC-8004 specification reference
Dependencies
- ethers.js ^6.x - Ethereum blockchain interaction
- node-fetch or built-in fetch - HTTP requests for off-chain metadata
Exit Codes
0 - Audit completed successfully
1 - Invalid agent address
2 - Blockchain connection error
3 - Critical error during audit
Notes
- Requires internet connection for RPC calls and metadata fetching
- Some checks require off-chain metadata fetching which may be slow
- Reputation and validation registries are optional deployments
agent-security-auditor/
├── SKILL.md # This file
├── scripts/
│ └── audit.js # Main audit logic
└── references/
└── ERC-8004.md # ERC-8004 specification reference
- ethers.js ^6.x - Ethereum blockchain interaction
- node-fetch or built-in fetch - HTTP requests for off-chain metadata
Exit Codes
0 - Audit completed successfully
1 - Invalid agent address
2 - Blockchain connection error
3 - Critical error during audit
Notes
- Requires internet connection for RPC calls and metadata fetching
- Some checks require off-chain metadata fetching which may be slow
- Reputation and validation registries are optional deployments
0 - Audit completed successfully1 - Invalid agent address2 - Blockchain connection error3 - Critical error during audit- Requires internet connection for RPC calls and metadata fetching
- Some checks require off-chain metadata fetching which may be slow
- Reputation and validation registries are optional deployments
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。