# BRAINIAC Authentication Pattern Analyzer

> BRAINIAC Authentication Pattern Analyzer 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-12).

Analyzes a sequence of authentication events to detect abnormal patterns such as credential stuffing, burst failures, and account probing

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/identity-security/authentication-pattern-analyze?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-authentication-pattern-analyzer-74ba4a0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nQnJdojqx04IH1qFKZx4-

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-authentication-pattern-analyzer-74ba4a0a -d '<json body>'
```

Example prompt: Analyze these authentication events for suspicious patterns — I've got a sequence of login attempts for user alice@example.com over the last hour with multiple failures from different IPs in the US, Germany, and Brazil, followed by a successful login from Brazil. Tell me if this looks like credential stuffing or account probing.

## When to prefer this

Use this endpoint when you need to analyze a batch of authentication log events for behavioral anomalies without setting up a dedicated SIEM or fraud platform. It is ideal for lightweight, on-demand threat detection where you supply the events and want structured signal output with evidence and confidence scoring. Prefer this over generic log analyzers when you specifically need authentication-domain pattern matching such as credential stuffing, burst failures, or impossible travel detection.

## Known failure modes

- Insufficient events provided — fewer than the minimum needed to establish a pattern
- Malformed event timestamps or missing required fields cause parsing errors
- Events with no IP or outcome fields reduce detection quality
- Very short time windows may not trigger burst detection thresholds
- CSV or JSON input exceeds the 200,000 character limit
- File upload exceeds the 12MB base64 limit
- Payment failure via x402 returns HTTP 402 before analysis occurs

## 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 list of threat signal items, each with a title, status, confidence level, first/last observed timestamps, pattern reasons (e.g. burst_failures, fail_then_success, many_source_ips, many_countries), observed facts, inferred threat description, evidence entries with individual event facts and confidence, related event IDs, and any mitigating factors. The detector field identifies the analysis engine used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "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",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "events": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "ip": {
      "type": "string",
      "maxLength": 80
     },
     "asn": {
      "type": "string",
      "maxLength": 80
     },
     "isVpn": {
      "type": "boolean"
     },
     "action": {
      "type": "string",
      "maxLength": 120
     },
     "labels": {
      "type": "array",
      "items": {
       "type": "string",
       "maxLength": 80
      },
      "maxItems": 40
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "userId": {
      "type": "string",
      "maxLength": 120
     },
     "geoCity": {
      "type": "string",
      "maxLength": 120
     },
     "isProxy": {
      "type": "boolean"
     },
     "outcome": {
      "enum": [
       "success",
       "failure",
       "challenge",
       "unknown"
      ],
      "type": "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "auth-pattern-u1-E1",
    "title": "Abnormal authentication pattern",
    "lastAt": "2026-11-04T20:05:00.000Z",
    "source": "Caller-supplied auth events; local correlation only",
    "status": "signal",
    "firstAt": "2026-11-04T20:00:00.000Z",
    "reasons": [
     "burst_failures",
     "fail_then_success",
     "many_source_ips",
     "many_countries"
    ],
    "detector": "authentication-pattern-analyze",
    "evidence": [
     {
      "at": "2026-11-04T20:00:00.000Z",
      "fact": "authentication outcome=failure ip=203.0.113.1 geo=US",
      "eventId": "E1",
      "inference": "Pattern based on caller-supplied auth fields only.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:01:00.000Z",
      "fact": "authentication outcome=failure ip=203.0.113.2 geo=US",
      "eventId": "E2",
      "inference": "Pattern based on caller-supplied auth fields only.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:02:00.000Z",
      "fact": "authentication outcome=failure ip=198.51.100.3 geo=DE",
      "eventId": "E3",
      "inference": "Pattern based on caller-supplied auth fields only.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:03:00.000Z",
      "fact": "authentication outcome=failure ip=192.0.2.4 geo=FR",
      "eventId": "E4",
      "inference": "Pattern based on caller-supplied auth fields only.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:04:00.000Z",
      "fact": "authentication outcome=failure ip=203.0.113.5 geo=BR",
      "eventId": "E5",
      "inference": "Pattern based on caller-supplied auth fields only.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:05:00.000Z",
      "fact": "authentication outcome=success ip=203.0.113.5 geo=BR",
      "eventId": "E6",
      "inference": "Pattern based on caller-supplied auth fields only.",
      "confidence": "medium"
     }
    ],
    "confidence": "high",
    "observedFacts": [
     "5 failures within 60 minutes.",
     "Failures followed by at least one success in the same window.",
     "5 distinct source IPs in the window.",
     "4 distinct countries in the window."
    ],
    "inferredThreat": "Burst failures, fail-then-success, or high IP/device diversity can indicate credential stuffing or account probing.",
    "relatedEventIds": [
     "E1",
     "E2",
     "E3",
     "E4",
     "E5",
     "E6"
    ],
    "miti
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-authentication-pattern-analyzer-74ba4a0a/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)
