# CSP Default-Src Audit

> CSP Default-Src Audit is a paid API for AI agents from webschutz.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-30).

Passively audits a public URL or domain for its Content-Security-Policy default-src directive, returning the observed value, verdict, evidence source, and recommended action.

## Facts

- Endpoint: POST https://webschutz.halowerk.com/v1/csp-default-src-audit?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csp-default-src-audit-7d0bcac3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_314tKv9smjalVuzc7RqTS

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 csp-default-src-audit-7d0bcac3 -d '<json body>'
```

Example prompt: Can you do a passive CSP default-src audit on https://example.com and tell me whether its Content-Security-Policy default-src directive passes, what the exact header value is, and what action I should take if it fails?

## When to prefer this

Use this endpoint when you need a lightweight, passive, single-criterion audit of a site's CSP default-src directive without triggering active scans, logins, or payload injection. It is ideal for automated compliance pipelines, pre-deployment checks, and vendor security reviews where only the default-src policy matters. Prefer it over full-scanner endpoints when you want a focused, low-cost ($0.001) signal with a structured verdict and actionable output rather than a broad vulnerability report.

## Known failure modes

- Target URL is unreachable or returns a non-200 status — audit cannot retrieve headers
- Domain resolves but serves no HTTP response — evidence collection fails
- CSP header is set via meta tag rather than HTTP header — passive check may not detect it
- Very large or redirect-heavy targets may time out before headers are captured
- Malformed target string returns a validation error

## How this service works

CSP default source audit fetches current public evidence from the supplied target and evaluates the documented criterion. It returns the observation, threshold, verdict, exact evidence source, limitations and a mode-specific action. The check is passive: no login attempt, payload injection, exploit, purchase, form submission or load test is performed.

## Output

Returns the observed CSP default-src header value (or its absence), the evaluated threshold criterion, a pass/fail verdict, the exact evidence source (e.g. HTTP response header), noted limitations of the passive check, and a mode-specific remediation or confirmation action. No authentication, injection, or active exploitation is performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 3,
   "description": "Public HTTP(S) URL or domain to inspect. A bare domain is normalized to HTTPS."
  },
  "context": {
   "type": "object",
   "description": "Optional non-secret correlation labels returned unchanged only in the request lifecycle.",
   "maxProperties": 12,
   "additionalProperties": {
    "type": [
     "string",
     "number",
     "boolean",
     "null"
    ]
   }
  },
  "baseline": {
   "type": [
    "object",
    "null"
   ],
   "description": "Optional baseline returned by a previous snapshot call.",
   "additionalProperties": true
  },
  "compare_url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 3,
   "description": "Optional public comparison URL. Used by change and monitoring services."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csp-default-src-audit-7d0bcac3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webschutz.halowerk.com](https://www.zero.xyz/host/webschutz.halowerk.com/llms.txt)
