# Code Security Scanner

> Code Security Scanner is a paid API for AI agents from activists-telecom-vhs-mask.trycloudflare.com, paid per call via x402, $1/call, status unknown (last checked 2026-12-03).

Performs deterministic, rule-based static security analysis on Python or JavaScript code snippets, detecting hardcoded secrets, injection vulnerabilities, weak hashes, and other common security flaws.

## Facts

- Endpoint: POST https://activists-telecom-vhs-mask.trycloudflare.com/scan/v1/code/scan?utm_source=zero.xyz
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code-security-scanner-67761f05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_49YzqFdGNPUTBELJFPw_u

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 code-security-scanner-67761f05 -d '<json body>'
```

Example prompt: Can you scan this Python snippet for security issues? I want to know if there are any hardcoded secrets, command injection risks, weak hashes like md5 or sha1, or unverified JWTs — give me the exact line numbers and suggested fixes.

## When to prefer this

Choose this endpoint when you need fast, deterministic, rule-based static security scanning without LLM variability — ideal for CI/CD pipelines, pre-commit hooks, or any workflow where reproducibility and consistent results matter. It is purpose-built for detecting the most common and critical security mistakes (hardcoded secrets, injection vectors, weak crypto) in Python and JavaScript, with per-line findings and actionable fix suggestions. Prefer it over general-purpose code review LLMs when you need guaranteed consistency and structured machine-readable output.

## Known failure modes

- Unsupported language submitted (only Python and JavaScript are supported)
- Empty or malformed code body returns an error or empty findings
- Very large code snippets may exceed payload limits
- Obfuscated or minified code may reduce detection accuracy
- Service unavailability due to ephemeral Cloudflare tunnel hosting

## How this service works

Static security scan of a code snippet. Finds hardcoded secrets (AWS keys, private keys, API keys, DB connection strings with passwords), eval/exec, command injection, HTTP calls with no timeout, weak hashes (md5/sha1), bare except and unverified JWT. Returns one entry per finding with rule, severity, exact line number, the offending line and a suggested fix. Rule-based and deterministic: no LLM, so the same snippet always returns the same findings. Send Python or JavaScript as plain text. Not a

## Output

An array of findings, each containing: the rule that triggered (e.g. 'hardcoded-aws-key', 'eval-usage'), a severity level (e.g. critical, high, medium, low), the exact line number of the offending code, the offending line text itself, and a suggested remediation. If no issues are found, an empty findings array is returned. Results are deterministic — identical input always produces identical output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "description": {
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/code-security-scanner-67761f05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from activists-telecom-vhs-mask.trycloudflare.com](https://www.zero.xyz/host/activists-telecom-vhs-mask.trycloudflare.com/llms.txt)
