{"uid":"cap_UtSYUMk5H6AeVYMzE62iF","slug":"brainiac-suspicious-script-pattern-detector-146bff72","name":"BRAINIAC Suspicious Script Pattern 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/suspicious-script-pattern-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":"script-S1","title":"Suspicious script patterns","source":"Caller-supplied","status":"signal","reasons":["encoded_command","download_cradle","eval_exec","hidden_window"],"detector":"suspicious-script-pattern-detect","evidence":[{"fact":"Matched script pattern encoded_command. Matched script pattern download_cradle. Matched script pattern eval_exec. Matched script pattern hidden_window.","subject":"S1","inference":"Static regex indicators only; script was not executed.","confidence":"medium"}],"confidence":"high","relatedIds":["S1"],"observedFacts":["Matched script pattern encoded_command.","Matched script pattern download_cradle.","Matched script pattern eval_exec.","Matched script pattern hidden_window."],"inferredThreat":"Suspicious script constructs can indicate download cradles, obfuscation, or living-off-the-land abuse.","confirmedMalware":false}],"status":"detected","findings":[{"code":"script_pattern","kind":"conflict","detail":"Script patterns: encoded_command, download_cradle, eval_exec, hidden_window (confirmedMalware=false).","subject":"S1"}],"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.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AwumKRTU2cD20ILsYYp7m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Statically analyzes scripts and files for suspicious patterns like encoded commands, download cradles, eval/exec abuse, and hidden windows without executing or uploading to external scanners.","exampleAgentPrompt":"Can you statically scan this PowerShell script for suspicious patterns — things like encoded commands, download cradles, eval/exec abuse, or hidden window tricks? I'll give you the file as base64. I want to know what patterns were matched and how confident the detection is, without actually executing the script.","exampleUseCases":[{"title":"CI/CD pipeline script vetting","prompt":"Before I merge this PR, can you scan the deployment script for suspicious patterns like encoded commands or download cradles? Here's the file content — flag anything that looks like living-off-the-land abuse or obfuscation."},{"title":"Phishing email attachment triage","prompt":"I received an email with a suspicious VBScript attachment. Can you check the file for eval/exec abuse, hidden windows, or download cradle patterns? I'll pass you the base64-encoded content of the file."},{"title":"Threat hunting on collected scripts","prompt":"I've pulled several PowerShell scripts from an endpoint during an incident response. Can you analyze each one for obfuscation indicators, encoded command patterns, and download cradles, and tell me the confidence level for each finding?"}],"resultDescription":"Returns a structured JSON with a status field (e.g. 'detected'), a list of items each containing matched pattern reasons (encoded_command, download_cradle, eval_exec, hidden_window), confidence levels (high/medium/low), observed facts vs inferred threats, and a findings array with specific codes and details. Also includes metadata flags: fileExecuted (always false), networkAccessed (always false), paidProviderUsed (always false), and a checkedAt timestamp. Explicitly disclaimed as static analysis only with no malware-free guarantee.","failureModes":["File too large (exceeds 100MB sizeBytes limit or 12MB base64 limit) — request rejected","No script patterns matched — returns status 'clear' with empty items","Encoded/compressed content exceeds decompression caps — partial analysis with limitation noted","Malformed base64 input — parsing error returned","Too many files in batch (exceeds 40 item limit) — request rejected"],"whenToPreferThis":"Choose this endpoint when you need fast, local, no-external-scanner static analysis of scripts for suspicious indicators without sending content to third-party malware services. Ideal for privacy-sensitive environments, CI/CD pipelines, incident response triage, or when you need deterministic regex-based pattern matching with clearly separated observed facts vs inferred threats. Not suitable when you need dynamic sandbox execution, AV signature matching, or a definitive malware-free verdict.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:06.512Z","isFirstParty":false,"canonicalSlug":"brainiac-suspicious-script-pattern-detector-146bff72"}