# BRAINIAC CORS Policy Audit

> BRAINIAC CORS Policy Audit 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-17).

Audits a web endpoint's CORS policy and security headers, returning confirmed misconfigurations and unavailable checks.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/security-configuration/cors-policy-audit?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-cors-policy-audit-01a47f80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DF3WaKBx4ZM75blWELZ4T

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-cors-policy-audit-01a47f80 -d '<json body>'
```

Example prompt: Can you audit the CORS policy on https://api.myapp.com checking from origin https://evil.example.com, and also check the paths /users and /data for any wildcard or credential-leaking misconfigurations?

## When to prefer this

Use this endpoint when you need a lightweight, no-account, pay-per-call CORS and security header audit without spinning up a full scanner. It is ideal for spot-checking individual endpoints before deployment, verifying third-party API configurations, or integrating a quick security gate into an agent workflow. It is not a full penetration test and does not attempt authentication or brute force — prefer it for passive header analysis rather than deep vulnerability scanning.

## Known failure modes

- Target URL is unreachable or returns a non-HTTP error — findings may be empty or httpStatus 0
- No origin supplied — cors_origin_untested finding returned, reflection not tested
- Rate limiting or firewall on target blocks the probe request — unavailable findings returned
- Malformed URL input rejected with validation error
- TLS mismatch or expired certificate on target — may appear in TLS findings or cause connection failure

## How this service works

Read CORS response headers. When an origin is supplied, it is sent once on the public GET. A wildcard, or a reflected origin with credentials, is confirmed. No other origins are tried.

## Output

A JSON object with a list of findings (each with a code, kind of 'confirmed' or 'unavailable', detail, and subject header), the final and requested URLs, the detected allow-origin and allow-credentials values, counts of confirmed issues and recommendations, a websiteSecure boolean, number of requests sent, a checkedAt timestamp, and a limitations disclaimer list.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tls": {
   "type": "object",
   "properties": {
    "issuer": {
     "type": "string",
     "maxLength": 200
    },
    "subject": {
     "type": "string",
     "maxLength": 200
    },
    "validTo": {
     "type": "string",
     "maxLength": 80
    },
    "protocol": {
     "type": "string",
     "maxLength": 40
    },
    "validFrom": {
     "type": "string",
     "maxLength": 80
    },
    "authorized": {
     "type": "boolean"
    },
    "hostnameMatches": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "url": {
   "type": "string",
   "pattern": "^https?:\\/\\/\\S+$",
   "maxLength": 2000,
   "minLength": 8
  },
  "paths": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 200,
    "minLength": 1
   },
   "maxItems": 4
  },
  "origin": {
   "type": "string",
   "maxLength": 200,
   "minLength": 8
  },
  "headers": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name",
     "value"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "value": {
      "type": "string",
      "maxLength": 4000
     }
    },
    "additionalProperties": false
   },
   "maxItems": 40
  },
  "endpoints": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^https?:\\/\\/\\S+$",
    "maxLength": 2000,
    "minLength": 8
   },
   "maxItems": 4
  },
  "transport": {
   "enum": [
    "http",
    "https"
   ],
   "type": "string"
  },
  "setCookies": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 2000
   },
   "maxItems": 20
  },
  "contentSecurityPolicy": {
   "type": "string",
   "maxLength": 8000
  },
  "contentSecurityPolicyReportOnly": {
   "type": "string",
   "maxLength": 8000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "checked",
  "finalUrl": "",
  "findings": [
   {
    "code": "cors_wildcard",
    "kind": "confirmed",
    "detail": "The response allows any origin.",
    "subject": "access-control-allow-origin"
   },
   {
    "code": "cors_wildcard_credentials",
    "kind": "confirmed",
    "detail": "The response allows any origin and also allows credentials.",
    "subject": "access-control-allow-credentials"
   },
   "…"
  ],
  "checkedAt": "2026-11-03T16:00:00.000Z",
  "httpStatus": 0,
  "allowOrigin": "*",
  "limitations": [
   "These checks do not show that a website is secure.",
   "Only one public GET is sent per supplied URL or path. No login, brute force, exploit, or credential test is attempted.",
   "…"
  ],
  "allowMethods": "",
  "requestedUrl": "",
  "requestsSent": 0,
  "websiteSecure": false,
  "confirmedCount": 2,
  "allowCredentials": "true",
  "unavailableCount": 1,
  "securityDetermined": false,
  "recommendationCount": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-cors-policy-audit-01a47f80/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)
