# BRAINIAC Account Sharing Detection

> BRAINIAC Account Sharing Detection 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 account credential sharing patterns such as simultaneous multi-device, multi-location, or multi-user access

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/identity-security/account-sharing-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-account-sharing-detection-1835bde2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-U0h2_Imy3h4yj3fs8nco

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-account-sharing-detection-1835bde2 -d '<json body>'
```

Example prompt: Analyze these login events and tell me if any accounts show account-sharing patterns — look for simultaneous logins from different devices or locations and give me a confidence score for each suspicious account.

## When to prefer this

Use this endpoint when you have raw authentication or access event logs and need to programmatically identify credential-sharing abuse without connecting to any identity provider directly. It is ideal for SaaS platforms enforcing per-seat licensing, streaming services combating password sharing, or enterprise security teams auditing account hygiene. It operates entirely on caller-supplied data with no OAuth or external data source access, making it safe for air-gapped or privacy-sensitive deployments. Prefer this over building custom heuristics when you need structured confidence-scored findings with evidence chains at $0.04 per analysis.

## Known failure modes

- Insufficient event data to establish patterns — returns empty items array
- Malformed event timestamps cause parsing errors
- Missing required event fields (userId, deviceId) reduce detection accuracy
- Very short time windows may produce no signals even when sharing is occurring
- Large event arrays exceeding limits may be truncated
- False negatives if users legitimately roam across devices (business travelers)
- False positives for shared household or family accounts

## 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 structured JSON object with detected sharing signals including: a list of flagged items with titles, confidence levels (high/medium/low), first and last observed timestamps, reason codes (e.g. many_devices_same_account, near_simultaneous_distinct_devices, multi_location_multi_device), detailed evidence per event with facts and inferences, observed facts summary, inferred threat description, related event IDs, mitigating factors, whether compromise is confirmed, and top-level findings with codes and subjects. Also includes metadata such as checkedAt timestamp, limitations of the analysis, and whether OAuth was 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": "account-sharing-u5",
    "title": "Suspicious account-sharing pattern",
    "lastAt": "2026-11-04T18:00:00.000Z",
    "source": "Caller-supplied auth events; local behavioural rules",
    "status": "signal",
    "firstAt": "2026-11-04T10:00:00.000Z",
    "reasons": [
     "many_devices_same_account",
     "near_simultaneous_distinct_devices",
     "multi_location_multi_device"
    ],
    "detector": "account-sharing-detect",
    "evidence": [
     {
      "at": "2026-11-04T10:00:00.000Z",
      "fact": "device=d1; geo=Austin; ua=Chrome/120",
      "eventId": "E1",
      "inference": "Concurrent/diverse device use can indicate sharing or roaming; not proof of compromise.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T10:05:00.000Z",
      "fact": "device=d2; geo=Dallas; ua=Firefox/121",
      "eventId": "E2",
      "inference": "Concurrent/diverse device use can indicate sharing or roaming; not proof of compromise.",
      "confidence": "medium"
     },
     {
      "at": "2026-11-04T18:00:00.000Z",
      "fact": "device=d3; geo=Chicago; ua=Edge/120",
      "eventId": "E3",
      "inference": "Concurrent/diverse device use can indicate sharing or roaming; not proof of compromise.",
      "confidence": "medium"
     }
    ],
    "confidence": "high",
    "observedFacts": [
     "3 devices used by the same account within 24 hours.",
     "Distinct devices authenticated within 15 minutes of each other.",
     "Account active from 3 locations and 3 devices."
    ],
    "inferredThreat": "Multiple devices/locations for one account may indicate credential sharing.",
    "relatedEventIds": [
     "E1",
     "E2",
     "E3"
    ],
    "mitigatingFactors": [],
    "confirmedCompromise": false
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "account_sharing",
    "kind": "conflict",
    "detail": "Account-sharing indicators: many_devices_same_account, near_simultaneous_distinct_devices, multi_location_multi_device (confirmedCompromise=false).",
    "subject": "u5"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "itemCount": 1,
  "oauthUsed": false,
  "limitations": [
   "Authentication logs, access events, accounts, and policy exports are copied only from caller-supplied fields. Identity providers are not contacted and OAuth is not used.",
   "Time correlation, geolocation comparison, and behavioural rules run locally over supplied records. Missing values ar
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-account-sharing-detection-1835bde2/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)
