# IaC Static Misconfiguration Scanner

> IaC Static Misconfiguration Scanner is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Performs a static security scan of infrastructure-as-code configs (Terraform, Kubernetes, Dockerfile, docker-compose, CloudFormation) and returns a verdict, risk score, and per-finding details with fix hints.

## Facts

- Endpoint: POST https://api.agentstools.dev/iac/scan
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iac-static-misconfiguration-scanner-d9998761
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JhpdS_Lo4OPVfnwGL3zuQ

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 iac-static-misconfiguration-scanner-d9998761 -d '<json body>'
```

Example prompt: Can you scan this Terraform HCL config for security misconfigurations and tell me the risk score, verdict, and any specific findings with fix hints? Here's the config: [paste HCL]

## When to prefer this

Choose this endpoint when you need a fast, automated security pre-check of IaC configs (Terraform, Kubernetes, Dockerfile, docker-compose, CloudFormation) before deployment. Ideal for CI/CD pipeline gates, agent-driven DevSecOps workflows, or on-demand config audits where a structured verdict and actionable per-finding fix hints are needed at low cost ($0.02/call).

## Known failure modes

- Unsupported or malformed config format causes parsing failure
- Auto-detection fails for ambiguous or mixed-format configs
- Very large config payloads may time out or be rejected
- False negatives: novel or complex misconfigurations may not be detected
- False positives possible on non-standard but intentional configurations

## How this service works

Static misconfiguration scan of an infrastructure-as-code config: Terraform (plan JSON or HCL), Kubernetes / Helm, Dockerfile, docker-compose or CloudFormation. Detects public storage, open security groups, unencrypted data at rest, over-broad IAM, privileged / root containers, host mounts and more. Returns a verdict (pass, caution, block), a 0-100 risk score and per-finding rule, severity, resource, location and fix hint. Security indicators, not a guarantee.

## Output

Returns a verdict (pass, caution, or block), a 0–100 risk score, and a list of per-finding objects each containing the rule name, severity level, affected resource, location within the config, and a fix hint. Serves as security signal, not a compliance guarantee.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "auto",
    "terraform",
    "terraform-plan",
    "kubernetes",
    "dockerfile",
    "docker-compose",
    "cloudformation"
   ],
   "type": "string",
   "description": "Config format, or auto to detect from the content"
  },
  "content": {
   "type": "string",
   "description": "The IaC config text to scan (one or many resources)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iac-static-misconfiguration-scanner-d9998761/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
