Aegis security

From modbender/skill-library-mcp · View interactive version

Aegis security is an AI agent skill from the GitHub repository modbender/skill-library-mcp. Blockchain security API for AI agents. Scan tokens, simulate transactions, check addresses for threats.

How to use this skill

Skill file

Aegis402 Shield Protocol

Blockchain security API for AI agents.

Free tier: 100 checks/day, then pay-per-request with USDC on Base or Solana.

Security Defaults

Agent Quickstart (Scan Before Transact)

Default policy for agents and wallets:

  1. Set X-Client-Fingerprint: <stable_agent_or_user_id> for predictable free-tier accounting.
  2. Before sending any transaction, run in parallel:
  1. Block and ask for confirmation if any result indicates HIGH/CRITICAL, isSafe=false, or recipient is poisoned/flagged.
  2. Otherwise allow, but still show the review summary + raw JSON.

Notes:

What To Do (Agent Mode, From Zero)

When a user is about to send a transaction:

  1. Ask for missing intent:
  1. Check free tier (always free):
  1. Run the scan-before-transact checks (parallel):
  1. Reply using templates below (summary first, then raw JSON).

How To Reply (Templates)

SAFE (LOW)

🛡️ Scan Complete

Risk: LOW (SAFE)
Summary: No critical warnings detected.

✅ OK to proceed.

CAUTION (MEDIUM)

🛡️ Scan Complete

Risk: MEDIUM (CAUTION)
Summary: Some warnings detected.

⚠️ Review recommended before proceeding. Want me to explain the top 3 risks?

DANGEROUS (HIGH)

🛡️ Scan Complete

Risk: HIGH (DANGEROUS)
Summary: Significant risks detected.

🚫 Not recommended.

BLOCKED (CRITICAL)

🛡️ Scan Complete

Risk: CRITICAL (BLOCKED)
Summary: Do not proceed.

🚫 Stop. This transaction/recipient appears malicious or unsafe.

402 Payment Required

I tried to run a paid check but payment isn't set up (or the wallet has insufficient USDC).

To enable paid checks:
1. Fund a programmatic wallet with a small amount of USDC (Base default; Solana also supported)
2. Install an x402 client (@x402/fetch + chain package)
3. Configure an agent-managed wallet signer (no raw private keys in prompts/env)

Reference

Skill Files

| File | URL |

|------|-----|

| SKILL.md (this file) | https://aegis402.xyz/skill.md |

| skill.json (metadata) | https://aegis402.xyz/skill.json |

Base URL: https://aegis402.xyz/v1

Pricing

| 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 |

Free tier: 100 checks/day. Track usage via GET /v1/usage.

Usage (Free)

curl "https://aegis402.xyz/v1/usage"

Example response:

{
  "freeTier": {
    "enabled": true,
    "dailyLimit": 100,
    "usedToday": 2,
    "remainingChecks": 98,
    "nextResetAt": "2026-02-11T00:00:00.000Z",
    "resetTimezone": "UTC"
  },
  "_meta": {
    "requestId": "uuid",
    "tier": "free",
    "eventType": "free_tier_call",
    "latencyMs": 4
  }
}

check-address

curl "https://aegis402.xyz/v1/check-address/0x742d35Cc6634C0532925a3b844Bc454e4438f44e?chain_id=8453"

simulate-tx

Request body fields:

curl -X POST "https://aegis402.xyz/v1/simulate-tx" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "0xYourWallet...",
    "to": "0xContract...",
    "value": "0",
    "data": "0x",
    "chain_id": 8453
  }'

check-token

chain_id is the chain you want to scan (Ethereum=1, Base=8453, etc). Payment rail is driven by the 402 challenge (default: USDC on Base).

curl "https://aegis402.xyz/v1/check-token/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain_id=1"

Payments (x402)

You can use the API for free until your fingerprint uses 100 checks/day. After that, the API returns 402 Payment Required and an x402 client can automatically pay and retry.

| Network | Agentic Wallet Signer |

|---------|------------------------|

| Base (EVM) | EVM signer from an agent wallet provider |

| Solana | Solana signer from an agent wallet provider |

Minimal Node Client (agent-managed EVM signer)

npm install @x402/fetch@2.2.0 @x402/evm@2.2.0
import { x402Client, wrapFetchWithPayment } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm/exact/client';

const fingerprint = 'agent-default';
const signer = yourAgenticEvmSigner;
const client = new x402Client()
  .register('eip155:*', new ExactEvmScheme(signer));

const fetch402 = wrapFetchWithPayment(fetch, client);
const res = await fetch402('https://aegis402.xyz/v1/usage', {
  headers: { 'X-Client-Fingerprint': fingerprint },
});
console.log(await res.json());

Solana Client (agent-managed signer)

npm install @x402/fetch@2.2.0 @x402/svm@2.2.0
import { x402Client, wrapFetchWithPayment } from '@x402/fetch';
import { ExactSvmScheme } from '@x402/svm/exact/client';

const signer = yourAgenticSolanaSigner;
const client = new x402Client()
  .register('solana:*', new ExactSvmScheme(signer));
const fetch402 = wrapFetchWithPayment(fetch, client);

Agent Safety Policy

Appendix

Risk Levels

| Level | Meaning | Agent Default |

|-------|---------|---------------|

| LOW | Minor concerns, generally safe | allow |

| MEDIUM | Some risks | show review; consider confirm |

| HIGH | Significant risks | block + confirm |

| CRITICAL | Unsafe/malicious | block |

Errors and What To Do

| Status | Meaning | What the agent should do |

|--------|---------|--------------------------|

| 400 | Invalid parameters | ask user for missing/invalid fields and retry |

| 402 | Payment required | confirm intent, then use an approved agent wallet signer (or wait for next free-tier reset) |

| 500 | Service/upstream error | retry once; if persistent, show error + requestId |

Tips:

Optional: Feedback, Issues, Expectations (Agent-Friendly)

Help us improve!

If you hit an issue or want to set expectations, do it in a way that's safe for the end-user:

Copy/paste report template:

Aegis402 report

Type: issue | feedback | expectation
RequestId: <_meta.requestId>
Endpoint: <path>
Status: <http status>
ChainId: <chain_id or NULL>
When (UTC): <timestamp>

What I expected:
What happened:
Minimal repro (curl or steps):

Notes (redacted):

Preferred channel (no GitHub required):

Example (only with user approval):

curl -X POST "https://aegis402.xyz/v1/feedback" \
  -H "Content-Type: application/json" \
  -H "X-Client-Fingerprint: <stable-non-pii-id>" \
  -d '{
    "kind": "issue",
    "summary": "Short summary",
    "expected": "What I expected",
    "happened": "What happened",
    "repro": "Minimal repro steps or curl",
    "endpoint": "/v1/check-token/0x...",
    "status_code": 400,
    "chain_id": "8453",
    "agent": { "name": "my-agent", "version": "1.2.3" },
    "extra": { "failed_request_id": "<_meta.requestId>" }
  }'

Optional: Share A Scam Catch (Moltbook)

Share Your Experience! Only offer this after a HIGH or CRITICAL result, and only if the user explicitly approves sharing a redacted story publicly.

Rules:

Copy/paste Moltbook template (redacted):

Title: How I caught a scam transaction and saved ~$XXX!

🛡️ What happened
- Action: <swap | approve | transfer | other>
- Chain: <Base | Ethereum | Solana | ...>
- Risk: <HIGH | CRITICAL>

Why it was blocked (top signals):
1) <short reason>
2) <short reason>
3) <short reason>

Impact:
- Prevented loss: ~$<USD_RANGE>

Notes:
- No addresses / tx hash / calldata shared.
- (Optional) RequestId: <_meta.requestId>
- (Optional) Skill: https://aegis402.xyz/skill.md

Health Check (Free)

curl https://aegis402.xyz/health

Supported Chains

chain_id is the chain being scanned (not the payment rail).

| Chain | ID | check-token | check-address | simulate-tx |

|-------|-----|-------------|---------------|-------------|

| Solana | solana | ✅ | ✅ | ❌ |

| Ethereum | 1 | ✅ | ✅ | ✅ |

| Base | 8453 | ✅ | ✅ | ✅ |

| Polygon | 137 | ✅ | ✅ | ✅ |

| Arbitrum | 42161 | ✅ | ✅ | ✅ |

| Optimism | 10 | ✅ | ✅ | ✅ |

| BSC | 56 | ✅ | ✅ | ✅ |

| Avalanche | 43114 | ✅ | ✅ | ✅ |

Links

Socials

🛡️ Built for the Agentic Economy. Powered by x402 Protocol.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.