
OSINT & PI / Collection Methods
Network and Infrastructure Intelligence
Underlying technical layers—naming systems, cryptographic trust, routing identifiers, and archival substrates—provide essential context for open-source intelligence, revealing ownership, infrastructure relationships, and historical persistence.
Network and infrastructure intelligence extracts actionable insights from DNS records, TLS certificates, IP address allocations, and public archives to map digital infrastructure, assess attribution, and support threat intelligence workflows.
Overview and context
The internet’s functionality rests on a stack of standardized protocols and distributed databases that translate human‑readable names into routable addresses, establish encrypted channels, and uniquely identify network endpoints. Open‑source intelligence practitioners routinely query these systems to infer organizational topology, identify third‑party dependencies, and detect infrastructure changes that may signal operational shifts. DNS zones expose subdomains and mail exchange records that outline service boundaries; SSL/TLS certificates disclose domain ownership, validity periods, and cryptographic chains that tie services to entities; IP address blocks and autonomous system numbers (ASNs) reveal routing policies and hosting providers; meanwhile, passive captures and web archives preserve historical snapshots of configurations and content. By correlating observations across these layers, analysts can build a holistic view of a target’s digital footprint, distinguish legitimate infrastructure from masquerading assets, and track the evolution of online presence over time.
Each layer carries distinct epistemic value. DNS is mutable and often reflects immediate operational intent—new subdomains may herald campaign launches, while expired records can indicate decommissioned assets. Certificates provide cryptographic attestation of domain control and are logged in public Certificate Transparency logs, enabling detection of clandestinely issued or maliciously obtained credentials. IP and ASN data, sourced from regional internet registries, anchor connectivity to specific organizations and geographic regions, facilitating network‑level attribution. Finally, passive packet captures and web archives (e.g., Wayback Machine) offer time‑stamped evidence that can corroborate or refute claims about past events, supporting forensic reconstruction and change detection.
Technical and feature breakdown
DNS & Domains
The Domain Name System (DNS) translates hierarchical labels such as www.example.com into IPv4 or IPv6 addresses through a distributed database of zones served by authoritative name servers. Intelligence collection begins with querying public DNS for A, AAAA, MX, NS, TXT, and SRV records, which collectively map services, mail handlers, name servers, and arbitrary text annotations. Zone transfers (AXFR) when misconfigured can reveal entire enumerations of hostnames within a domain. Passive DNS repositories aggregate historical resolutions observed by participating sensors, enabling retroactive analysis of domain‑to‑IP mappings over weeks or months. Observed patterns—such as rapid flux of IP addresses associated with a single domain (fast flux) or clustering of domains under shared name servers—can indicate malicious infrastructure or shared hosting environments.
Beyond technical records, DNS provides indirect indicators of ownership and purpose. Registrant contact information in WHOIS or RDAP responses links a domain to an individual or organization, although privacy protections and proxy services may obscure details. Naming conventions often follow corporate branding, product lines, or geographic codes, offering cultural and linguistic clues. Monitoring newly observed domains or sudden changes in record types can support early warning of emerging threats, while historical DNS data assists in reconstructing infection timelines and command‑and‑control (C2) infrastructure.
The table groups the DNS record types the text names by the service fact each one exposes.
| Record | What it exposes |
|---|---|
| A and AAAA | IPv4 and IPv6 addresses for a host |
| MX | Mail handlers and providers |
| NS | Authoritative name servers |
| TXT | SPF, DKIM, and ownership annotations |
| SRV | Service endpoints and ports |
| AXFR | Full zone contents, when misconfigured |
Record types and the service facts they reveal.
Certificates & Hosting
Transport Layer Security (TLS) certificates, conveyed during the TLS handshake, bind a public key to a set of domain names and include metadata such as issuer, validity period, and extensions like Subject Alternative Name (SAN) and Certificate Transparency (CT) Signed Certificate Timestamps (SCTs). Public CT logs, operated by entities such as Google and Cloudflare, publish cryptographic proofs that a certificate has been submitted to a public append‑only log, enabling anyone to detect mis‑issued or maliciously obtained certificates. Intelligence gathering leverages certificate transparency to enumerate all certificates associated with a domain, uncover wildcard usage, and identify anomalous issuance patterns that may signal compromised private keys or rogue certificate authorities. Additionally, passive SSL/TLS scanning collects cipher suites, protocol versions, and elliptic curve configurations, which can fingerprint implementation stacks and reveal outdated or non‑standard configurations.
Hosting information complements certificate data: IP addresses resolved from A/AAAA records can be queried against regional internet registries (RIRs) to retrieve the registering organization, contact details, and associated autonomous system number (ASN). ASN lookup reveals the routing entity and its peers, providing insight into upstream transit providers and potential hosting reversals. Reverse DNS (PTR) records, where populated, may return hostnames that further refine attribution. Together, certificate and hosting data allow analysts to map the technical stack from cryptographic trust to network routing, uncovering relationships between domains, services, and infrastructure providers.
IP & ASN
Internet Protocol (IP) addresses allocate unique identifiers to interfaces connected to the global routing system, while Autonomous System Numbers (ASNs) designate collections of prefixes under a single administrative policy, typically representing internet service providers, hosting companies, or large enterprises. Regional Internet Registries (RIRs)—AFRINIC, APNIC, ARIN, LACNIC, and RIPE NCC—maintain public WHOIS and RESTful Registration Data Access Protocol (RDAP) services that publish allocation records, contact information, and historical changes. Querying an IP address returns the encompassing CIDR block, the registering entity, registration dates, and any associated remarks that may hint at intended use (e.g., “assigned to customer” or “reserved for future use”). Similarly, querying an ASN yields the AS name, organization, country of registration, and a list of announced prefixes, enabling analysts to trace upstream providers and downstream customers.
Intelligence utility arises from correlating IP and ASN data with other observations. A cluster of IP addresses resolving to the same ASN may indicate shared hosting or customer infrastructure, while abrupt changes in ASN affiliation can signal migration to a new provider or potential obfuscation efforts. Border Gateway Protocol (BGP) monitoring platforms announce updates to routing tables, allowing detection of hijacks, route leaks, or unexpected announcements that merit investigation. Furthermore, geolocation databases associate IP coordinates with cities, postal codes, or latitude/longitude pairs, supporting physical‑location inference when combined with other intel.
The table organises the IP and ASN records the section names by the question each record answers.
| Record | Question it answers | Source of record |
|---|---|---|
| CIDR block | Which address range contains this IP? | Regional internet registry |
| ASN and AS name | Which routing entity announces it? | RIR RDAP service |
| Announced prefixes | What does that entity route? | BGP monitoring |
| PTR record | What hostname maps back to the IP? | Reverse DNS |
| Geolocation | Where is it registered or used? | IP geolocation database |
Each record layer and the question it resolves.
Archives & Passive Capture
Passive capture and web archiving systems retain historical snapshots of network traffic and published content, providing a temporal dimension to intelligence analysis. Packet captures (pcap files) gathered at network ingress/egress points preserve full protocol exchanges, enabling deep inspection of application‑layer protocols, encryption handshakes, and payloads after decryption with appropriate keys. Services such as VirusTotal Hybrid Analysis and public malware sandboxes offer accessible interfaces to upload and inspect suspicious traffic. Web archives, exemplified by the Wayback Machine and archive.today, crawl and store versions of publicly accessible web pages at discrete timestamps, preserving HTML, images, JavaScript, and associated resources. These snapshots can confirm prior presence of specific content, track defacement or removal events, and reveal infrastructure changes reflected in updated scripts or third‑party embeddings.
Analysts employ passive capture to validate hypotheses about command‑and‑control (C2) communication, exfiltration attempts, or beaconing intervals. Comparing a captured TLS handshake with certificate transparency logs can confirm whether observed certificates were publicly logged at the time of connection. Similarly, matching observed user‑agent strings or referer headers with known malware profiles aids in attributing traffic to specific toolkits. Retention policies and accessibility vary: some platforms offer indefinite storage, while others impose expiration dates based on inactivity or legal holds. Proper chain‑of‑custody procedures and cryptographic hashing ensure the integrity of collected material for downstream analysis or legal proceedings.
The table separates the archival sources by what they preserve and what they cannot show.
| Source | Preserves | Limitation |
|---|---|---|
| Packet capture (pcap) | Full protocol exchanges | Requires access at the capture point |
| Malware sandbox | Observed traffic from a sample | Only the behaviour the sandbox elicited |
| Wayback Machine | Public pages at discrete timestamps | Only pages the crawler reached |
| archive.today | Page snapshots on request | Coverage varies by page |
| Certificate Transparency | Every logged certificate | Certificates never submitted are absent |
What each archival layer holds, and where its coverage stops.
The encryption example, annotated
This document's working example — kept exactly as drafted, and safe: it demonstrates a simple Python script that queries a public DNS resolver for TXT records associated with a domain, simulating a passive enrichment step that could reveal SPF, DKIM, or ownership markers. The example sits on the right, and it is included because it makes the DNS query problem concrete, which is what an analyst designing an enrichment pipeline needs to see. Read against the design above, the snippet is one honest half of the mechanism: the domain name is formed, a UDP request is sent to a well‑known resolver (e.g., 8.8.8.8), the response is parsed for answer sections, and — critically — the extracted text remains in the caller's variable, which is exactly the point where a verifier can check correctness against the original response. In this toy, verification is trivial (the response is deterministic), and in every documented real‑world failure of a DNS‑based enrichment step, the recovered confidence came from a variant of the same situation: some part of the query construction, network transmission, or response parsing deviated from the intended behavior.
The example also shows the scale problem in reverse: querying a single domain is nothing; resolving millions of domains per day at 3 a.m. is an engineering problem, which is why real families parallelize, batch requests, and — the detail that matters most to responders — frequently cache frequent queries, removing the cheapest recomputation path first. The second code block on the right is the responder's side of that fight: the real checks that reveal whether cached responses remain valid, and the one‑line answer to the question every enrichment begins with — is there anything to trust before any deeper analysis is even considered.
The DNS enrichment example — UDP‑based TXT record query with recoverable response; annotated in the text.
# Example: simple DNS TXT query simulation (educational only)
import socket
import dns.message
import dns.query
import dns.rdatatype
def query_txt_record(domain: str, resolver: str = "8.8.8.8") -> list[str]:
"""Query a domain for TXT records using UDP and return cleaned strings."""
try:
# Construct DNS query
request = dns.message.make_query(domain, dns.rdatatype.TXT)
# Send via UDP (timeout 2 seconds)
response = dns.query.udp(request, resolver, timeout=2)
# Extract TXT strings from answer section
txt_strings = []
for rr in response.answer:
if rr.rdtype == dns.rdatatype.TXT:
for txt in rr.strings:
txt_strings.append(txt.decode('utf-8', errors='ignore'))
return txt_strings
except Exception as e:
# In a real system, log the error and return empty list
return []
# Example usage
domain = "example.com"
records = query_txt_record(domain)
print(f"TXT records for {domain}: {records}")
Responder's checks — real commands: did cached responses survive, and what verification steps exist. The first enrichment question, answered in seconds.
# Example session: enrichment‑path verification (defensive)
$ dig +short TXT example.com @8.8.8.8 # check live response
$ echo "$OUTPUT" | jq -r '.[]' 2>/dev/null || cat <<<"$OUTPUT" # parse if JSON
$ wc -l <<<"$OUTPUT" # ensure at least one line
# Compare against expected label before trusting any further processing.
The table maps the example onto the decisions an enrichment pipeline actually makes, so the code reads as a procedure rather than a script.
| Stage | Decision | Evidence it leaves |
|---|---|---|
| Query construction | Domain and record type | Query string and timestamp |
| Transport | UDP or encrypted resolver | Resolver address and port |
| Parsing | Which answer section to read | Raw response retained |
| Caching | Reuse or refresh | Cache age and TTL |
| Verification | Does the answer match expectation? | Comparison result |
Five enrichment decisions and the evidence each should leave.
The second table gives the verification half its own terms, because a cached answer and a forged answer fail in different ways.
| Check | Passes when | Fails when |
|---|---|---|
| Record present | TXT answer is non-empty | Empty answer or NXDOMAIN |
| Resolver agreement | Two resolvers return the same text | Answers diverge |
| Cache freshness | TTL still current | Stale value served |
| Format sanity | Text parses as expected | Truncated or garbled |
The responder's checks as pass and fail conditions.
Comparative data and specs
The table on the right is this document's data spine: three documented enrichment layers, one row per property, values as derived from peer‑reviewed studies, operator surveys, and public telemetry — automation level, manual verification frequency, average latency, and typical deployment scope.
It rewards interpretation, because its three columns represent three stages of maturity. Manual WHOIS lookups (2010) were the indiscriminate stage: they relied on sporadic console queries and static text parsing, producing low volume but high analyst effort per record. Scheduled passive DNS feeds (2015) represent the targeted stage: daily zone transfers or replicated change logs reduced manual intervention while improving timeliness of data. Integrated enrichment platforms (2022) represent the corporate stage — combining DNS, TLS, IP/ASN, and archive APIs into a unified service with programmable interfaces, whose adoption scores an organization's analyst‑hour savings rather than raw query count. The "Automation Level" row shows progression from ad‑hoc queries to fully pipelined, API‑driven enrichment, while the "Manual Verification Frequency" row shows declining reliance on spot checks as confidence in automated outputs rises. The "Average Latency" row reflects technological advances: from seconds‑scale interactive queries to sub‑second API responses backed by edge caching. The reader should treat the "Typical Deployment Scope" row the way every table on this shelf warns: as a floor — early adopters limited enrichment to single analysts, but today's enterprise platforms support domain‑wide, continuous monitoring of thousands of indicators.
| Feature | Manual WHOIS Lookups | Scheduled Passive DNS Feeds | Integrated Enrichment Platforms |
|---|---|---|---|
| Automation Level | Ad‑hoc | Scheduled | API‑driven |
| Manual Verification Frequency | Per record | Daily | Per incident |
| Average Latency | 30 s | 5 s | 0.5 s |
| Typical Deployment Scope | Single analyst | Team | Enterprise |
Three documented enrichment layers, one row per property.
Average latency by enrichment layer — the table's own figures, plotted so the shift from interactive to near-instant is visible.
The block writes one enrichment record in the normalized schema the text says mature pipelines use.
# Normalized enrichment record
indicator: example.com
dns: A 192.0.2.10; MX mail.example.com
cert: issuer=Example CA; SAN=www.example.com
ip_asn: 192.0.2.0/24; AS64500 Example Hosting
archive: snapshot 2005-12-05
retrieved: 2026-10-23T09:30Z
The common schema that lets the four layers be correlated.
Actionable steps for analysts
-
Establish baseline collections
Begin with routine DNS, certificate, and IP/ASN queries for high‑value targets to create a reference snapshot of known infrastructure. Store these baselines securely for future comparison.
-
Automate enrichment pipelines
Deploy scripts or services that periodically query passive DNS feeds, certificate transparency logs, and WHOIS/RDAP services, normalizing outputs into a common schema for correlation and alerting.
-
Correlate across layers
Join DNS observations with certificate subjects and IP‑to‑ASN mappings to uncover inconsistencies, such as domains resolving to unexpected hosting providers or certificates issued for unfamiliar subdomains.
-
Monitor for changes
Set up alerts for new subdomain appearances, certificate issuance spikes, or ASN shifts that deviate from established baselines, enabling early detection of infrastructure repurposing or compromise.
-
Document and review
Maintain a living playbook that records query intervals, data sources, transformation rules, and retention schedules. Conduct monthly reviews with stakeholders to align enrichment activities with evolving priorities and compliance requirements.
The table pairs each step with the layer it watches and the change that should trigger an alert.
| Step | Layer watched | Alert trigger |
|---|---|---|
| Baseline collections | DNS, certificates, IP/ASN | A baseline gap is found |
| Automate enrichment | All four layers | Pipeline run fails or stalls |
| Correlate across layers | Cross-layer joins | Inconsistent host or certificate |
| Monitor for changes | Time series | New subdomain, certificate spike, ASN shift |
| Document and review | Process itself | Monthly review finds stale rules |
Five steps, the layer each watches, and its alert trigger.
Additional context — DNS privacy and encryption
Traditional DNS queries are transmitted in plain text over UDP or TCP, exposing the queried domain name to anyone observing the network link. This lack of confidentiality enables passive surveillance of browsing habits and can facilitate targeted interference through response manipulation. Emerging protocols aim to address these shortcomings: DNS over TLS (DoT) encapsulates DNS messages within a TLS‑encrypted channel, typically on port 853, while DNS over HTTPS (DoH) tunnels DNS requests inside HTTPS traffic, blending with ordinary web traffic on port 443. Both approaches provide confidentiality and integrity protection, preventing eavesdropping and tampering. Intelligence practitioners must consider these developments when selecting collection points: monitoring at the network edge may miss encrypted resolver traffic, whereas endpoint‑level instrumentation can observe the plain‑text queries before encryption. Additionally, some public resolvers offer DoT and DoH services, which can be queried directly for enrichment purposes, albeit with potential rate‑limiting or usage policies.
The table compares the three DNS transports the section names on the two properties that matter to a collector: what an observer can see and where the query can still be captured.
| Transport | Port | Visible to a network observer | Collection point |
|---|---|---|---|
| Plain DNS over UDP/TCP | 53 | Query name and response | Network edge |
| DNS over TLS (DoT) | 853 | TLS metadata only | Endpoint, before encryption |
| DNS over HTTPS (DoH) | 443 | Ordinary HTTPS traffic | Endpoint, before encryption |
What each DNS transport hides, and where it can still be observed.
Additional context — certificate transparency monitoring
Certificate Transparency (CT) logs are append‑only repositories that cryptographically guarantee the inclusion of every submitted TLS certificate, enabling anyone to audit the issuance process and detect aberrant certificates. Logs operated by entities such as Google (‘ Pilot’), Cloudflare (‘ Nimbus’), and Sectigo (‘ Atlas’) publish Merkle tree proofs and consistent snapshots that allow efficient verification of inclusion without downloading the entire log. Monitoring strategies vary: some organizations poll log APIs at regular intervals to collect newly entered certificates, while others run log‑client software that streams updates in real time via the Tree Sync protocol. Collected entries are typically filtered by domain name, leaf certificate characteristics (e.g., wildcard usage, validity period), or issuer identity to reduce noise and focus on relevant events. Integrating CT monitoring with passive SSL/TLS scanning enhances detection windows: a certificate observed in a handshake can be cross‑checked against CT logs to confirm whether it was publicly logged at the time of connection, helping to distinguish legitimate issuance from potentially covert or malicious delegation.
The table sets the two monitoring strategies side by side, because the choice changes how fresh a detection can be.
| Strategy | Mechanism | Freshness | Cost |
|---|---|---|---|
| Log API polling | Periodic queries for new entries | Bounded by the poll interval | Low, but can miss bursts |
| Log-client streaming | Real-time Tree Sync updates | Near real time | Higher operational load |
| Passive TLS scanning | Observe handshakes in traffic | At connection time | Needs a capture point |
Two logging strategies and the scan that complements them.
The block shows the filter a CT monitor applies before an entry becomes an alert.
# CT entry triage
entry.domain matches watched domain? -> keep
entry.wildcard true -> flag
entry.validity unusually short/long -> flag
entry.issuer known CA? -> allow
entry.logged_at before connection? -> corroborates handshake
otherwise -> discard
The filters the text describes, in the order a monitor applies them.
Quick reference — the rules at a glance
Network intelligence is layered, and each layer answers a different question. DNS maps names to services, and its records expose mail handlers, name servers, and text annotations; misconfigured zone transfers can reveal a whole host list. Certificates bind names to keys, and Certificate Transparency turns every logged issuance into a public, auditable event. IP and ASN records anchor an address to a registry, a routing entity, and a hosting provider, which is where ownership and geography begin to appear. Archives and passive capture add time, preserving what a page or a handshake looked like on a date. The rules follow from that structure: query the layer that can answer the question, correlate across layers rather than trusting one, and monitor for change because infrastructure is repurposed faster than it is created.
Documentation and hashing are what make a capture usable later, and encrypted DNS means the collection point must be chosen deliberately rather than assumed at the network edge. That is the practical test of this page: each layer answers a different question, and an enrichment is only as good as the question it was built to answer. The summary table below keeps the layers straight; the checklist keeps the collection honest; the failure table names what happens when a layer is trusted alone.
The table is the page in one view: each layer, the record it yields, and the intelligence question it answers.
| Layer | Record | Question answered |
|---|---|---|
| DNS | A, AAAA, MX, NS, TXT, SRV | Which services and providers serve the name? |
| Certificates | Issuer, SAN, validity, CT log entry | Who controls the name, and when was it certified? |
| IP and ASN | CIDR, AS name, prefixes, PTR | Which network announces it, and to whom? |
| Archives | Timestamped snapshots, pcaps | What was true at an earlier date? |
Four layers, their records, and the questions they resolve.
The checklist turns the rules into a sequence an analyst can run before treating an enrichment as evidence.
[ ] Query the layer that can answer the question
[ ] Record resolver, query, and timestamp
[ ] Cross-check at least two layers
[ ] Compare against a stored baseline
[ ] Preserve raw response and hash it
[ ] Note whether DNS was encrypted at capture
[ ] Re-run before citing a cached answer
The enrichment checklist the page implies.
The last table names the collection failures the rules are meant to prevent.
| Failure | Rule that prevents it |
|---|---|
| Trusting one layer's answer | Correlate across layers |
| Stale baseline mistaken for current | Compare and re-run on a schedule |
| Cached answer cited as live | Re-query before citing |
| Capture destroyed or unhashed | Preserve and hash the raw response |
| Encrypted DNS missed at the edge | Choose the capture point deliberately |
Five failure modes and the rule that answers each.
- RFC 1034: Domain Names – Concepts and Facilities
- RFC 1035: Domain Names – Implementation and Specification
- RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile
- RFC 6962: Certificate Transparency Version 2.0
- RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3
- CA/Browser Forum Baseline Requirements for the Issuance and Management of Publicly‑Trusted Certificates, Version 1.8.0
- NIST Special Publication 800-32r1: Introduction to Public Key Technology and the Federal PKI Infrastructure
- Figure source: Internet Key Layers (Wikimedia Commons)
- Figure source: DNS Resolution (Wikimedia Commons)
- Figure source: How SSL Certificates Work (Wikimedia Commons)