# Homoglyph Attack Detector / Unicode Lookalike Scanner

> Homoglyph Attack Detector / Unicode Lookalike Scanner is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.003000/call, status unknown (last checked 2026-09-14).

Detects homoglyph and lookalike characters (Cyrillic, Greek, fullwidth, mathematical) used in phishing attacks, plus zero-width and RTL-override characters in text strings.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/homoglyph-check
- Price: $0.003000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-6a4f221a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TNnTBehIimIV0wcUcO88u

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 x402-deployer-x402-deployer-workers-dev-6a4f221a -d '<json body>'
```

Example prompt: Can you scan this domain name 'payраl.com' for homoglyph attacks — check if any characters are Cyrillic, Greek, fullwidth, or mathematical lookalikes, and also flag any zero-width or RTL-override characters?

## When to prefer this

Choose this endpoint when you need to detect Unicode-based phishing attacks, IDN homograph attacks, or hidden character tricks in domains, URLs, usernames, or any user-submitted text. Ideal for security pipelines, domain validation, brand protection, and anti-phishing workflows where detecting visual spoofing is critical.

## Known failure modes

- Empty or missing input string returns validation error
- Extremely long strings may be truncated or rejected
- Non-string input types cause parsing errors
- Network timeout on Cloudflare Worker if under load
- Payment failure (insufficient USDC) returns 402 status

## How this service works

Homoglyph attack detector / Unicode lookalike scanner. Detects Cyrillic / Greek / fullwidth / mathematical lookalikes used in phishing. Plus zero-width / RTL-override chars.

## Output

Returns a structured report identifying suspicious characters, their Unicode codepoints, the lookalike category (Cyrillic, Greek, fullwidth, mathematical, zero-width, RTL-override), positions in the string, and an overall risk assessment indicating whether the input is likely a phishing attempt.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Input string to scan (domain, email, username, or arbitrary text). UTF-8, max ~10k chars."
      }
     }
    },
    "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",
     "properties": {
      "text": {
       "type": "string"
      },
      "ascii_only": {
       "type": "boolean"
      },
      "normalized": {
       "type": "string"
      },
      "risk_level": {
       "type": "string"
      },
      "risk_score": {
       "type": "integer"
      },
      "text_length": {
       "type": "integer"
      },
      "block_counts": {
       "type": "object",
       "properties": {
        "Cyrillic": {
         "type": "integer"
        }
       }
      },
      "is_suspicious": {
       "type": "boolean"
      },
      "homoglyph_count": {
       "type": "integer"
      },
      "invisible_count": {
       "type": "integer"
      },
      "has_mixed_scripts": {
       "type": "boolean"
      },
      "homoglyph_findings": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "char": {
          "type": "string"
         },
         "block": {
          "type": "string"
         },
         "index": {
          "type": "integer"
         },
         "codepoint": {
          "type": "string"
         },
         "impersonates": {
          "type": "string"
         }
        }
       }
      },
      "invisible_findings": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-6a4f221a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
