# BRAINIAC Cookie Security Audit

> BRAINIAC Cookie Security Audit 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-16).

Audits HTTP cookies for security misconfigurations such as missing Secure, HttpOnly, and SameSite attributes

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/security-configuration/cookie-audit?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-cookie-security-audit-20a390c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ED0fuEzR1r16lL3eM75xd

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-cookie-security-audit-20a390c9 -d '<json body>'
```

Example prompt: Can you audit the cookies on https://www.example.com for security issues — specifically check whether the session cookie has the Secure, HttpOnly, and SameSite attributes set properly, using HTTPS transport?

## When to prefer this

Use this endpoint when you need a lightweight, no-account, pay-per-call cookie security scan of a public-facing URL. It is ideal for automated security pipelines, pre-deployment checks, or compliance validation where you want fast, structured findings about cookie attribute hygiene without setting up a full vulnerability scanner. It is not a substitute for a full penetration test and only inspects publicly observable cookies from unauthenticated GET requests.

## Known failure modes

- Unreachable URL returns no cookie data and an error status
- Site redirects or requires authentication — only public GET requests are made, so protected cookies may not appear
- TLS errors or mismatched hostnames may prevent connection
- Missing or empty Set-Cookie headers result in no cookie findings
- Paths or endpoints not listed in the request are not checked
- Rate limiting or firewall blocks may cause unavailable checks

## How this service works

Check Secure, HttpOnly, and SameSite on Set-Cookie headers from one public response or from cookie lines supplied by the caller. Cookie values are not returned.

## Output

Returns a structured JSON object listing each cookie found, its security attributes (Secure, HttpOnly, SameSite), and a findings array with confirmed issues and recommendations. Each finding includes a code, severity kind (confirmed or recommendation), a plain-English detail, and the affected cookie name. Also includes counts of confirmed issues, recommendations, unavailable checks, the final resolved URL, transport protocol, HTTP status code, timestamp, and a list of audit limitations.

## 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",
  "cookies": [
   {
    "name": "session",
    "secure": false,
    "httpOnly": false,
    "sameSite": ""
   }
  ],
  "finalUrl": "",
  "findings": [
   {
    "code": "cookie_secure_missing",
    "kind": "confirmed",
    "detail": "This cookie was set on HTTPS without the Secure attribute.",
    "subject": "session"
   },
   {
    "code": "cookie_httponly_missing",
    "kind": "recommendation",
    "detail": "This cookie does not set HttpOnly. Not every cookie needs that attribute.",
    "subject": "session"
   },
   {
    "code": "cookie_samesite_missing",
    "kind": "recommendation",
    "detail": "SameSite was not set.",
    "subject": "session"
   }
  ],
  "checkedAt": "2026-11-03T16:00:00.000Z",
  "transport": "https",
  "httpStatus": 0,
  "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.",
   "A path or endpoint is requested only when the caller lists it.",
   "Cookie values are not copied into the response.",
   "An unavailable check means that configuration was not in the response."
  ],
  "requestedUrl": "",
  "requestsSent": 0,
  "websiteSecure": false,
  "confirmedCount": 1,
  "unavailableCount": 0,
  "securityDetermined": false,
  "recommendationCount": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-cookie-security-audit-20a390c9/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)
