# lock-smith x402 Security Auditor

> lock-smith x402 Security Auditor is a paid API for AI agents from lock-smith-production.up.railway.app, paid per call via x402, $0.5/call, status unknown (last checked 2026-12-02).

Runs eight automated, non-destructive security probes against a single x402 paid endpoint and returns a SECURE/FINDINGS/EXPOSED verdict with per-finding fix notes.

## Facts

- Endpoint: POST https://lock-smith-production.up.railway.app/v1/audit?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lock-smith-x402-security-auditor-8f513f83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ijq7BGXkxo-fwuk-UdcGr

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 lock-smith-x402-security-auditor-8f513f83 -d '<json body>'
```

Example prompt: Can you run a full lock-smith security audit on my x402 endpoint at https://myservice.example.com/v1/premium — I want to know if the paywall, challenge format, and payment rejection are all airtight?

## When to prefer this

Use lock-smith when you operate an x402 paid route and need rapid, automated, non-destructive security validation — specifically checking paywall presence, challenge integrity, garbage/forged payment rejection, information exposure, error hygiene, body-size caps, and discovery consistency. Prefer this over manual testing or generic HTTP scanners because it is purpose-built for x402 protocol semantics and returns structured, actionable verdicts per check.

## Known failure modes

- Target URL is not an x402 endpoint — returns audit with paywall_present as 'finding' and likely EXPOSED verdict
- Target URL is unreachable or returns a network error — audit may fail or return not_tested for all checks
- Malformed endpoint_url input — validation error returned
- Endpoint uses non-standard x402 challenge format that cannot be parsed — challenge_sanity marked as finding
- Rate limiting or transient errors on the target — some probes may return not_tested

## How this service works

Automated security checks for one x402 endpoint — not a penetration test. Eight non-destructive, unpaid probes: paywall presence, challenge sanity, garbage and forged (invalid-signature) payment rejection, exposure surface, error hygiene, body-size cap, discovery consistency. Returns SECURE / FINDINGS / EXPOSED with a fix note per finding. Use this when you operate an x402 route and want its locks checked the way an attacker would rattle them.

## Output

A JSON object containing: a boolean 'ok' field, the overall verdict (SECURE, FINDINGS, or EXPOSED), a summary with counts of passed/finding/not_tested checks, an array of up to 8 individual check results each with id, name, status, detail prose, optional severity (low/medium/high/critical), and optional fix note, plus the x402 terms observed (price, asset, network, payTo address), the number of probes used, audit version, scope note, and the target URL audited.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "full",
    "compact"
   ],
   "type": "string",
   "default": "full",
   "description": "Response mode. 'full' (default) returns every check's full detail prose. 'compact' returns the same audit with headline summaries for passing checks (findings keep full detail) — for buyers who republish or forward the response; some indexers drop samples over ~1.5 KB."
  },
  "endpoint_url": {
   "type": "string",
   "description": "Full URL of the x402 endpoint (paid route) to audit, e.g. https://service.example.com/v1/endpoint"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "ok",
   "service",
   "audit_version",
   "target",
   "verdict",
   "summary",
   "terms_observed",
   "checks",
   "probes_used",
   "scope_note"
  ],
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "checks": {
    "type": "array",
    "items": {
     "type": "object",
     "required": [
      "id",
      "name",
      "status",
      "detail"
     ],
     "properties": {
      "id": {
       "type": "string"
      },
      "fix": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "detail": {
       "type": "string"
      },
      "status": {
       "enum": [
        "pass",
        "finding",
        "not_tested"
       ],
       "type": "string"
      },
      "severity": {
       "enum": [
        "low",
        "medium",
        "high",
        "critical"
       ],
       "type": "string"
      }
     }
    }
   },
   "target": {
    "type": "string"
   },
   "service": {
    "type": "string"
   },
   "summary": {
    "type": "object",
    "properties": {
     "passed": {
      "type": "integer"
     },
     "findings": {
      "type": "integer"
     },
     "not_tested": {
      "type": "integer"
     },
     "worst_severity": {
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "verdict": {
    "enum": [
     "SECURE",
     "FINDINGS",
     "EXPOSED"
    ],
    "type": "string"
   },
   "scope_note": {
    "type": "string"
   },
   "probes_used": {
    "type": "integer"
   },
   "audit_version": {
    "type": "string"
   },
   "terms_observed": {
    "type": "object",
    "properties": {
     "asset": {
      "type": [
       "string",
       "null"
      ]
     },
     "price": {
      "type": [
       "string",
       "null"
      ]
     },
     "pay_to": {
      "type": [
       "string",
       "null"
      ]
     },
     "network": {
      "type": [
       "string",
       "null"
      ]
     },
     "amount_units": {
      "type": [
       "string",
       "null"
      ]
     }
    }
   }
  }
 },
 "example": {
  "ok": true,
  "checks": [
   {
    "id": "paywall_present",
    "name": "Paywall present",
    "detail": "Unpaid request drew HTTP 402 with a parseable x402 challenge.",
    "status": "pass"
   },
   {
    "id": "challenge_sanity",
    "name": "Challenge sanity",
    "detail": "Challenge terms are complete and consistent: exact on eip155:8453, amount 20000 units ($0.02), payTo 0x097f9685D
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lock-smith-x402-security-auditor-8f513f83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lock-smith-production.up.railway.app](https://www.zero.xyz/host/lock-smith-production.up.railway.app/llms.txt)
