# DeFi Shield PII Scanner

> DeFi Shield PII Scanner is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Scans text for sensitive PII including SSNs, credit card numbers (Luhn-validated), emails, crypto addresses, API keys, JWTs, and private keys

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/safety/pii-scan
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-d207868f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6MiLygycqlHN2M4hbWFFI

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 defi-shield-hazel-vercel-app-d207868f -d '<json body>'
```

Example prompt: Scan this text for any sensitive information like SSNs, credit cards, crypto wallets, or API keys before I send it: 'Contact john.smith@example.com, card 5555555555554444, SSN 987-65-4321, key sk-test1234567890abcdef'

## When to prefer this

Use this endpoint when you need fast, real-time PII detection across multiple sensitive data types in a single call — especially when you need Luhn-validated credit card detection, SSN validation, and crypto address recognition together. Prefer over regex-only solutions when accuracy matters. Ideal for pre-processing user input, log scrubbing, or compliance checks before storing or forwarding data.

## Known failure modes

- Empty or missing text field returns no findings or validation error
- Very long text may exceed processing limits
- Obfuscated or encoded PII (base64, hex) may not be detected
- Partial or malformed SSNs may not pass Luhn/validation checks
- Rate limiting or payment failure at $0.02 USDC per call via x402 protocol

## Output

Returns a JSON object with a list of findings, each containing the PII type, a redacted match, character position, and sensitivity level (high/critical). Also includes a top-level sensitivity rating, pii_detected boolean, total findings count, text length, and analysis timestamp.

## Example request

```json
{
 "text": "Please scan this text for potential sensitive information. Contact: alice.johnson@example.com, Employee ID: 12345, Session token: abc123xyz789, Credit card: 4532015112830366, SSN: 123-45-6789, Crypto wallet: 0xAbCdEf1234567890AbCdEf1234567890AbCdEf12, API key: sk-proj-test1234567890abcdefghij"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to scan for PII and sensitive data"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-d207868f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
