{"uid":"cap_Jq8vtykt-uOzNFfUF1Fj0","slug":"brainiac-payload-anomaly-score-30a46bd3","name":"BRAINIAC Payload Anomaly Score","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/security/payload-anomaly-score?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payload":{"anyOf":[{"type":"string","maxLength":200000},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{},"maxItems":5000},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]}}},"responseSchema":{"type":"json","example":{"audit_receipt":"sha256:2bfb1c9dc51ada180dd98ab3a01a76df846bc9f42168ac2c7b0c1e5535b49b0c","risk_breakdown":{"depth_anomaly_risk":15,"size_inflation_risk":0,"type_confusion_risk":35,"injection_vector_risk":100},"anomalies_detected":[{"code":"nosql_operator","path":"$.filter[\"$gt\"]","detail":"This key is a NoSQL operator name. It was not sent to a database.","severity":"high"},{"code":"mixed_array_types","path":"$.flags","detail":"Items in this array use more than one JSON type: boolean, number, string.","severity":"medium"},"…"],"overall_safety_score":57}},"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_xnH4-R_naRQHgekzgaP5k","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":"Analyzes a JSON payload for security anomalies including injection attacks, type confusion, NoSQL operators, SQL tautologies, and structural depth issues, returning a risk breakdown and overall safety score.","exampleAgentPrompt":"Can you check this JSON payload for security issues before I pass it to my database? Here it is: {\"filter\":{\"$gt\":0},\"note\":\"1=1\",\"profile\":{\"bio\":\"<script>alert(1)</script>\"}} — I need an overall safety score and a breakdown of any injection or anomaly risks detected.","exampleUseCases":[{"title":"Sanitize user-submitted form data","prompt":"Before I save this user-submitted profile to my database, can you scan it for SQL injection, NoSQL operators, or XSS — here's the JSON: {\"username\":\"alice\",\"bio\":\"<script>alert('xss')</script>\",\"filter\":{\"$where\":\"1==1\"}} — give me the safety score and flag anything suspicious."},{"title":"Validate incoming webhook payload","prompt":"I just received this webhook payload from an external service and I want to make sure it's safe before processing it: {\"event\":\"order.created\",\"data\":{\"id\":\"' OR 1=1--\",\"flags\":[true,42,\"admin\"]}} — can you run a security anomaly check and tell me if anything looks like an attack?"},{"title":"Pre-flight check on LLM tool call arguments","prompt":"An LLM-generated tool call just produced these arguments and I need to verify they're not malformed or adversarially crafted before executing them: {\"query\":\"SELECT * FROM users WHERE id=1 OR 1=1\",\"options\":{\"$gte\":0}} — please score the payload and list any anomalies with their severity."}],"resultDescription":"Returns a JSON object containing: an audit_receipt (SHA-256 hash for compliance), a risk_breakdown with four numeric risk dimensions (depth_anomaly_risk, size_inflation_risk, type_confusion_risk, injection_vector_risk each 0-100), an anomalies_detected array where each item has a code, path (JSONPath), human-readable detail, and severity (high/medium/low), and an overall_safety_score (0-100, higher means safer).","failureModes":["Payload exceeds 200,000 character limit — request rejected","Malformed JSON in the payload field — schema validation error","Network or x402 payment failure — no score returned","Deeply recursive or circular structures may time out"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call security analysis of a JSON payload with no account setup, particularly for detecting injection attacks (SQL, NoSQL, XSS), type confusion, and structural anomalies. Prefer it over static schema validators when you need risk scoring and human-readable anomaly explanations, and over WAF-level tools when you need programmatic, per-payload results with an audit receipt for compliance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:40:35.961Z","isFirstParty":false,"canonicalSlug":"brainiac-payload-anomaly-score-30a46bd3"}