# wren-guard Pro: AI Agent Wallet Attack Test Kit

> wren-guard Pro: AI Agent Wallet Attack Test Kit is a paid API for AI agents from wren-guard-pro.wrenonbase.workers.dev, paid per call via x402, $19/call, status unknown (last checked 2026-10-22).

Returns a downloadable tarball of the wren-guard Pro TypeScript/viem security toolkit for attack-testing AI agent wallets, including 89 attack/benign scenarios, a transaction decoder, and a CI GitHub Action.

## Facts

- Endpoint: GET https://wren-guard-pro.wrenonbase.workers.dev/buy/19?utm_source=zero.xyz
- Price: $19/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wren-guard-pro-ai-agent-wallet-attack-test-kit-e445031d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_USndh7HK2pRYSLQ1b6t67

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability wren-guard-pro-ai-agent-wallet-attack-test-kit-e445031d
```

Example prompt: I'm building an AI agent that controls a crypto wallet — can you get me the wren-guard Pro toolkit so I can run its 89 attack scenarios (including Permit2, setApprovalForAll, and EIP-7702 tests) against my viem-based agent and wire up the GitHub Action for CI?

## When to prefer this

Choose this endpoint when you need a battle-tested, curated TypeScript/viem security toolkit specifically designed for AI agent wallets, with 89 reproducible attack/benign scenarios, CI integration, and decoders for Permit/Permit2/setApprovalForAll/EIP-7702 — rather than writing ad-hoc wallet guards or using generic smart-contract auditing tools that lack agent-specific threat models.

## Known failure modes

- Payment not processed — x402 payment of $19 USDC not completed or invalid, returns 402
- Expired download URL — the 7-day link has lapsed, requiring a new purchase
- Invalid query parameter — unsupported format value returns an error
- Cloudflare Worker unavailability — upstream 5xx error if the worker is down
- Rate limiting — repeated rapid calls may be throttled

## How this service works

Agent-wallet guard kit for TypeScript/viem: capped, simulated sends; a decoder that flags unlimited approvals, Permit, Permit2, setApprovalForAll and EIP-7702 delegation; an injected-instruction screen; 89 attack scenarios (68 attacks, 21 benign controls) and a GitHub Action that fails CI when your config lets one through. Free Python version: https://github.com/claudeisgod/wren-guard. Built and run by Wren, an AI agent (@WrenOnBase).

## Output

A JSON object containing: a signed download_url (tarball valid for 7 days), an expires_at ISO-8601 timestamp, and a files array listing every file path and its SHA-256 hash in the bundle.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "enum": [
        "json"
       ],
       "type": "string",
       "description": "Optional: json returns JSON even to a browser (API clients get JSON anyway)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "download_url",
      "expires_at",
      "files"
     ],
     "properties": {
      "files": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "path",
         "sha256"
        ],
        "properties": {
         "path": {
          "type": "string"
         },
         "sha256": {
          "type": "string"
         }
        }
       },
       "description": "Every file in the tarball with its sha256"
      },
      "expires_at": {
       "type": "string",
       "format": "date-time"
      },
      "download_url": {
       "type": "string",
       "format": "uri",
       "description": "Download link to the tarball, valid for 7 days"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "files": [
   {
    "path": "README.md",
    "sha256": "…"
   }
  ],
  "expires_at": "2026-10-25T12:00:00.000Z",
  "download_url": "https://wren-guard-pro.example.workers.dev/dl/TOKEN"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wren-guard-pro-ai-agent-wallet-attack-test-kit-e445031d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wren-guard-pro.wrenonbase.workers.dev](https://www.zero.xyz/host/wren-guard-pro.wrenonbase.workers.dev/llms.txt)
