# BRAINIAC Credential Abuse Detection API

> BRAINIAC Credential Abuse Detection API 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 authentication event logs to detect credential abuse patterns such as password spraying, brute-force attempts, and credential stuffing using local rule-based inference.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/security-signals/credential-abuse-detect?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-credential-abuse-detection-api-2a6d4506
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8OoQSVn2r9Z5rg7C9lFFC

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-credential-abuse-detection-api-2a6d4506 -d '<json body>'
```

Example prompt: I have a batch of authentication events from our servers — can you analyze them for credential abuse patterns like password spraying or brute-force attempts, and tell me which credentials and hosts look suspicious?

## When to prefer this

Use this endpoint when you have structured authentication event logs and want fast, local rule-based detection of credential abuse without sending data to a third-party identity provider. It is ideal for AI agents that need pay-per-call, zero-account-setup security analysis over x402. Prefer it over SIEM integrations when you need lightweight, on-demand triage of auth logs from any source (CSV, JSON, structured events). Not suitable for real-time streaming or if you need confirmed threat intelligence from external threat feeds.

## Known failure modes

- Insufficient events provided — no patterns detectable from too few data points
- Malformed event timestamps or missing required fields cause parsing errors
- Events exceed maxItems or field length limits resulting in truncation or rejection
- No credential abuse pattern found — returns status with empty items array
- False negatives possible if events are sparse or attacker behavior is slow/distributed across long time windows

## 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 a list of detected signals with titles, first/last timestamps, detector name, reasons (e.g. repeated_failures, spray_or_reuse_across_hosts), evidence items with per-event facts and confidence, observed facts, inferred threat description, confirmedAttack boolean, and findings with codes and details. Also includes a checkedAt timestamp and a limitations array explaining the scope of the local analysis.

## 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
     },
     "host": {
      "type": "string",
      "maxLength": 253
     },
     "count": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "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
     },
     "message": {
      "type": "string",
      "maxLength": 4000
     },
     "mfaUsed": {
      "type": "boolean"
     },
     "outcome": {
      "enum": [
       "success",
       "failure",
       "unknown"
      ],
      "type": "string"
     },
     "process": {
  
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "credential-abuse-detect-E1",
    "title": "Credential-abuse pattern",
    "lastAt": "2026-11-04T16:03:00.000Z",
    "source": "Caller-supplied events; local rules only",
    "status": "signal",
    "firstAt": "2026-11-04T16:00:00.000Z",
    "reasons": [
     "repeated_failures",
     "fail_then_success",
     "spray_or_reuse_across_hosts"
    ],
    "detector": "credential-abuse-detect",
    "evidence": [
     {
      "at": "2026-11-04T16:00:00.000Z",
      "fact": "outcome=failure host=db-1",
      "eventId": "E1",
      "inference": "Pattern derived from caller-supplied auth outcomes and host fan-out.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T16:01:00.000Z",
      "fact": "outcome=failure host=db-2",
      "eventId": "E2",
      "inference": "Pattern derived from caller-supplied auth outcomes and host fan-out.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T16:02:00.000Z",
      "fact": "outcome=failure host=db-3",
      "eventId": "E3",
      "inference": "Pattern derived from caller-supplied auth outcomes and host fan-out.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T16:03:00.000Z",
      "fact": "outcome=success host=db-3",
      "eventId": "E4",
      "inference": "Pattern derived from caller-supplied auth outcomes and host fan-out.",
      "confidence": "medium"
     }
    ],
    "confidence": "medium",
    "observedFacts": [
     "3 authentication failures were supplied for credential key svc_backup_198_51_100_8.",
     "Observed failures and at least one success for the same credential/source key.",
     "Credential/source key touched 3 distinct hosts."
    ],
    "inferredThreat": "Suspicious credential usage pattern may be present. Not confirmation that credentials were compromised.",
    "confirmedAttack": false,
    "relatedEventIds": [
     "E1",
     "E2",
     "E3",
     "E4"
    ]
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "credential_abuse",
    "kind": "conflict",
    "detail": "Credential-abuse signal status=signal; confirmedAttack=false.",
    "subject": "svc_backup_198_51_100_8"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Security events and logs are copied only from labeled fields supplied by the caller. The caller's network and security infrastructure are not accessed.",
   "Detections are local rule and time-window analyses over supplied reco
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-credential-abuse-detection-api-2a6d4506/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)
