# BRAINIAC Attack Sequence Detect

> BRAINIAC Attack Sequence Detect is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-12).

Analyzes a sequence of security events to detect multi-step attack patterns such as auth failures followed by success, using local rule-based analysis over caller-supplied data.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/security-signals/attack-sequence-detect?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-attack-sequence-detect-1bdb5fbc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gwKLvBaENTZNApuvjV0Z9

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-attack-sequence-detect-1bdb5fbc -d '<json body>'
```

Example prompt: Analyze these authentication events for multi-step attack sequences — I have a series of login failures followed by a success for user u9 on host auth.example.com between 7:00pm and 7:02pm and I want to know if this matches a known attack pattern like auth_fail_then_success.

## When to prefer this

Choose this endpoint when you have structured security event data and need fast, local rule-based attack sequence detection without an API key, threat intel subscription, or external network access. It is ideal for agents performing automated triage of authentication or audit logs, especially in privacy-sensitive contexts where raw events should not be sent to a third-party threat intelligence platform. It is not suitable when you need real-time threat intelligence enrichment, CVE lookups, or confirmed attack verdicts backed by external data sources.

## Known failure modes

- Insufficient events provided — no sequences detected if the event list is too sparse or missing required fields
- Truncated input — events exceeding maxLength limits may be silently dropped
- Missing timestamps — events without 'at' fields may not correlate correctly across time windows
- False negatives — attack patterns not covered by local rules will not be detected
- False positives — legitimate auth retry behavior may match auth_fail_then_success pattern
- confirmedAttack is always false — the endpoint cannot confirm attacks, only signal pattern matches

## 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 detected attack sequences as 'items', each with an ID, title, first/last timestamps, matched pattern reasons, confidence level, observed facts, inferred threat hypothesis, confirmedAttack flag, and related event IDs. Also includes a findings array with codes and details, metadata about whether the network or paid providers were accessed, and a limitations section clarifying the local-only nature of the 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": "attack-sequence-detect-E1",
    "title": "Auth failures followed by success",
    "lastAt": "2026-11-04T19:02:00.000Z",
    "source": "Caller-supplied events; local rules only",
    "status": "signal",
    "firstAt": "2026-11-04T19:00:00.000Z",
    "reasons": [
     "sequence_match",
     "auth_fail_then_success"
    ],
    "detector": "attack-sequence-detect",
    "evidence": [
     {
      "at": "2026-11-04T19:00:00.000Z",
      "fact": "Observed step 1 event.",
      "eventId": "E1",
      "inference": "Fits pattern auth_fail_then_success within 180 minutes.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T19:02:00.000Z",
      "fact": "Observed step 2 event.",
      "eventId": "E3",
      "inference": "Fits pattern auth_fail_then_success within 180 minutes.",
      "confidence": "medium"
     }
    ],
    "confidence": "medium",
    "observedFacts": [
     "Step 1: auth_failure at 2026-11-04T19:00:00.000Z",
     "Step 2: auth_success at 2026-11-04T19:02:00.000Z"
    ],
    "inferredThreat": "Supplied events match local sequence pattern \"auth_fail_then_success\" for actor/host key u9. Not a confirmed attack.",
    "confirmedAttack": false,
    "relatedEventIds": [
     "E1",
     "E3"
    ]
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "attack_sequence",
    "kind": "conflict",
    "detail": "Sequence pattern auth_fail_then_success matched with confidence=medium; confirmedAttack=false.",
    "subject": "attack-sequence-detect-E1"
   }
  ],
  "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 records. Missing values are not invented.",
   "Observed facts are separated from inferred threat hypotheses. Events are not labeled confirmed attacks without sufficient multi-signal evidence.",
   "No paid threat-intel feed or endpoint agent is used and no API key is required.",
   "Severity scores are explainable rule weights over supplied detections/events, not vendor risk scores."
  ],
  "sequenceCount": 1,
  "apiKeyRequired": false,
  "networkAccessed": false,
  "paidProviderUsed": false,
  "confirmedAttackClaimed": false,
  "infrastructureConnected": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-attack-sequence-detect-1bdb5fbc/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)
