Aegis402 护盾:AI 智能体区块链安全 - Openclaw Skills
作者:互联网
2026-03-25
什么是 Aegis402 护盾协议 (黑客松)?
Aegis402 护盾协议 (黑客松/测试网) 为与区块链网络交互的自主智能体提供了强大的安全层。Openclaw Skills 目录中的这一特定条目允许开发者将蜜罐检测、地址信誉检查和交易模拟集成到其智能体工作流中。它利用 x402 协议进行微支付,特别是使用 Base Sepolia 上的测试网 USDC。通过利用这些 Openclaw Skills,开发者可以确保其智能体避开恶意合约,并在 DeFi 操作期间保持安全,而无需在开发阶段冒真实资金的风险。
下载入口:https://github.com/openclaw/skills/tree/main/skills/swiftadviser/aegis-security-hackathon
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install aegis-security-hackathon
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 aegis-security-hackathon。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
Aegis402 护盾协议 (黑客松) 应用场景
- 在 AI 智能体在去中心化交易所兑换代币前进行蜜罐检测。
- 验证钱包地址信誉,以防止网络钓鱼或投毒攻击。
- 模拟复杂的智能合约交互,以在签名之前预测余额变化。
- 在沙箱环境中使用 x402 协议测试自主支付流。
- AI 智能体向安全端点(如 check-token 或 simulate-tx)发起请求。
- API 返回 402 Payment Required 状态以及针对 Base Sepolia 的支付指令。
- 智能体或开发者通过 x402 协议支付所需金额的测试网 USDC。
- 在请求元数据中包含支付证明标头后重试请求。
- Aegis402 护盾协议处理安全扫描并返回技术风险分析。
Aegis402 护盾协议 (黑客松) 配置指南
要使用这些 Openclaw Skills,请安装所需的 x402 客户端库:
npm install @x402/fetch @x402/evm
请确保您从水龙头获取了 Base Sepolia (Chain ID 84532) 上的测试网 USDC,以支付安全扫描的微交易费用。
Aegis402 护盾协议 (黑客松) 数据架构与分类体系
| 字段 | 描述 |
|---|---|
isHoneypot |
表示代币是否为诈骗的布尔值 |
trustScore |
代表可靠性的数值 (0-100) |
riskLevel |
从 SAFE 到 CRITICAL 的分类风险评级 |
isPoisoned |
涉及投毒攻击的地址标记 |
balanceChanges |
模拟期间预测的资产变动数组 |
name: aegis-security-hackathon
version: 1.0.0
description: Blockchain security scanner for AI agents (testnet). Pay with Base Sepolia USDC via x402 protocol.
homepage: https://hackathon.aegis402.xyz
metadata: {"emoji":"???","category":"blockchain-security","api_base":"https://hackathon.aegis402.xyz/v1","network":"testnet"}
Aegis402 Shield Protocol (Hackathon/Testnet)
Blockchain security API for AI agents. Testnet version - pay with Base Sepolia USDC.
?? This is the hackathon/testnet deployment. For production, use aegis-security.
Skill Files
| File | URL |
|---|---|
| SKILL.md (this file) | https://hackathon.aegis402.xyz/skill.md |
| package.json (metadata) | https://hackathon.aegis402.xyz/skill.json |
Base URL: https://hackathon.aegis402.xyz/v1
Quick Start
npm install @x402/fetch @x402/evm
import { x402Client, wrapFetchWithPayment } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm/exact/client';
const client = new x402Client()
.register('eip155:*', new ExactEvmScheme(yourEvmWallet));
const fetch402 = wrapFetchWithPayment(fetch, client);
// Payments on Base Sepolia (testnet USDC)
const res = await fetch402('https://hackathon.aegis402.xyz/v1/check-token/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain_id=1');
const data = await res.json();
Requirements: Testnet USDC on Base Sepolia (chain ID 84532)
Get testnet USDC: Base Sepolia Faucet
Pricing (Testnet USDC)
| Endpoint | Price | Use Case |
|---|---|---|
POST /simulate-tx |
$0.05 | Transaction simulation, DeFi safety |
GET /check-token/:address |
$0.01 | Token honeypot detection |
GET /check-address/:address |
$0.005 | Address reputation check |
Endpoints
Check Token ($0.01)
Scan any token for honeypots, scams, and risks.
curl "https://hackathon.aegis402.xyz/v1/check-token/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain_id=1"
Response:
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"isHoneypot": false,
"trustScore": 95,
"risks": [],
"_meta": { "requestId": "uuid", "duration": 320 }
}
Check Address ($0.005)
Verify if address is flagged for phishing or poisoning.
curl "https://hackathon.aegis402.xyz/v1/check-address/0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
Response:
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"isPoisoned": false,
"reputation": "NEUTRAL",
"tags": ["wallet", "established"],
"_meta": { "requestId": "uuid", "duration": 180 }
}
Simulate Transaction ($0.05)
Predict balance changes and detect threats before signing.
curl -X POST "https://hackathon.aegis402.xyz/v1/simulate-tx" r
-H "Content-Type: application/json" r
-d '{
"from": "0xYourWallet...",
"to": "0xContract...",
"value": "1000000000000000000",
"data": "0x...",
"chain_id": 8453
}'
Response:
{
"isSafe": true,
"riskLevel": "LOW",
"simulation": {
"balanceChanges": [
{ "asset": "USDC", "amount": "-100.00", "address": "0x..." }
]
},
"warnings": [],
"_meta": { "requestId": "uuid", "duration": 450 }
}
x402 Payment Flow (Testnet)
- Agent calls any paid endpoint
- Receives
402 Payment Requiredwith Base Sepolia payment instructions - Pays testnet USDC on Base Sepolia (chain ID: 84532)
- Retries request with payment proof header
- Gets security scan result
Network: Base Sepolia (eip155:84532) Currency: Testnet USDC
Use Cases for AI Agents
Before Swapping Tokens
const tokenCheck = await fetch402(`https://hackathon.aegis402.xyz/v1/check-token/${tokenAddress}?chain_id=8453`);
const { isHoneypot, trustScore } = await tokenCheck.json();
if (isHoneypot || trustScore < 50) {
console.log('?? Risky token detected!');
}
Before Signing Transactions
const simulation = await fetch402('https://hackathon.aegis402.xyz/v1/simulate-tx', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ from, to, value, data, chain_id: 8453 })
});
const { isSafe, riskLevel, warnings } = await simulation.json();
if (!isSafe || riskLevel === 'CRITICAL') {
console.log('?? Dangerous transaction!', warnings);
}
Risk Levels
| Level | Meaning |
|---|---|
SAFE |
No issues detected |
LOW |
Minor concerns, generally safe |
MEDIUM |
Some risks, proceed with caution |
HIGH |
Significant risks detected |
CRITICAL |
Do not proceed |
Supported Chains (for scanning)
| Chain | ID | check-token | check-address | simulate-tx |
|---|---|---|---|---|
| Ethereum | 1 | ? | ? | ? |
| Base | 8453 | ? | ? | ? |
| Polygon | 137 | ? | ? | ? |
| Arbitrum | 42161 | ? | ? | ? |
| Optimism | 10 | ? | ? | ? |
| BSC | 56 | ? | ? | ? |
Health Check (Free)
curl https://hackathon.aegis402.xyz/health
Links
- Hackathon API: https://hackathon.aegis402.xyz
- Production API: https://aegis402.xyz
- GitHub: https://github.com/SwiftAdviser/aegis-402-shield-protocol
- x402 Protocol: https://docs.x402.org
??? Built for the Agentic Economy. Powered by x402 Protocol.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
Elasticsearch93新增bfloat16向量支持
解析OceanBase生态工具链之OAT_obd_OCP_obshell
贝叶斯不确定性引导的早停框架ESTune与OceanBase校企联合研究
杈炬ⅵ&浜哄ぇ閲戜粨閫傞厤瀹炴垬锛歋eaTunnel鍦ㄤ俊鍒涙暟鎹钩鍙颁腑鐨勫簲鐢ㄤ笌韪╁潙鎬荤粨
2026年1月中国数据库流行度排行榜:OB连冠领跑贺新元PolarDB跃居次席显锐气
社区译文解析FUD与真相MySQL是否真的被弃用了
英伟达重新规划AI推理加速布局 暂停Rubin CPU转攻Groq LPU
gpress v1.2.2 全新上线 Web3内容平台迎来更新
CMake 4.3.0 正式推出
短剧采用AI换脸技术使角色酷似明星 制作方与播出方构成侵权
AI精选
