Mapping attack surfaces using Certificate Transparency logs and passive DNS databases.
Discovering unlinked subdomains and forgotten staging instances is one of the most valuable steps in security reconnaissance. Organizations often focus on their main production websites, while development environments, legacy services, temporary deployments, and forgotten subdomains remain outside routine visibility.
Passive reconnaissance helps security researchers build a picture of an organization's external footprint without directly probing target systems. By using public datasets, DNS intelligence, certificate records, and historical archives, bug hunters can identify potential assets and organize them for authorized security testing.
This guide walks through a practical passive reconnaissance methodology using publicly available data sources, command-line tools, and a structured asset review process.
Why Passive Reconnaissance Matters
Passive reconnaissance reduces unnecessary interaction with target infrastructure while helping researchers identify assets that may not appear in the organization's main website navigation.
A forgotten staging environment, an old API hostname, or a subdomain associated with a previous deployment can reveal gaps in asset inventory. These findings are not automatically vulnerabilities; they are leads that require scope verification and responsible assessment.
Common passive sources include:
- Certificate Transparency (CT) logs
- Passive DNS databases
- Search engine indexes
- Public code repositories
- Historical web archives
- Publicly available asset intelligence
The OWASP Web Security Testing Guide recommends attack surface identification as an information-gathering activity, including passive DNS and certificate transparency sources.
Discovering Unlinked Subdomains and Forgotten Staging Instances
Certificate Transparency logs record publicly issued TLS certificates. When certificates contain subdomain names, those names can become useful clues for asset discovery.
For example, a certificate may reveal names resembling:
- staging.example.com
- dev.example.com
- api.example.com
- old-portal.example.com
These are illustrative names, not real discoveries.
Query CT records using crt.sh:
curl -s "https://crt.sh/?q=%25.example.com&output=json" \ | jq -r '.[].name_value' \ | sort -u Replace example.com with an authorized domain. This query retrieves certificate-related names from the public crt.sh service.
Use Subfinder for passive discovery:
subfinder -d example.com -silent -o subdomains.txt Subfinder collects subdomain information from configured passive sources. Results depend on available sources and provider configuration.
Use Amass in passive mode:
amass enum -passive -d example.com -o amass.txt The output from different sources can be combined into an asset review list:
cat subdomains.txt amass.txt | sort -u > combined-assets.txt This produces a deduplicated list of candidate names for manual review. It does not confirm that the assets are active or in scope.
Historical URLs and Public Footprint Analysis
Historical web archives can help identify paths that were once publicly accessible. Older URL records may reference retired documentation, previous application routes, legacy API paths, or forgotten pages.
The gau tool can collect historical URLs from supported sources.
Collect historical URLs:
gau example.com > historical-urls.txt Review the output for:
- Retired application routes
- Old documentation pages
- Previously published API paths
- Legacy subdomains
- References to outdated application components
Do not treat historical URLs as current endpoints. Archived records may be outdated, incomplete, or associated with infrastructure that no longer belongs to the organization.
The objective at this stage is to document and prioritize relevant findings, not to automatically test every archived path.
Vulnerable vs. Remediated Configuration Examples
Passive reconnaissance may reveal a forgotten staging service or a publicly exposed development environment. Once an asset is confirmed to belong to an authorized assessment, configuration review can help determine whether exposure is intentional.
Vulnerable configuration — example Docker Compose:
services: staging: image: nginx:latest ports: - "8080:80" This configuration publishes the service on the host's available interfaces by default, depending on the Docker networking configuration. If the host is publicly accessible, the service may be exposed.
Remediated configuration — local-only binding:
services: staging: image: nginx:latest ports: - "127.0.0.1:8080:80" Binding to loopback limits direct access to the service through the host's external network interfaces. It is not a replacement for authentication, network controls, or secure deployment practices.
Vulnerable application configuration — debug enabled:
# Example development configuration DEBUG = True Remediated application configuration:
# Production configuration DEBUG = False Disabling debug output reduces the risk of exposing diagnostic information, internal paths, and application details. Configuration should be environment-specific and reviewed before deployment.
These examples illustrate common configuration risks associated with forgotten development and staging assets.
Organizing Findings and Building a Reconnaissance Workflow
The value of reconnaissance comes from turning raw data into a clear asset inventory. Instead of maintaining an unstructured list, organize discoveries by source, confidence, ownership, and follow-up status.
| Asset | Source | Confidence | Status |
|---|---|---|---|
| staging.example.com | CT logs | Candidate | Scope verification |
| api.example.com | Passive DNS | Candidate | Asset review |
| old.example.com | Historical archive | Candidate | Ownership review |
These records are illustrative only.
A practical workflow:
- Define scope: Confirm the authorized domain and assessment rules.
- Collect: Gather passive DNS, CT, and historical URL data.
- Normalize: Remove duplicates and format results consistently.
- Categorize: Group assets by production, development, staging, API, and legacy labels where evidence supports it.
- Verify: Confirm ownership and authorization before active testing.
- Document: Record sources, dates, evidence, and recommended remediation.
A well-maintained asset inventory can help security teams reduce forgotten infrastructure and improve their visibility into the external attack surface.
Download Passive Recon Playbook: https://hackmywebsite.io/?utm_source=med&utm_campaign=passive_recon_guide
Explore Hack My Website to improve security visibility, identify potential weaknesses, and strengthen your web application security workflow.

