{"uid":"cap_514otOWiITDFpUlBX7lIU","slug":"brainiac-config-hardening-grade-api-aba3a8c7","name":"BRAINIAC Config Hardening Grade API","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/devops/config-hardening-grade?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"config":{"type":"string","maxLength":200000,"minLength":1}}},"responseSchema":{"type":"json","example":{"audit_receipt":"sha256:fba37df1e56ca384b4942834c386359eab0c441bf7843afdb7f2fb7faf995c31","security_grade":"F","prioritized_findings":[{"code":"runs_as_root","line":2,"block":"USER root","detail":"The last USER in the final stage is root.","remediation":"Add a USER instruction with a non-root uid before the final command.","impact_score":34},{"code":"piped_remote_script","line":4,"block":"RUN curl https://example.com/install.sh | sh","detail":"A remote script is piped into a shell. The script was not downloaded or executed.","remediation":"Download a pinned script, check its checksum, and run that file.","impact_score":30},"…"],"vulnerability_percentage":100}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8xsONwuKvNYXUSDdbGjOs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a DevOps configuration file (e.g. Dockerfile) for security vulnerabilities and returns a letter grade with prioritized, actionable findings","exampleAgentPrompt":"Can you security-grade this Dockerfile for me and tell me what the biggest vulnerabilities are, in priority order? Here's the content: FROM ubuntu:latest\\nUSER root\\nEXPOSE 22\\nRUN curl https://example.com/install.sh | sh\\nCMD [\"bash\"]","exampleUseCases":[{"title":"Dockerfile pre-merge security review","prompt":"Before I merge this PR, run a security hardening grade on this Dockerfile and show me any critical issues I need to fix: FROM node:latest\\nUSER root\\nEXPOSE 22\\nRUN npm install -g myapp\\nCMD [\"node\", \"server.js\"]"},{"title":"CI pipeline compliance gate","prompt":"I need to know if this container config passes a security audit — give me the letter grade and all the findings with their impact scores so I can decide whether to block the deployment."},{"title":"Remediation planning for hardening backlog","prompt":"Audit this Dockerfile and give me a prioritized list of security fixes sorted by impact so I can plan our hardening sprint. Here's the full file content."}],"resultDescription":"Returns a JSON object with a security grade (A–F), a sha256 audit receipt for verification, a vulnerability percentage, and an array of prioritized findings each containing a code, the offending line number and block, a plain-English detail, a remediation suggestion, and a numeric impact score.","failureModes":["Empty or missing config field returns validation error","Config exceeding 200,000 character limit rejected","Malformed JSON input returns 400-level error","Payment failure via x402 returns 402 Payment Required","Service unavailability returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable security audit of a container or DevOps configuration file with graded severity and remediation steps — especially in automated CI/CD pipelines or agent workflows where pay-per-call with no account setup (via x402/USDC) is preferred over subscription-based static analysis tools.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:47:17.555Z","isFirstParty":false,"canonicalSlug":"brainiac-config-hardening-grade-api-aba3a8c7"}