{"uid":"cap_epqlOGoy07xWb08boBlNp","slug":"brainiac-domain-security-infrastructure-health-grader-3b6d2a58","name":"BRAINIAC Domain Security Infrastructure Health Grader","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/domain-security/infrastructure-health?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"as_of":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"domain":{"type":"string","maxLength":253,"minLength":1},"records":{"type":"array","items":{"type":"object","required":["type","name","value"],"properties":{"name":{"type":"string","maxLength":253,"minLength":1},"type":{"enum":["A","AAAA","CNAME","TXT","NS","MX"],"type":"string"},"value":{"type":"string","maxLength":512,"minLength":1}},"additionalProperties":false},"maxItems":50,"minItems":1},"certificate":{"type":"object","required":["names","not_after","ciphers"],"properties":{"names":{"type":"array","items":{"type":"string","maxLength":253,"minLength":1},"maxItems":20},"ciphers":{"type":"array","items":{"type":"string","maxLength":80,"minLength":1},"maxItems":20},"not_after":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"infrastructure_health_grade":"F","security_exposure_percentage":85}},"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_j0uADi6tZtY9VfTYgP5Y8","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 DNS records, TLS certificate, and domain metadata to produce an infrastructure health grade and security exposure percentage for a domain","exampleAgentPrompt":"Can you grade the infrastructure security health of example.com using these DNS records — an A record pointing to 93.184.216.34, an MX record for mail.example.com, and a TXT record with 'v=spf1 include:_spf.example.com ~all' — and a TLS cert covering example.com and www.example.com that expires 2025-12-01 using TLS_AES_256_GCM_SHA384?","exampleUseCases":[{"title":"Pre-launch domain security audit","prompt":"Before we go live with newproduct.io, can you check its infrastructure health? It has an A record pointing to 10.0.0.1, a TXT record with 'v=spf1 ~all', and a certificate covering newproduct.io expiring 2025-03-15 using RC4-SHA — tell me the grade and how exposed we are."},{"title":"Ongoing security posture monitoring","prompt":"Run an infrastructure health check on api.mycompany.com as of today — it has a CNAME pointing to myapp.loadbalancer.net, a TXT record with 'v=spf1 include:sendgrid.net -all', and a cert covering api.mycompany.com expiring 2026-06-30 using TLS_AES_128_GCM_SHA256. What's our grade and security exposure?"},{"title":"Vendor domain due diligence","prompt":"I'm evaluating a third-party vendor at vendor-portal.example.com — their DNS shows an MX record pointing to mail.vendor-portal.example.com and an NS record at ns1.vendor-portal.example.com, and their cert covers vendor-portal.example.com expiring 2024-11-01 with TLS_RSA_WITH_3DES_EDE_CBC_SHA. Can you give me an infrastructure health grade so I know if their setup is risky?"}],"resultDescription":"A JSON object containing an infrastructure_health_grade (letter grade such as A, B, C, D, or F) and a security_exposure_percentage (0–100 integer) reflecting the proportion of the domain's infrastructure that is insecure or misconfigured based on DNS records, TLS certificate validity, cipher strength, and configuration posture.","failureModes":["Missing required DNS records array returns a validation error","Certificate object missing required fields (names, not_after, ciphers) causes a 400 error","Domain string exceeding 253 characters is rejected","Invalid date format for as_of or not_after (not YYYY-MM-DD) causes schema validation failure","More than 50 DNS records or 20 certificate names/ciphers exceeds array limits and returns an error","Unrecognized DNS record type outside the allowed enum returns a validation error"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call, no-account security health assessment of a domain's DNS and TLS infrastructure — especially in agentic workflows where you supply your own DNS records and certificate data for analysis rather than needing live DNS lookups. Prefer this over manual security audits or heavyweight scanning tools when you need a structured grade and exposure score for use in automated compliance checks, vendor risk assessments, or pre-launch security gates. The fixed $0.04 USDC price via x402 makes it ideal for high-frequency automated checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:44:24.945Z","isFirstParty":false,"canonicalSlug":"brainiac-domain-security-infrastructure-health-grader-3b6d2a58"}