# BRAINIAC Domain Security Infrastructure Health Grader

> BRAINIAC Domain Security Infrastructure Health Grader 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-13).

Analyzes DNS records, TLS certificate, and domain metadata to produce an infrastructure health grade and security exposure percentage for a domain

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/domain-security/infrastructure-health?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-domain-security-infrastructure-health-grader-3b6d2a58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_epqlOGoy07xWb08boBlNp

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-domain-security-infrastructure-health-grader-3b6d2a58 -d '<json body>'
```

Example prompt: Can you grade the infrastructure security health of example.com using these DNS records — an A record pointing to 93.184.216.34, an MX record for mail.example.com, and a TXT record with 'v=spf1 include:_spf.example.com ~all' — and a TLS cert covering example.com and www.example.com that expires 2025-12-01 using TLS_AES_256_GCM_SHA384?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call, no-account security health assessment of a domain's DNS and TLS infrastructure — especially in agentic workflows where you supply your own DNS records and certificate data for analysis rather than needing live DNS lookups. Prefer this over manual security audits or heavyweight scanning tools when you need a structured grade and exposure score for use in automated compliance checks, vendor risk assessments, or pre-launch security gates. The fixed $0.04 USDC price via x402 makes it ideal for high-frequency automated checks.

## Known failure modes

- Missing required DNS records array returns a validation error
- Certificate object missing required fields (names, not_after, ciphers) causes a 400 error
- Domain string exceeding 253 characters is rejected
- Invalid date format for as_of or not_after (not YYYY-MM-DD) causes schema validation failure
- More than 50 DNS records or 20 certificate names/ciphers exceeds array limits and returns an error
- Unrecognized DNS record type outside the allowed enum returns a validation error

## 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

A JSON object containing an infrastructure_health_grade (letter grade such as A, B, C, D, or F) and a security_exposure_percentage (0–100 integer) reflecting the proportion of the domain's infrastructure that is insecure or misconfigured based on DNS records, TLS certificate validity, cipher strength, and configuration posture.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "as_of": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
  },
  "domain": {
   "type": "string",
   "maxLength": 253,
   "minLength": 1
  },
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "type",
     "name",
     "value"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 253,
      "minLength": 1
     },
     "type": {
      "enum": [
       "A",
       "AAAA",
       "CNAME",
       "TXT",
       "NS",
       "MX"
      ],
      "type": "string"
     },
     "value": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50,
   "minItems": 1
  },
  "certificate": {
   "type": "object",
   "required": [
    "names",
    "not_after",
    "ciphers"
   ],
   "properties": {
    "names": {
     "type": "array",
     "items": {
      "type": "string",
      "maxLength": 253,
      "minLength": 1
     },
     "maxItems": 20
    },
    "ciphers": {
     "type": "array",
     "items": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "maxItems": 20
    },
    "not_after": {
     "type": "string",
     "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "infrastructure_health_grade": "F",
  "security_exposure_percentage": 85
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-domain-security-infrastructure-health-grader-3b6d2a58/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)
