# BRAINIAC Config Hardening Grade API

> BRAINIAC Config Hardening Grade API 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 a DevOps configuration file (e.g. Dockerfile) for security vulnerabilities and returns a letter grade with prioritized, actionable findings

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/devops/config-hardening-grade?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-config-hardening-grade-api-aba3a8c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_514otOWiITDFpUlBX7lIU

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-config-hardening-grade-api-aba3a8c7 -d '<json body>'
```

Example prompt: Can you security-grade this Dockerfile for me and tell me what the biggest vulnerabilities are, in priority order? Here's the content: FROM ubuntu:latest\nUSER root\nEXPOSE 22\nRUN curl https://example.com/install.sh | sh\nCMD ["bash"]

## When to prefer this

Choose this endpoint when you need a structured, machine-readable security audit of a container or DevOps configuration file with graded severity and remediation steps — especially in automated CI/CD pipelines or agent workflows where pay-per-call with no account setup (via x402/USDC) is preferred over subscription-based static analysis tools.

## Known failure modes

- Empty or missing config field returns validation error
- Config exceeding 200,000 character limit rejected
- Malformed JSON input returns 400-level error
- Payment failure via x402 returns 402 Payment Required
- Service unavailability returns 5xx 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

Returns a JSON object with a security grade (A–F), a sha256 audit receipt for verification, a vulnerability percentage, and an array of prioritized findings each containing a code, the offending line number and block, a plain-English detail, a remediation suggestion, and a numeric impact score.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "config": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "audit_receipt": "sha256:fba37df1e56ca384b4942834c386359eab0c441bf7843afdb7f2fb7faf995c31",
  "security_grade": "F",
  "prioritized_findings": [
   {
    "code": "runs_as_root",
    "line": 2,
    "block": "USER root",
    "detail": "The last USER in the final stage is root.",
    "remediation": "Add a USER instruction with a non-root uid before the final command.",
    "impact_score": 34
   },
   {
    "code": "piped_remote_script",
    "line": 4,
    "block": "RUN curl https://example.com/install.sh | sh",
    "detail": "A remote script is piped into a shell. The script was not downloaded or executed.",
    "remediation": "Download a pinned script, check its checksum, and run that file.",
    "impact_score": 30
   },
   "…"
  ],
  "vulnerability_percentage": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-config-hardening-grade-api-aba3a8c7/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)
