Introduction to Virtual Hosts
Big Idea: Hosts are identified by IP address. Virtual hosts are identified by a name + IP address.
Hosts were traditionally identified in the Censys data set by IP address.
But now, our host data set includes both (unnamed) hosts and virtual hosts.
Collecting Virtual Host Data with Name-Based Scans
Virtual hosts contain services that have responded to a name-based Censys scan. The name of the virtual host is the name used to scan its services.
This name was included in the scan in one of two ways:
In the server name indicator (SNI) field during a TLS handshake
In the Host header field of an HTTP request
Services on Virtual Hosts
The types of services on virtual hosts are limited compared to those seen on hosts because many protocols do not support name-based differentiation.
services.service_name that can appear on a virtual host:
The Overlap of Hosts & Virtual Hosts
Service data is not necessarily different between an (unnamed) host and a virtual host. A service observed on a particular port may provide the same content when a name is specified and when it is not.
Some services may only be seen when a name is specified, so a virtual host may have whole services that are not present on the underlying (unnamed) host.
The Effect of Virtual Hosts on Search Results
The number of vhosts in the Censys dataset is more than double the number of hosts. Including virtual hosts in your search results can dramatically increase the number of hits.
Due to the volume of virtual host services in the Censys data set and out of respect for the integrity of hosts serving a large number of virtual hosts, name-based services are refreshed at a rate of every 30 days.
Refreshing Virtual Host Data
DNS names known to Censys are re-resolved every 30 days and successful responses result in name-based scans. Virtual hosts age out of the host index after 45 days.
How to Search Virtual Hosts in the Web UI
Click the Search settings icon (gear) in the search bar of the web UI.
For the Virtual hosts setting, select "Include" to include virtual hosts in your search results. Select "Only" to restrict your search results to just virtual hosts.
Write a query in the Censys Search Language that asks a question about virtual hosts.
How to Search Virtual Hosts in the API
Use the new
virtual_hostquery parameter to include, exclude, or only search virtual hosts.
If not provided, the results list defaults to (unnamed) hosts only.
Example Search for Host and Vhosts Running an HTTP Service:
How to Search Virtual Hosts in BigQuery
Upgrade to the Censys Premium tier for access to the industry’s only virtual host data set.
Questions? Reach out to firstname.lastname@example.org.
Please sign in to leave a comment.