CC Safety Net
코딩 에이전트 CLI 안전층으로 실행 전 파괴적 git·파일시스템 명령과 비밀 파일 접근을 차단
AI 에이전트 호출당 사전 서명 안전, 위험을 GO/HOLD/BLOCK 처리 후 USDC 정산, x402 MCP 서버
Pay-per-call pre-sign transaction safety for AI agents: EVM calldata risk -> GO/HOLD/BLOCK, settled in USDC via x402. Also an MCP server.
보안TypeScriptGitHub @kaito3636온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗"Should I sign this?" — a pay-per-call pre-sign safety layer for AI trading/wallet agents. An agent POSTs a raw EVM transaction (or an approval) before signing; this decodes the calldata, flags the patterns that drain wallets, and returns GO / HOLD / BLOCK. Settles in USDC via x402 to a self-custody (pseudonymous) wallet.
10-angle research (2026) on the x402 / agent-payment economy concluded:
x402-jp-data fleet made nothing.)Honest expectation: $1,000/mo is NOT achievable passively on x402 rails in 2026 — it's above the current top seller. The realistic path is distribution: ship this as an MCP tool that lands in agents' default toolsets (dual-rail: x402 pay-per-call + flat MCP key). x402 is the on-ramp; the MCP install base is the demand. The POC proves the mechanism and starts the compounding asset now.
src/decode.ts statically decodes calldata and catches the real drain vectors:
approve / increaseAllowance to an unknown or known-malicious spendersetApprovalForAll(true) (classic NFT drainer) to unknown / malicious operatorspermit / Permit2 approvals (common drainer vector)transfer / transferFrom to known-malicious recipients| path | price | what |
|---|---|---|
GET /guard/token?token=&chain= | 0.05 USDC | pre-TRADE ERC-20 safety for trading agents: malicious-DB + on-chain rug/honeypot red-flags (owner controls, mint/pause/blacklist, renounced?) |
GET /guard/tx?to=&data=&value=&chain= | 0.05 USDC | full pre-sign risk check → GO/HOLD/BLOCK + flags |
GET /guard/approval?token=&spender=&amount= | free | approval-specific (unlimited + malicious-spender) — free adoption tier |
GET /guard/signatures | free | size of the accumulating signature set (the moat) |
GET /, GET /.well-known/x402 | free | docs + Bazaar discovery |
Running in production, paid mode on: https://x402-presign-guard.vercel.app
curl https://x402-presign-guard.vercel.app/.well-known/x402 # discovery (free)
curl "https://x402-presign-guard.vercel.app/guard/tx?to=0x..." # 402 + payment requirements
A 402 returns the x402 v1 payment requirements (scheme exact, network base, USDC); an
x402-capable client pays and retries. Implemented + tested: 25/25 PASS (decode 19 + app 6),
tsc clean. Runs on both Cloudflare Workers and Vercel from one codebase.
Point any MCP client (Claude Desktop, agent frameworks) at the hosted guard — no install build, no npm account needed:
{
"mcpServers": {
"presign-guard": {
"command": "npx",
"args": ["-y", "x402-presign-guard"]
}
}
}
Published on npm: x402-presign-guard
(or run straight from source: npx -y github:kaito3636/x402-presign-guard).
Exposes two tools — presign_guard_tx and presign_guard_approval — that forward to the hosted
guard (GUARD_URL, default the live URL above). The agent calls the guard before it signs.
wrangler.toml has a commented cron + KV: a scheduled job ingests malicious selectors/addresses
from live threat feeds + own honeypot probes, timestamped — so the signature set and the
never-backfillable time-series grow every day. That daily accrual is the "掘るほど美味い" asset.
Vercel (how the live one runs):
npm install
npx vercel deploy --prod # free mode first
npx vercel env add PAY_TO production # Base self-custody wallet 0x… → go paid
npx vercel deploy --prod
Cloudflare Workers (alternative; same code):
npx wrangler login && npx wrangler deploy
npx wrangler secret put PAY_TO && npx wrangler deploy
MCP server (this repo, npx github:…) → Official MCP Registry / mcp.so; x402 Bazaar discovery needs
a facilitator that implements /discovery/resources (e.g. Coinbase CDP — set FACILITATOR_URL +
CDP keys); list on x402scan. The hosted endpoint already serves /.well-known/x402 for crawlers.