Certificate Transparency as a pivot engine: beyond the crt.sh search box
CT logs are a timestamped record of infrastructure being prepared. Three pivots (SAN siblings, issuance bursts, naming patterns), how to pull the data with curl and jq, and the traps that turn a certificate into a false attribution.
· 4 min read
Certificate Transparency is usually introduced as a subdomain finder: type a domain into crt.sh, get a list of hostnames. That is useful, and it is the least interesting thing the logs can do. Every publicly trusted TLS certificate has to be logged before browsers will accept it, which means the logs are a timestamped, append-only record of infrastructure being prepared. Read that way, they answer better questions: what else did this operator set up, and when?
This post covers three pivots I use, how to pull the data in a form you can work with, and the traps that turn a CT finding into a false attribution.
What a log entry tells you
Each certificate gives you a handful of fields worth keeping:
Subject Alternative Names (SANs): every hostname the certificate is valid for. This is where most pivots start.
Issuer: which certificate authority signed it.
Validity period:
not_beforeandnot_after. For most automated issuance,not_beforeis within minutes of when the certificate was requested.Serial number: useful for removing duplicates.
You will often see each certificate twice. Certificate authorities log a precertificate first, then issue the final certificate, and some monitors show both. Count unique certificates by issuer and serial number, not by rows.
Getting the data out
The crt.sh web interface is fine for a look. For anything more, ask for JSON and work with it locally. % is the wildcard, URL-encoded as %25:
curl -s 'https://crt.sh/?q=%25.example.com&output=json' -o example.json
# Unique hostnames, wildcards stripped, lower-cased
jq -r '.[].name_value' example.json \
| tr 'A-Z' 'a-z' | sed 's/^\*\.//' | sort -uThe name_value field holds all the SANs of a certificate separated by newlines, which is why the pipeline above splits them naturally. Large domains time out; if that happens, narrow the query to a subdomain or a specific name pattern rather than retrying the same request.
Pivot 1: SAN siblings
A certificate that covers several unrelated-looking names is a statement that one party controlled all of them at the moment of issuance, because the authority had to validate every name on it. When you find a phishing domain, look at its certificate's other SANs. Operators who reuse a single certificate across a batch of lookalike domains hand you the batch.
Then reverse it: search each sibling on its own and look at its certificates. Infrastructure that was set up together often stays together for a few renewal cycles, then drifts apart as domains are burned and replaced. Each generation of certificates can link a new domain to the old ones.
Pivot 2: issuance timing
Automated infrastructure gets its certificates in bursts. When someone stands up ten domains with a script, the certificates are requested within minutes of each other. Sorting by not_before makes these bursts visible:
jq -r '.[] | [.not_before, .issuer_name, (.name_value | gsub("\n"; ","))] | @tsv' example.json \
| sort -uTiming is a strong supporting signal and a weak primary one. Lots of unrelated certificates are issued every minute. A cluster becomes meaningful when it is combined with something else: the same naming pattern, the same unusual registrar, the same hosting, the same page content. Treat a burst as a lead to check, not as a link in itself.
Pivot 3: naming patterns, and what you cannot see
Operators reuse habits: a fixed prefix such as login- or secure-, a brand name with one letter changed, a set of country codes, a sequence number. Once you have two or three confirmed domains, write the pattern down and search for it with wildcards. You will get noise; the point is to find candidates that you can then confirm through other means.
Know the blind spots before you claim completeness:
Wildcard certificates hide hostnames. A certificate for
*.example.comtells you nothing about which subdomains exist.Private certificate authorities are not in public logs. Internal services and many corporate VPN endpoints never appear.
Plain HTTP and non-TLS services leave no trace at all.
"No certificates found" is not "no infrastructure."
Reading timestamps honestly
A certificate shows that someone with control of the domain's DNS or web server asked for it at a given time. It does not show that a site was live, or that anyone visited it. With DNS validation, a certificate can be issued for a hostname that never served a single page.
Renewals also inflate activity. Automated certificate authorities reissue every few weeks to months, so a domain with forty certificates may have done nothing more interesting than stay switched on. When you describe a timeline, use the first certificate for a name as the earliest evidence of preparation, and other sources (passive DNS, archived pages, hosting records) for when it was actually in use.
From one-off searches to monitoring
Once you know a pattern, stop searching for it by hand. Streaming services and open-source monitors can watch new log entries as they arrive and alert on keywords or regular expressions. A brand protection team watching for its own name with common lookalike substitutions will often see a phishing domain hours before the first lure is sent, because the certificate has to exist before the site can work.
Why this is a good first step
Querying CT logs is entirely passive. Nothing you do touches the target's servers, and nothing tells the operator you are looking. That makes it a safe opening move in almost any infrastructure investigation, as long as you remember what a certificate is: proof that a name was prepared, by someone who controlled it, at a point in time. Everything beyond that needs a second source.