# SQL Guard - SQL Injection Risk Analyzer

> SQL Guard - SQL Injection Risk Analyzer is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Analyzes HTTP GET requests for SQL injection risks and returns a verdict indicating whether the request is safe or flagged as dangerous

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/sql-guard?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sql-guard-sql-injection-risk-analyzer-dac24d2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_32zJkoDtqK6LdVSrbOtVr

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 sql-guard-sql-injection-risk-analyzer-dac24d2e
```

Example prompt: Can you check if this incoming GET request is safe from SQL injection — the query parameters include a search field with value 'SELECT * FROM users WHERE id=1 OR 1=1'?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call SQL injection pre-filter with no account setup. Ideal for agents that need to validate untrusted HTTP request parameters before passing them to a database layer, or for security monitoring pipelines that want a quick verdict without running a full WAF. Best for GET/HEAD/DELETE request validation specifically.

## Known failure modes

- Missing required 'input' body — returns validation error
- Unsupported HTTP method (e.g. POST) passed as method value — rejected by enum constraint
- Malformed JSON body — returns parse error
- Payment not included or insufficient USDC — returns 402 Payment Required
- Service temporarily unavailable — returns 5xx error

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with a 'risks' array listing any detected SQL injection patterns and a 'verdict' field ('pass' if the request is clean, or an indication of detected risk). An empty risks array with verdict 'pass' means the request is considered safe.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "risks": [],
  "verdict": "pass"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sql-guard-sql-injection-risk-analyzer-dac24d2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
