# Khipu Security Headers Auditor

> Khipu Security Headers Auditor is a paid API for AI agents from khipu-x402.khipu-agency.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Audits a URL's HTTP security headers and returns a 0-100 score with severity-ranked findings and remediation advice covering HSTS, CSP, clickjacking, cookie flags, and info leaks.

## Facts

- Endpoint: GET https://khipu-x402.khipu-agency.workers.dev/v1/security-headers
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/khipu-security-headers-auditor-aafd2944
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g6gxZ6V1Ui8t2QUmu2uFL

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 khipu-security-headers-auditor-aafd2944
```

Example prompt: Can you run a security headers audit on https://example.com and tell me the score, what's missing or misconfigured — like HSTS, CSP, clickjacking protection, cookie flags — and how to fix each issue?

## When to prefer this

Choose this endpoint when you need a quick, structured security-header audit with a numeric score and actionable fixes for a specific URL — especially useful in CI/CD pipelines, vendor assessments, or pre-launch reviews. Prefer it over manual header inspection tools when you need machine-readable severity ratings and remediation steps. It is best suited for single-URL audits rather than broad crawls or full penetration testing.

## Known failure modes

- Invalid or unreachable URL returns an error — target must be accessible from the auditor's network
- Non-HTTP/HTTPS URLs may be rejected by the URI format validator
- Servers behind auth walls or bot-blocking may return incomplete header sets, reducing audit accuracy
- Rate limiting or network timeouts on the target URL can cause partial or failed audits
- Malformed URL input fails schema validation before the request is made

## How this service works

Security headers audit for a URL — HSTS, CSP, clickjacking, cookie flags, info leaks. Returns score 0-100, findings with severity and fixes.

## Output

Returns a numeric security score from 0 to 100, a list of security findings each tagged with severity level (e.g. critical, high, medium, low) and category (HSTS, CSP, clickjacking, cookie flags, information leaks), plus actionable remediation recommendations for each finding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/khipu-security-headers-auditor-aafd2944/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from khipu-x402.khipu-agency.workers.dev](https://www.zero.xyz/host/khipu-x402.khipu-agency.workers.dev/llms.txt)
