# BRAINIAC File Extension Mismatch Detector

> BRAINIAC File Extension Mismatch Detector is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-12).

Detects file extension/format mismatches (e.g. double extensions, magic byte conflicts) to identify potentially disguised malicious files

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/file-security/file-extension-mismatch-detect?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-file-extension-mismatch-detector-943d00d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7tD8atpMbXJmWSNCHOZsz

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 brainiac-file-extension-mismatch-detector-943d00d2 -d '<json body>'
```

Example prompt: Can you check this uploaded file 'invoice.pdf.exe' (I'll give you the base64) for any extension mismatch or double-extension tricks that might mean it's actually a disguised executable?

## When to prefer this

Choose this endpoint when you need fast, accountless, static-only file extension validation with no external scanner dependency and no file execution risk. Ideal for automated file intake pipelines, upload security gates, or agent workflows that need a verifiable, transparent security check at $0.03/call without API keys or account setup. Prefer over full antivirus scanning when you need deterministic, auditable results with clear separation of observed facts vs inferred threats.

## Known failure modes

- Missing or empty filename causes validation failure
- fileBase64 content exceeds 12MB character limit
- Exceeds 40-file limit when using files array
- Archive decompression limits may prevent deep inspection of nested archives
- No magic byte match available for rare or proprietary formats — may return inconclusive
- Static analysis only: cannot detect obfuscated payloads that only manifest at runtime

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object containing a list of items with mismatch signals, finding codes (e.g. extension_mismatch, double_extension), confidence levels (high/medium/low), observed facts (filename, extension, magic bytes), inferred threat description, and an overall status (detected/not_detected). Includes transparency flags: fileExecuted=false, networkAccessed=false, externalScannerUsed=false, and a limitations array clarifying the static-only nature of the analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "properties": {
    "id": {
     "type": "string",
     "maxLength": 80
    },
    "md5": {
     "type": "string",
     "maxLength": 64
    },
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "sha1": {
     "type": "string",
     "maxLength": 80
    },
    "sha256": {
     "type": "string",
     "maxLength": 128
    },
    "source": {
     "type": "string",
     "maxLength": 200
    },
    "filename": {
     "type": "string",
     "maxLength": 260,
     "minLength": 1
    },
    "mediaType": {
     "type": "string",
     "maxLength": 120
    },
    "sizeBytes": {
     "type": "number",
     "maximum": 100000000,
     "minimum": 0
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "md5": {
      "type": "string",
      "maxLength": 64
     },
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "sha1": {
      "type": "string",
      "maxLength": 80
     },
     "sha256": {
      "type": "string",
      "maxLength": 128
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "filename": {
      "type": "string",
      "maxLength": 260,
      "minLength": 1
     },
     "mediaType": {
      "type": "string",
      "maxLength": 120
     },
     "sizeBytes": {
      "type": "number",
      "maximum": 100000000,
      "minimum": 0
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 40
  },
  "reports": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "text"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "text": {
      "type": "string",
      "maxLength": 200000
     },
     "title": {
      "type": "string",
      "maxLength": 200
     },
     "source": {
      "type": "string",
      "maxLength": 200
     }
    },
    "additionalP
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "ext-X1",
    "title": "File extension / format mismatch",
    "source": "Caller-supplied",
    "status": "signal",
    "reasons": [
     "double_extension"
    ],
    "detector": "file-extension-mismatch-detect",
    "evidence": [
     {
      "fact": "filename=invoice.pdf.exe; extension=exe; magic=pe_executable; Double extension pattern: .pdf.exe",
      "subject": "X1",
      "inference": "Compared filename extension to local magic bytes only.",
      "confidence": "high"
     }
    ],
    "confidence": "high",
    "relatedIds": [
     "X1"
    ],
    "observedFacts": [
     "filename=invoice.pdf.exe",
     "extension=exe",
     "magic=pe_executable",
     "Double extension pattern: .pdf.exe"
    ],
    "inferredThreat": "Mismatched extensions are often used to disguise dangerous payloads.",
    "confirmedMalware": false
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "extension_mismatch",
    "kind": "conflict",
    "detail": "Extension mismatch: double_extension (confirmedMalware=false).",
    "subject": "X1"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "itemCount": 1,
  "limitations": [
   "Files and analysis reports are copied only from caller-supplied fields. Uploaded bytes are never executed and are never sent to external malware scanners.",
   "Analysis is static/local only with strict decoded-size, archive-depth, entry-count, and decompression limits.",
   "Observed facts are separated from inferred threat hypotheses. Absence of matched patterns is not a malware-free verdict.",
   "Nested archive inspection lists metadata and may inflate only small members within decompression caps.",
   "No paid threat-intel feed is used and no API key is required."
  ],
  "fileExecuted": false,
  "apiKeyRequired": false,
  "networkAccessed": false,
  "paidProviderUsed": false,
  "externalScannerUsed": false,
  "malwareFreeNotClaimed": true,
  "confirmedMalwareClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-file-extension-mismatch-detector-943d00d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
