# BRAINIAC Payload Anomaly Score

> BRAINIAC Payload Anomaly Score is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-13).

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.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/security/payload-anomaly-score?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-payload-anomaly-score-30a46bd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Jq8vtykt-uOzNFfUF1Fj0

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-payload-anomaly-score-30a46bd3 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## 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: 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).

## Request schema (JSON Schema)

```json
{
 "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": {}
    }
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-payload-anomaly-score-30a46bd3/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)
