Skip to content

Hostnames found only in crt.sh

6 min readRecon Atlas

TL;DR. Put every syntactically valid hostname from crt.sh into subs/all.txt. Operators discard solitary records when initial DNS queries return NXDOMAIN despite authoritative historical issuances in Certificate Transparency logs. The decision hangs on subs/crtsh.txt before deduplication merges names into subs/all.txt.


This chapter deepens the passive subdomain enumeration workflow from Subdomain enumeration, passive.

Passive

A hostname appears in subs/crtsh.txt. Other passive tools omit it. Does this solitary name go into subs/all.txt?

The answer is yes. Keep every syntactically valid subdomain under example.com and place it into subs/all.txt.

The tempting wrong answer is to discard the name. Operators assume a name missing from other passive tools represents database noise. They run a quick DNS query, observe NXDOMAIN, and delete the line. That reaction mistakes current DNS availability for asset discovery. Passive enumeration collects candidate names. Later phases evaluate host state.

You hold subs/crtsh.txt in hand. You evaluate raw lines against three branches:

  1. Valid subdomain under example.com. The hostname contains standard alphanumeric labels, hyphens, and periods ending in example.com. Append the line directly to subs/all.txt.
  2. Wildcard entry. The line starts with *., such as *.dev.example.com. Strip the leading wildcard token. Write dev.example.com into subs/all.txt. Pass the base domain to your permutation lists.
  3. Syntax error or out-of-scope domain. The line contains invalid characters or an unrelated root domain. Discard the line.

This decision involves trade-offs. Keeping solitary records increases the size of subs/all.txt. Your resolver processes more queries during active resolution. In return, you retain visibility into abandoned services and dangling CNAME records. Many findings originate from old hostnames that exist only in certificate history.

This evaluation runs on local files. Your packet rate to target systems is 0 packets per second. You send no network traffic to example.com during this stage.

Certificate Transparency logs provide the underlying records for this decision. RFC 6962 requires public Certificate Authorities to submit issued certificates to append-only Merkle tree logs. The crt.sh service crawls these logs and stores certificate metadata in a PostgreSQL database.

The data fields originate from certificate attributes signed by the issuing Certificate Authority:

  • Common Name: The Subject field defines the primary server name.
  • Subject Alternative Name: The extension field stores additional hostnames and wildcard expressions.
  • Timestamp: The log entry time records when the log accepted the submission.
  • Validity window: The notBefore and notAfter fields define certificate lifetime.

The crt.sh JSON interface flattens Common Name and Subject Alternative Name entries into a single string attribute named name_value.

This source has strict boundaries. Certificate logs cannot contain DNS zone records, current IP routing data, or HTTP response codes. They omit internal hostnames signed by private enterprise authorities. A record in crt.sh proves only that an entity requested and received a public certificate for that hostname at a specific timestamp.

You extract these records directly into subs/crtsh.txt using standard tools.

Terminal window
# Query crt.sh for example.com subdomains and format into subs/crtsh.txt
curl -s "https://crt.sh/?q=%25.example.com&output=json" | jq -r '.[].name_value' | tr '[:upper:]' '[:lower:]' | sed 's/^\*\.//' | sort -u > subs/crtsh.txt

The following sample illustrates raw records extracted from certificate logs.

# SAMPLE, invented
vpn-legacy.example.com
*.internal-dev.example.com
admin@example.com

The first record is vpn-legacy.example.com. This record asserts that a public Certificate Authority issued a valid certificate for this exact hostname. The domain owner proved control of example.com to the authority at the logged timestamp. This record does not assert that vpn-legacy.example.com has an active DNS A record today. It does not assert that a server responds on port 443. Your next command appends the hostname to subs/all.txt. Phase 4 will resolve it against active DNS resolvers.

The second record is *.internal-dev.example.com. This record asserts that a Certificate Authority issued a wildcard certificate covering first-level subdomains directly below internal-dev.example.com. This record does not assert that a web application runs at the apex internal-dev.example.com. It does not assert which specific sub-labels exist under the wildcard. Your next command strips the leading *. prefix with sed, writes internal-dev.example.com into subs/all.txt, and feeds the base domain into Phase 3 wordlist generators.

The third record is admin@example.com. This record asserts that an X.509 certificate attribute contained an email address within the Subject or contact field. This record does not assert a valid DNS hostname. It fails standard domain name syntax rules. The drop reason is syntax invalidity. You discard the line immediately and omit it from subs/all.txt.

A solitary crt.sh entry often presents a false appearance of high vulnerability. You discover payments-v1.example.com in subs/crtsh.txt. The name appears in no other passive output file. The label suggests a legacy financial processing portal.

A careless operator assumes this record exposes an unmonitored server running outdated software. The operator begins preparing exploit payloads for administrative endpoints before validating the network path.

Active DNS resolution combined with canonical name inspection kills this assumption. You query the hostname using dig or dnsx. The resolver returns an immediate NXDOMAIN response. You inspect historical DNS records and verify that the target decommissioned the host years ago. You check for CNAME records pointing to external cloud providers. The name contains no canonical delegation, confirming that no third-party cloud takeover is possible. The hostname is an inactive historical record.

The reader writes this sentence in notes: payments-v1.example.com is an expired certificate artifact with no active DNS mapping or dangling cloud tenant.

Certificate Transparency logs cannot reveal subdomains that never requested a dedicated public TLS certificate.

If example.com deploys internal management panels using cleartext HTTP, crt.sh never receives an entry. If example.com uses a broad wildcard certificate such as *.example.com to cover all edge services, individual hostnames such as billing.example.com or internal-api.example.com never appear as distinct entries in the logs. The log records only the wildcard label.

Active DNS brute-forcing in Phase 3 catches this gap. You feed curated wordlists to high-speed resolvers using puredns or massdns. The resolvers query names directly against authoritative nameservers, uncovering hidden subdomains covered by the wildcard certificate.

This check belongs to a separate phase. Passive Certificate Transparency lookups consume zero target network bandwidth and execute over third-party APIs. Active DNS brute-forcing generates high query traffic, requires wildcard filtering logic, and contacts external resolver infrastructure.

Apply these operational stopping rules when processing solitary crt.sh records:

  1. Follow-up boundaries. Append solitary crt.sh hostnames to subs/all.txt. Stop manual inspection here. Do not launch port scans or vulnerability scanners against solitary names before completing Phase 4 DNS resolution.
  2. Service timeouts. Impose a hard timeout of 180 seconds on curl requests. If crt.sh fails to respond within 3 minutes, terminate the query. Fall back to secondary passive tools such as Subfinder and Chaos.
  3. Fail-closed pipeline rules. An automated reconnaissance pipeline must enforce fail-closed integrity. If the query returns a non-200 HTTP code or malformed JSON, exit with an error. Reject partial payloads. Never overwrite an existing subs/crtsh.txt with an empty file. Downstream merge tasks verify that subs/crtsh.txt contains valid text before generating subs/all.txt.
Terminal window
# Query crt.sh with a three-minute timeout and validate JSON output
curl -m 180 -s "https://crt.sh/?q=%25.example.com&output=json" | jq -e 'if type=="array" then . else error end' > subs/crtsh_raw.json

The output of this decision merges into subs/all.txt.

  • File path: subs/all.txt
  • Column structure: A single column containing unique, lowercase, fully qualified domain names with no protocol schemes, wildcard markers, or port numbers.

Each line represents a candidate hostname gathered from passive reconnaissance sources.

# SAMPLE, invented
api.example.com
dev.example.com
internal-dev.example.com
vpn-legacy.example.com

The next phase asks one fundamental question: Which of these hostnames resolve to active IP addresses or CNAME records?

You pass subs/all.txt directly to DNS resolution.

The following table documents operational assumptions regarding Certificate Transparency enumeration that require local verification.

Where Claim Why it is uncertain
crt.sh JSON endpoint The JSON API returns all certificates present in the crt.sh web search interface. Web queries and API queries execute distinct database query plans that experience different timeout thresholds under load.
Certificate Pre-certificates Every logged pre-certificate corresponds to a live production deployment. RFC 6962 allows logging pre-certificates before issuance, and organizations sometimes cancel deployment before configuring DNS or routing.
Multi-SAN certificate groupings Hostnames sharing a single certificate belong to identical infrastructure environments. Shared certificates frequently cover hostnames hosted across disparate third-party SaaS vendors and separate cloud accounts.
Connections0 backlinks · 2 outgoingFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Recon AtlasFor authorized testing only. Your scope is the map edge.