id: crtsh name: crt.sh (Certificate Transparency) version: 1.1.0 description: "crt.sh by Sectigo — searches the public Certificate Transparency logs, where every publicly trusted TLS certificate is recorded. Lists a domain's sub-domains and who issued their certificates, shows when a host first got a certificate (a phishing site usually gets one the day it goes live), and finds look-alike domains that start with a client's brand. Free, no API key; stdlib-only. crt.sh is a shared public service: it is slow on big domains and a starts_with search on a short word can time out — keep searches narrow. When crt.sh is down (it often answers 502), sub-domain and exact searches fall back to SSLMate Cert Spotter, which reads the same logs (unexpired certificates only; set a free API key to lift its 10-requests-an-hour limit). As a context enrichment rule (Riposte 0.299+, no score field) on domains: search_certificates with summary `${name_count} names, newest certificate ${certificates.0.not_before}`." changelog: "1.1.0 — Cert Spotter fallback: when crt.sh is down (502/503/504 or no answer), sub-domain and exact searches are answered by SSLMate Cert Spotter, from the same CT logs; the output says which (`source`) and whether it may be partial (`complete`). Every call now fits Riposte's 60 s script limit (crt.sh used to be retried for minutes and killed before it answered). 1.0.0 — Initial release: certificate search (sub-domains, exact name, starts with), test connection." category: enrichment config_schema: properties: base_url: type: string description: "crt.sh server (default https://crt.sh)" default: https://crt.sh certspotter_fallback: type: boolean description: "When crt.sh is down, answer sub-domain and exact searches from SSLMate Cert Spotter (same CT logs, unexpired certificates only; no starts_with)" default: true certspotter_api_key: type: string description: "Cert Spotter API key (optional, free account at sslmate.com). Without one Cert Spotter allows about 10 requests an hour and the fallback reads at most 3 pages; with one, 10 pages" x-soar-sensitive: true certspotter_url: type: string description: "Cert Spotter API (default https://api.certspotter.com)" default: https://api.certspotter.com insecure: type: boolean description: "Trust any TLS certificate (not secure)" default: false required: [] commands: - id: search_certificates name: crtsh-search-certificates description: "Certificates logged for a domain. Returns `names` (each DNS name seen, with the first and last time a certificate covered it, newest first, at most 1000 — `name_count` counts them all), `issuers` (certificate count per CA) and `certificates` (the most recent ones, with a crt.sh link), plus `source` (crt.sh, or certspotter when crt.sh was down and the fallback answered) and `complete` (false when the answer may miss certificates — Cert Spotter page cap, or crt.sh too slow for the apex query). mode: subdomains (default — the domain and every name under it), exact (that name only), starts_with (every logged name beginning with the text, any TLD: look-alikes of a brand such as brand-login.com or brand.co; crt.sh no longer searches for text in the middle of a name, so my-brand.com is not found)." risk: read inputs_schema: properties: domain: { type: string, description: "Domain, or the brand to look for with mode=starts_with" } mode: type: string description: "subdomains | exact | starts_with (default subdomains)" enum: [subdomains, exact, starts_with] exclude_expired: { type: boolean, description: "Ignore expired certificates (default true)" } since_days: { type: number, description: "Only certificates issued in the last N days (0 = no limit, default 0)" } limit: { type: number, description: "How many certificates to return in `certificates` (default 50, max 500); `names` and `issuers` always count them all" } required: [domain] outputs_schema: { properties: {} } - id: test_connection name: crtsh-test-connection description: "Run a tiny search against crt.sh (used by the Test button)." risk: read inputs_schema: properties: {} required: [] outputs_schema: { properties: {} }