跨链安全质押与去信任化技能审计
简介
基于 CCTP 跨链架构,通过 USDC 质押与去中心化治理为 Agent Skills 提供安全验证与风险保障,实现可信的无许可审计与市场。
原始描述
Manage skill trust by staking USDC bonds, paying micro-fees for verified skills, reporting malicious skills, and participating in decentralized governance vi...
通过你的 Agent 添加
安装目录:arc-security/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Arc Security 是专为 OpenClaw 设计的链无关安全基础设施,构建于 Arc 测试网之上,通过 CCTP 实现跨链 USDC 流转。核心功能包括:
- 信任查询 (
check):查询 Skill 的链上质押状态、审计者数量、使用次数及综合信任评分(40%质押金额+40%使用次数+20%审计者数量) - 付费使用 (
use):支付 0.10 USDC 微费用获取已验证 Skill,自动选择最优支付路径(Arc直连→Base→Arbitrum→Ethereum) - 质押担保 (
bond):审计者质押 USDC 为 Skill 安全背书,恶意 Skill 将导致 50% 质押金罚没 - 恶意举报 (
report/vote-claim):1 USDC 押金发起举报,72 小时治理投票,按质押权重计票 - 收益提取 (
claim-earnings):审计者按比例提取使用费(70% 分配给审计者,30% 入保险池)
显著优点
- 经济安全模型:质押+罚没机制创造真实经济激励对齐,优于纯声誉系统
- 跨链无缝:基于 Circle CCTP 的原生 USDC 跨链,无需封装资产
- 费用低廉:0.10 USDC 使用费远低于传统安全审计成本
- 代码质量:结构清晰,使用 web3.py、requests 等知名依赖,通过静态分析
- 透明治理:链上投票、公开质押、可验证的惩罚机制
潜在局限
- 测试网阶段:当前仅支持 Arc Testnet 及 Sepolia 测试网,主网成熟度未知
- 私钥风险:需配置 PRIVATE_KEY 环境变量,存在泄露风险
- 中心化依赖:x402 支付服务器为链下组件,存在单点故障可能
- T3 来源:个人开发者维护,非知名机构背书,供应链风险较高
- ZIP 安全风险:下载文件解压缺乏路径遍历和炸弹攻击防护
- 智能合约风险:合约代码未在报告中审计,仅审计了 CLI 工具
适合人群
- OpenClaw 生态早期采用者,愿意承担测试网风险
- 希望以低成本获取审计后 Skill 的普通用户
- 有 USDC 闲置、愿意参与安全审计赚取收益的质押者
- 开发者研究链上安全经济模型和 CCTP 跨链应用
常规风险
- 资金损失:私钥泄露、合约漏洞、恶意 Skill 均可能导致 USDC 损失
- 跨链延迟:CCTP 跨链需等待最终性确认,可能耗时数分钟
- 治理攻击:大户质押操纵投票结果
- 服务器劫持:X402_SERVER_URL 配置错误指向恶意服务器可导致恶意代码执行
- 环境变量泄露:PRIVATE_KEY 等敏感配置若写入日志或版本控制将完全暴露资金
- 测试网阶段:当前仅支持 Arc Testnet 及 Sepolia 测试网,主网成熟度未知
- 私钥风险:需配置 PRIVATE_KEY 环境变量,存在泄露风险
- 中心化依赖:x402 支付服务器为链下组件,存在单点故障可能
- T3 来源:个人开发者维护,非知名机构背书,供应链风险较高
- ZIP 安全风险:下载文件解压缺乏路径遍历和炸弹攻击防护
- 智能合约风险:合约代码未在报告中审计,仅审计了 CLI 工具
适合人群
- OpenClaw 生态早期采用者,愿意承担测试网风险
- 希望以低成本获取审计后 Skill 的普通用户
- 有 USDC 闲置、愿意参与安全审计赚取收益的质押者
- 开发者研究链上安全经济模型和 CCTP 跨链应用
常规风险
- 资金损失:私钥泄露、合约漏洞、恶意 Skill 均可能导致 USDC 损失
- 跨链延迟:CCTP 跨链需等待最终性确认,可能耗时数分钟
- 治理攻击:大户质押操纵投票结果
- 服务器劫持:X402_SERVER_URL 配置错误指向恶意服务器可导致恶意代码执行
- 环境变量泄露:PRIVATE_KEY 等敏感配置若写入日志或版本控制将完全暴露资金
- 资金损失:私钥泄露、合约漏洞、恶意 Skill 均可能导致 USDC 损失
- 跨链延迟:CCTP 跨链需等待最终性确认,可能耗时数分钟
- 治理攻击:大户质押操纵投票结果
- 服务器劫持:X402_SERVER_URL 配置错误指向恶意服务器可导致恶意代码执行
- 环境变量泄露:PRIVATE_KEY 等敏感配置若写入日志或版本控制将完全暴露资金
安全等级评为 A(74/100),功能实现与声明一致,无恶意代码,但作为资金操作工具需用户自行承担智能合约及操作风险。
技能正文
Arc Security - Agent Trust Protocol
Chain-agnostic security infrastructure for OpenClaw skills. Auditors stake USDC to vouch for skill safety, users pay micro-fees to access verified skills, and malicious skills get slashed through decentralized governance -- all powered by CCTP on Arc.
Installation
clawhub install arc-security
Configuration
clawhub install arc-security
Set the following environment variables:
| Variable | Required | Description |
|---|---|---|
ARC_RPC_URL |
Yes | Arc testnet RPC endpoint (default: https://testnet-rpc.arc.network) |
CONTRACT_ADDRESS |
Yes | Deployed SkillSecurityRegistry contract address |
PRIVATE_KEY |
Yes | Wallet private key (for signing transactions) |
X402_SERVER_URL |
Yes | x402 payment server URL |
ETH_RPC_URL |
No | Ethereum Sepolia RPC (for cross-chain operations) |
BASE_RPC_URL |
No | Base Sepolia RPC (default: https://sepolia.base.org) |
ARB_RPC_URL |
No | Arbitrum Sepolia RPC (default: https://sepolia-rollup.arbitrum.io/rpc) |
Commands
check -- Check skill trust status
check -- Check skill trust statusQuery on-chain bond status, auditor count, usage stats, and computed trust score for any skill.
clawhub arc-security check <skill_id>
Example output:
Skill: youtube-downloader
├─ Bonded: 100.00 USDC by 3 auditors
├─ Used: 1,250 times
├─ Trust Score: 75/100
├─ Status: Safe to use
└─ Created: 2025-06-15 14:30:00
Trust Score is calculated as:
- 40% from bond amount (capped at 100 USDC = full weight)
- 40% from usage count (capped at 1,000 uses = full weight)
- 20% from auditor count (5 points per auditor)
- Flagged skills receive a -50 penalty
use -- Pay and download a skill
Pays the 0.10 USDC usage fee via x402 and downloads the skill package. Automatically selects the cheapest payment path based on your wallet balances.
clawhub arc-security use <skill_id>
Payment chain selection priority:
- Arc Testnet (direct -- no bridging fees)
- Base Sepolia (via CCTP)
- Arbitrum Sepolia (via CCTP)
- Ethereum Sepolia (via CCTP)
bond -- Stake USDC to vouch for a skill
Stake USDC as a security bond to vouch for a skill's safety. If the skill is found malicious, 50% of your stake is slashed.
clawhub arc-security bond <skill_id> <amount> <source_chain>
Arguments:
skill_id-- Skill identifieramount-- Amount of USDC to stake (e.g.50)source_chain-- Chain to pay from (ethereum-sepolia,base-sepolia,arbitrum-sepolia,arc-testnet)
Example:
clawhub arc-security bond youtube-downloader 50 base-sepolia
report -- Report a malicious skill
Submit a claim that a skill is malicious. Requires a 1 USDC anti-spam deposit (refunded if the claim is validated).
clawhub arc-security report <skill_id> --evidence <ipfs_hash>
Example:
clawhub arc-security report bad-skill --evidence QmXyz123...
Opens a 72-hour voting window for auditors.
vote-claim -- Vote on a pending claim
Cast a vote on whether a reported skill is malicious. Only wallets that have staked on any skill are eligible to vote. Vote weight is based on total stake and audit track record.
clawhub arc-security vote-claim <claim_id> <support|oppose>
Vote weight formula: sqrt(totalStaked) * (successfulAudits / totalAudits)
claim-earnings -- Withdraw accumulated fees
Withdraw your share of usage fees earned as an auditor. Fees are split 70% to auditors (proportional to stake) and 30% to the insurance pool.
clawhub arc-security claim-earnings <destination_chain>
Supported destination chains:
arc-testnet(direct transfer)ethereum-sepolia,base-sepolia,arbitrum-sepolia(via CCTP)
Supported Chains
Chain
CCTP Domain
Payment
Bonding
Earnings
Arc Testnet
100
Direct
Direct
Direct
Ethereum Sepolia
0
CCTP
CCTP
CCTP
Base Sepolia
6
CCTP
CCTP
CCTP
Arbitrum Sepolia
3
CCTP
CCTP
CCTP
Fee Structure
Action
Cost
Distribution
Use a skill
0.10 USDC
70% auditors, 30% insurance pool
Submit a claim
1.00 USDC deposit
Refunded if claim validated
Guilty verdict
50% of bond slashed
80% to victim, 20% to insurance
Architecture
User (any chain)
│
├── CCTP burn ──► Arc Testnet ──► SkillSecurityRegistry (bonds, fees, claims)
│ │
└── x402 GET ──► Payment Server ◄────────┘ (verifies payment on-chain)
│
└──► Skill package (ZIP)
- SkillSecurityRegistry (Solidity on Arc) -- Holds bonds, processes fees, manages claims/votes/slashing
- x402 Payment Server (Node.js) -- Serves skill packages behind HTTP 402 paywall, verifies on-chain payments
- This skill (Python CLI) -- User-facing commands that orchestrate CCTP transfers and contract calls
License
| Chain | CCTP Domain | Payment | Bonding | Earnings |
|---|---|---|---|---|
| Arc Testnet | 100 | Direct | Direct | Direct |
| Ethereum Sepolia | 0 | CCTP | CCTP | CCTP |
| Base Sepolia | 6 | CCTP | CCTP | CCTP |
| Arbitrum Sepolia | 3 | CCTP | CCTP | CCTP |
| Action | Cost | Distribution |
|---|---|---|
| Use a skill | 0.10 USDC | 70% auditors, 30% insurance pool |
| Submit a claim | 1.00 USDC deposit | Refunded if claim validated |
| Guilty verdict | 50% of bond slashed | 80% to victim, 20% to insurance |
Architecture
User (any chain)
│
├── CCTP burn ──► Arc Testnet ──► SkillSecurityRegistry (bonds, fees, claims)
│ │
└── x402 GET ──► Payment Server ◄────────┘ (verifies payment on-chain)
│
└──► Skill package (ZIP)
- SkillSecurityRegistry (Solidity on Arc) -- Holds bonds, processes fees, manages claims/votes/slashing
- x402 Payment Server (Node.js) -- Serves skill packages behind HTTP 402 paywall, verifies on-chain payments
- This skill (Python CLI) -- User-facing commands that orchestrate CCTP transfers and contract calls
License
User (any chain)
│
├── CCTP burn ──► Arc Testnet ──► SkillSecurityRegistry (bonds, fees, claims)
│ │
└── x402 GET ──► Payment Server ◄────────┘ (verifies payment on-chain)
│
└──► Skill package (ZIP)
MIT
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。