# BRAINIAC Door Access Pattern Detector

> BRAINIAC Door Access Pattern Detector 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 door access event logs to detect suspicious patterns such as repeated denials, forced doors, and tailgating that may indicate unauthorized physical access attempts.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/physical-security/door-access-pattern-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-door-access-pattern-detector-6a1ae556
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SYJ7zC5b0q2wkL4vS-Bbo

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-door-access-pattern-detector-6a1ae556 -d '<json body>'
```

Example prompt: Can you analyze these door access logs from our main building and flag any suspicious patterns — I've got a CSV with badge swipe events including door IDs, timestamps, outcomes like granted or denied or forced, and user IDs, and I want to know if anything looks like an unauthorized access attempt.

## When to prefer this

Use this endpoint when you have structured door access event logs (CSV, JSON, or structured event arrays) and need automated pattern detection for physical security anomalies like repeated denials, forced doors, or held-open alarms. Prefer this over general-purpose LLM analysis when you need structured, auditable findings with confidence scores and evidence chains. Ideal for AI security agents that need pay-per-call, no-account physical security analysis paid in USDC via x402.

## Known failure modes

- Insufficient events provided — no patterns detected if log data is too sparse
- Missing required fields in events (e.g. no outcome or doorId) may reduce detection accuracy
- Truncated or malformed CSV/JSON input may cause parsing errors
- Events outside the expected schema structure may be silently ignored
- No network connectivity to physical security systems — analysis is strictly local to supplied data

## 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 access pattern signals, each with a title, confidence level, first and last seen timestamps, observed facts, inferred threat description, supporting evidence events, related event IDs, and whether it constitutes a confirmed incident. Also includes top-level findings with codes and details, a checked-at timestamp, item count, and limitations disclaiming that physical devices are never contacted and facts are strictly derived from caller-supplied data.

## 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
     },
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "zone": {
      "type": "string",
      "maxLength": 120
     },
     "value": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "doorId": {
      "type": "string",
      "maxLength": 120
     },
     "labels": {
      "type": "array",
      "items": {
       "type": "string",
       "maxLength": 80
      },
      "maxItems": 40
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "userId": {
      "type": "string",
      "maxLength": 120
     },
     "badgeId": {
      "type": "string",
      "maxLength": 120
     },
     "message": {
      "type": "string",
      "maxLength": 4000
     },
     "outcome": {
      "enum": [
       "gra
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "door-pattern-door_a-D1",
    "title": "Unusual door-access pattern",
    "lastAt": "2026-11-04T20:03:00.000Z",
    "source": "Caller-supplied door/access logs; local rules",
    "status": "signal",
    "firstAt": "2026-11-04T20:00:00.000Z",
    "reasons": [
     "repeated_denials",
     "forced_door"
    ],
    "detector": "door-access-pattern-detect",
    "evidence": [
     {
      "at": "2026-11-04T20:00:00.000Z",
      "fact": "access; door=door-a; outcome=denied",
      "eventId": "D1",
      "inference": "Door-pattern indicator only; not a confirmed physical incident.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:01:00.000Z",
      "fact": "access; door=door-a; outcome=denied",
      "eventId": "D2",
      "inference": "Door-pattern indicator only; not a confirmed physical incident.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:02:00.000Z",
      "fact": "access; door=door-a; outcome=denied",
      "eventId": "D3",
      "inference": "Door-pattern indicator only; not a confirmed physical incident.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T20:03:00.000Z",
      "fact": "forced_open; door=door-a; outcome=forced",
      "eventId": "D4",
      "inference": "Door-pattern indicator only; not a confirmed physical incident.",
      "confidence": "medium"
     }
    ],
    "confidence": "high",
    "observedFacts": [
     "3 denied access attempts within 60 minutes.",
     "1 forced-door indicator(s)."
    ],
    "inferredThreat": "Unusual door activity can indicate unauthorized access attempts or propped doors.",
    "relatedEventIds": [
     "D1",
     "D2",
     "D3",
     "D4"
    ],
    "confirmedIncident": false
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "door_access_pattern",
    "kind": "conflict",
    "detail": "Door-access indicators: repeated_denials, forced_door (confirmedIncident=false).",
    "subject": "door_a"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "itemCount": 1,
  "limitations": [
   "Physical/IoT event logs and telemetry are copied only from caller-supplied fields. Physical security systems are not contacted and devices are never controlled.",
   "Temporal correlation and anomaly rules run locally over supplied records. Missing values are not invented.",
   "Observed facts are separated from inferred threat hypotheses. Anomalies are not labeled confirmed physic
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-door-access-pattern-detector-6a1ae556/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)
