{"uid":"cap_49YzqFdGNPUTBELJFPw_u","slug":"code-security-scanner-67761f05","name":"Code Security Scanner","description":"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","url":"https://activists-telecom-vhs-mask.trycloudflare.com/scan/v1/code/scan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_g_emEYEJZmXA4-9-efUkO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-commit secret leak check","prompt":"Before I push this Python file, can you scan it for any hardcoded AWS keys, API keys, or database passwords I might have accidentally left in the code?"},{"title":"JavaScript injection vulnerability audit","prompt":"Can you run a security scan on this JavaScript snippet and tell me if there are any eval calls, command injection risks, or HTTP requests missing a timeout?"},{"title":"CI pipeline security gate","prompt":"Scan this Python function for security problems — I need the rule name, severity, line number, and a fix suggestion for each issue so I can decide whether to block this pull request."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:37:28.228Z","isFirstParty":false,"canonicalSlug":"code-security-scanner-67761f05"}