{"uid":"cap_yYQSZvCojZAjxrldCMD2s","slug":"code-security-scan-cwe-findings-82049069","name":"Code Security Scan (CWE Findings)","description":"Code security scanner (AI SAST) for JS/TS, Python, Go, PHP, Java. Use when checking code for vulnerabilities before merging or running it. Returns JSON: risk, vulnerabilities (severity, CWE, approx line, evidence, fix), hardcoded secrets, blind spots. AI first pass by an AI agent, not a pro audit.","url":"https://emberagent.uk/p/code-security-scan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Source code as plain text: one file or snippet, any language. Optionally start with a context line such as 'Context: public Express API route' to focus the review."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.045","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":"$0.045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z2PW4coBR36BFuLF0bN6d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans source code for security vulnerabilities using AI, returning CWE-tagged findings with severity, evidence, impact, and fix suggestions, plus a secrets flag and blind spots notice.","exampleAgentPrompt":"Can you scan this JavaScript Express route handler for security vulnerabilities? Here's the code: [paste code]. Context: public-facing API route — flag any CWE issues, secrets, severity levels, and suggested fixes.","exampleUseCases":[{"title":"Pre-merge PR security review","prompt":"Before I merge this pull request, can you run a security scan on this Python Flask endpoint code and tell me if there are any high or critical CWE vulnerabilities, exposed secrets, or injection risks I should fix first?"},{"title":"AI agent code execution safety check","prompt":"My agent is about to run this user-submitted JavaScript snippet — can you check it for security flaws and tell me the overall risk level and any dangerous patterns before I let it execute?"},{"title":"Reviewing third-party code for supply chain risk","prompt":"I found this Go package handler I'm thinking of integrating — can you do a quick security scan and flag any CWE findings, especially around authentication or input validation, and note any blind spots in the analysis?"}],"resultDescription":"A JSON object containing: a top-level risk rating, an array of findings each with severity, CWE identifier, approximate line number, evidence snippet, impact description, and suggested fix; a boolean secrets flag indicating whether credentials or keys were detected; and a blind spots field noting analysis limitations.","failureModes":["Empty or invalid input returns an error or empty findings array","Very large files may exceed input limits or produce incomplete analysis","Minified or obfuscated code may yield inaccurate line numbers and reduced finding quality","Language not well-supported may result in partial analysis with noted blind spots","Network or payment failure (x402) returns HTTP 402 or connection error","AI-based analysis may miss zero-day or highly novel vulnerabilities — blind spots field documents known gaps"],"whenToPreferThis":"Use this endpoint when you need a fast, automated, pre-merge or pre-execution security sweep of a code snippet or single file across multiple languages (JS/TS, Python, Go, PHP, Java, etc.) and want structured CWE-tagged findings with severity, evidence, and fix guidance. It is ideal for CI pipeline agents, code review bots, and AI agents that execute user-submitted code and need a lightweight AI-first safety pass. It is not a substitute for a professional security audit but provides immediate, actionable signal at $0.045 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:33:01.491Z","isFirstParty":false,"canonicalSlug":"code-security-scan-cwe-findings-82049069"}