{"uid":"cap_7tD8atpMbXJmWSNCHOZsz","slug":"brainiac-file-extension-mismatch-detector-943d00d2","name":"BRAINIAC File Extension Mismatch Detector","description":"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.","url":"https://www.brainiac.software/api/v1/file-security/file-extension-mismatch-detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}},"additionalProperties":false},"maxItems":40},"artifacts":{"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},"maxArchiveDepth":{"type":"number","maximum":5,"minimum":1},"maxInflateBytes":{"type":"number","maximum":2000000,"minimum":1000}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KT_MKqRom8UHyKgjNn29M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects file extension/format mismatches (e.g. double extensions, magic byte conflicts) to identify potentially disguised malicious files","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Catch disguised malware in uploads","prompt":"A user just uploaded a file called 'report.docx.exe' to our platform — can you check it for extension mismatches or double-extension tricks to see if it might be a disguised executable?"},{"title":"Email attachment security screening","prompt":"I received an email attachment named 'invoice.pdf' but I'm suspicious — can you analyze the base64 content and filename to see if the file's actual format matches the .pdf extension or if it's something dangerous?"},{"title":"Automated file intake pipeline check","prompt":"Before we process this batch of user-submitted files, can you run extension mismatch detection on this file named 'photo.jpg' with this base64 content to confirm its magic bytes actually match a JPEG and flag it if they don't?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:51.355Z","isFirstParty":false,"canonicalSlug":"brainiac-file-extension-mismatch-detector-943d00d2"}