# BRAINIAC Access Policy Conflict Detector

> BRAINIAC Access Policy Conflict Detector is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-12).

Analyzes access control policy rules to detect conflicting allow/deny entries, priority clashes, and other policy logic errors that could create unintended access or denial outcomes.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/identity-security/access-policy-conflict-detect?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-access-policy-conflict-detector-43ab6781
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UjBKfw9YdMkKVTWbg_ZBo

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-access-policy-conflict-detector-43ab6781 -d '<json body>'
```

Example prompt: I have a JSON export of our access control policies — can you check it for conflicting rules, like any allow and deny entries that target the same role, resource, and action at the same priority?

## When to prefer this

Use this endpoint when you need a fast, no-account, pay-per-call analysis of access control policy documents for logical conflicts — specifically allow/deny contradictions and priority clashes — without connecting to any live identity provider. Ideal for pre-deployment audits, compliance checks, or investigating inconsistent access behavior using policy exports. Prefer this over manual review or heavyweight IAM tools when you want a structured, machine-readable conflict report at low cost ($0.03 USDC per call) with no credential setup.

## Known failure modes

- Malformed or unrecognizable policy format returns no items detected
- Policy input exceeds 200,000 character limit causing request rejection
- Missing or empty policy input results in empty findings
- Ambiguous policy syntax may produce low-confidence or missed conflicts
- Truncated file upload may cause incomplete analysis
- Non-policy content passed as input produces no meaningful findings

## 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 a list of detected conflict items, each including conflict IDs, titles, first/last seen timestamps, conflict reasons (e.g. allow_deny_conflict, equal_priority_conflict), evidence pairs with the specific conflicting rule facts, confidence levels, observed facts, inferred threat description, mitigating factors, and a confirmed-compromise boolean. Also includes a top-level status, itemCount, checkedAt timestamp, and a findings array with short-form conflict codes and details. Limitations of the local-only analysis are explicitly stated.

## 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": "policy-conflict-P1-P2",
    "title": "Conflicting access policy rules",
    "lastAt": "2026-11-04T21:00:00.000Z",
    "source": "Caller-supplied policy export; local comparison only",
    "status": "signal",
    "firstAt": "2026-11-04T21:00:00.000Z",
    "reasons": [
     "allow_deny_conflict",
     "equal_priority_conflict"
    ],
    "detector": "access-policy-conflict-detect",
    "evidence": [
     {
      "at": "2026-11-04T21:00:00.000Z",
      "fact": "allow role:finance read app:payroll priority=100",
      "eventId": "P1",
      "confidence": "high"
     },
     {
      "at": "2026-11-04T21:00:00.000Z",
      "fact": "deny role:finance read app:payroll priority=100",
      "eventId": "P2",
      "inference": "Conflict derived from caller-supplied policy export only.",
      "confidence": "high"
     }
    ],
    "confidence": "high",
    "observedFacts": [
     "Rules P1 (allow) and P2 (deny) target the same principal/resource/action.",
     "Conflicting effects share priority 100."
    ],
    "inferredThreat": "Conflicting allow/deny rules can create unintended access or deny outcomes.",
    "relatedEventIds": [
     "P1",
     "P2"
    ],
    "mitigatingFactors": [],
    "confirmedCompromise": false
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "policy_conflict",
    "kind": "conflict",
    "detail": "Policy conflict via allow_deny_conflict, equal_priority_conflict.",
    "subject": "P1:P2"
   }
  ],
  "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 are not invented.",
   "VPN, proxy, shared-network, and legitimate-travel labels reduce confidence when supplied. A single unusual login is never treated as proof of account compromise.",
   "Observed facts are separated from inferred threat hypotheses. Events are not labeled confirmed compromise without sufficient multi-signal evidence.",
   "No paid identity-threat feed is used and no API key is required."
  ],
  "apiKeyRequired": false,
  "networkAccessed": false,
  "paidProviderUsed": false,
  "identityProviderConnected": false,
  "confirmedCompromiseClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-access-policy-conflict-detector-43ab6781/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)
