llms.txt
+124 −158
https://api.contrastcyber.com/llms.txt
− > Security intelligence API for AI models and developers. Free to use, no API key required.− - [API Documentation](https://github.com/UPinar/contrastapi/blob/main/docs/API_Documentation.md)− - [OpenAPI Spec](https://api.contrastcyber.com/openapi.json)− - Look up CVE details, severity, CVSS breakdown, EPSS exploit probability, or CISA KEV status− - Browse MITRE CWE catalog for weakness descriptions, mitigations, and parent/child chains− - Investigate a domain's DNS, WHOIS, SSL certificate, subdomains, email security (SPF/DMARC/DKIM)− - Get a domain security risk score (A-F grade, 100-point scale)− - Detect WAF/CDN protection on a target domain− - Check a domain for malware/threat intelligence (URLhaus)− - Scan a live domain's HTTP security headers− - Scan code for hardcoded secrets, SQL/command injection, or missing security headers− - Check software dependencies against the CVE database− - Enrich an IP address with open ports, vulnerabilities, and hostnames (Shodan InternetDB)− - Map MITRE ATLAS AI/ML attack techniques (AML.T####) to real-world incident case studies (AML.CS####)− - Bridge offensive intel to MITRE D3FEND defenses for any ATT&CK technique− - Verify a single email (syntax + MX + disposable + role + free-provider) without SMTP probing− - Read a target site's robots.txt, walk redirect chains, scrape public brand assets, or score SEO of a homepage− No API key needed. Free: 30 tokens/hour per IP.− API key (500 tokens/hr): pass `Authorization: Bearer cc_xxx` header.− Rate limit headers returned: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-RateLimit-Cost, X-RateLimit-Tier.− ## Token Costs− Most endpoints cost 1 token per call. Aggregating endpoints that fan out to multiple upstream sources cost more:− - `GET /v1/audit/{domain}` — 6 tokens (DNS + WHOIS + SSL + CT + subdomains + headers + tech + email)− - `GET /v1/threat-report/{ip}` — 6 tokens (IP enrich + AbuseIPDB + Shodan + ASN + Tor + cloud + FireHOL + CVE)− - `GET /v1/scan/{domain}` — 6 tokens (full-site security scan: C engine 11 modules + findings enrichment)− - `GET /v1/domain/vulns/{domain}` — 4 tokens (tech fingerprint + bulk CVE per product)− - `POST /v1/cves/bulk`, `POST /v1/iocs/bulk`, `POST /v1/atlas/techniques/bulk` — 1 token per item in the request− - All other endpoints — 1 token− Every authenticated response includes X-RateLimit-Cost so clients can budget calls transparently.− ## Endpoints (55 MCP tools)− - GET /v1/cve/{cve_id} — Full CVE details with EPSS score, KEV status, CVSS breakdown− - GET /v1/cve/{cve_id}/risk_score — Composite risk score (CVSS×0.20 + EPSS×0.35 + KEV×0.30 + PoC×0.15) with multiplicative boosters− - GET /v1/cvss/details?vector= — Parse a CVSS v3.x vector string into per-metric breakdown + recomputed base score− - GET /v1/cve/leading — CVEs indexed before NVD (MITRE/GHSA-only feed)− - GET /v1/cves?product=&severity=&published_after=&published_before=&kev=&epss_min=&sort=&offset= — Search CVEs (paginated): filter by product, severity, date range, KEV-only, min EPSS score, sort, offset− - GET /v1/exploit/{cve_id} — Public exploits and advisories (GitHub Advisory, ExploitDB)− - GET /v1/kev/{cve_id} — CISA KEV detail (federal patch deadline, required action, ransomware association, CWE list)− - GET /v1/cwe/{cwe_id} — MITRE CWE catalog (description, mitigations, parent/child weakness chain)− - POST /v1/cves/bulk — Bulk CVE lookup (up to 50 per request, same cap all tiers)− - GET /v1/domain/{domain} — Full domain report (DNS + WHOIS + SSL + subdomains + WAF + email security + threat intel + risk score)+ > Security data and monitoring API and MCP server, for developers and AI agents. It covers CVE, EPSS and KEV data, package (SBOM) vulnerabilities, domain and IP intelligence, and monitoring of CVEs, packages, domains and IP addresses. A free tier needs no API key.+ - [CVE pages](https://contrastcyber.com/security/): CVE records as web pages, with a CISA KEV list and lists by month+ - Look up CVE details, severity, CVSS v3/v4, EPSS exploit probability, or CISA KEV status+ - Look up many CVEs at once (up to 50 per request), or risk-rank them (up to 50 per request)+ - Search CVEs by vendor, product, severity, CWE, CVSS, EPSS, KEV membership, ransomware use, and publish date+ - Decide what to patch first with a composite risk score (exploitability + impact + evidence)+ - Find public exploits for a CVE: GitHub PoC repositories, Metasploit modules, NVD exploit references, and ExploitDB entries. A GitHub repository is listed but not counted as proof of a public exploit+ - See the whole CVE exposure of one vendor and product, with the support dates of the product from endoflife.date+ - Find the exact CPE vendor and product names to filter by+ - Read a CISA KEV entry (due date, required action, known ransomware use)+ - Browse the MITRE CWE catalog for weakness descriptions, mitigations, and examples+ - Decode a CVSS v3.0/v3.1 vector and recompute its scores+ - Monitor CVEs, products, CVE searches, packages, domains and IP addresses with a watchlist on an API key, and read the CVE, package, end-of-life, domain and IP change events that match it with watchlist_events+ - See every product a CVE affects, with its version ranges, one page at a time+ - Get the leading CVEs of a product, ranked by EPSS and then CVSS+ - Check an open-source package version against OSV.dev advisories and the OpenSSF list of malicious packages, or many at once (up to 500 per request)+ - Check whether a password's SHA-1 hash is in Have I Been Pwned's Pwned Passwords list+ - Read a domain's DNS records, or check a host name for subdomain takeover+ - Check a domain's SPF, DMARC, DKIM, MX and MTA-STS records, with the DMARC policy that applies to it+ - Check an email address without sending mail: whether its domain takes mail, and whether it is disposable+ - Check the TLS certificate and settings of a host name on port 443: whether the certificate is trusted, when it expires, the TLS version and the cipher, and whether the SSL Blacklist of abuse.ch lists it+ - Check the security headers of a web site: Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, Set-Cookie and five more, each rated pass, warn, fail or missing, with its issues and a fix+ - Look up the registration of a domain name over RDAP, or over WHOIS for a TLD without RDAP: its registrar, when it was registered and when it expires, its status values and its name servers+ - See when the Internet Archive's Wayback Machine first and last captured the home page of a host name, and its latest capture days+ - List the unexpired certificates that Certificate Transparency logs hold for a host name: the issuer, the validity, the revocation and the DNS names of each+ - List the subdomains of a registrable domain from Certificate Transparency, DNS guesses of 94 common names and the domain's MX, NS and SPF records, with a wildcard DNS check+ - Look up a public IP address: its AS, its country, the cloud or CDN range that holds it, whether it is a Tor exit or on the DROP list, and its PTR name+ - Look up an autonomous system (AS) by its number or by an address it holds: its name, its country and its IPv4 and IPv6 prefixes+ - Find the MITRE D3FEND defenses that counter a MITRE ATT&CK technique+ - Check a Windows driver file hash against the LOLDrivers catalog of vulnerable and malicious drivers (up to 20 per request)+ - Inspect an image: its format, the file signatures hidden in it and its metadata (REST only)+ No API key needed, except for monitoring (the watchlist tools). Free: 30 credits/hour per IPv4 address or IPv6 /64.+ API key (500 credits/hour): pass `Authorization: Bearer contrastapi_xxx` or `X-API-Key: contrastapi_xxx` header.+ Rate limit headers returned by requests that cost credits: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset-Machine, X-RateLimit-Reset-Human. A 429 also carries Retry-After.+ Pay per call: a request without an API key can pay for one call with x402, in USDC on Solana, on the endpoints and tools that take payment. On REST, when its free credits are spent, the answer is 402 with a PAYMENT-REQUIRED header. Retry the same request with a PAYMENT-SIGNATURE header. One credit costs $0.01. On REST the call is charged only when it answers 200, and then the answer carries a PAYMENT-RESPONSE header. On MCP, a tools/call over its budget gets a tool result that holds the price. R+ ## Credit Costs+ Most endpoints cost 1 credit per call. These differ:+ - `POST /image_inspect`: 2 credits (an image body of up to 16 MiB)+ - `GET /cert_search/{domain}`: 2 credits (keyed requests to Cert Spotter, one for each page)+ - `GET /subdomain_enum/{domain}`: 2 credits (up to 99 DNS questions and a keyed request to Cert Spotter)
Showing the first 40 of each.