shodan
Table of Contents
Shodan.io
Description
Shodan (S-H-O-D-A-N, standing for Sentient Hyper-Optimised Data Access Network) is often referred to as the "search engine for the Internet of Things (IoT)" or the "hacker's Google." Its purpose is to provide cyber security professionals, researchers, and penetration testers with detailed information on Internet-connected devices and services worldwide.
Unlike traditional search engines (like Google) that index website content, Shodan works by actively scanning the internet's public IP addresses and ports. When a service responds (e.g., a web server, a camera, or a router), Shodan captures the service banner—the metadata the service sends back. This banner often reveals:
- The type of device (e.g., printer, web camera, firewall).
- The software running (e.g., Apache HTTP Server, Microsoft IIS).
- The version number of the software.
- The open port number (e.g., 80, 21, 22).
- Geolocation data.
This ability to search by service banners makes it a powerful passive reconnaissance tool for identifying exposed, unpatched, or misconfigured systems on a massive scale.
Examples
Shodan's main power comes from its flexible search filters, which allow for highly specific queries.
| Search Filter | Description | Example Query |
|---|---|---|
hostname |
Search by host domain name | hostname:"google.com" |
os |
Search for a specific operating system | os:"Windows Server 2019" |
port |
Search for devices listening on a specific port | port:21 (for FTP servers) |
product |
Search for a specific software product | product:"nginx" |
country |
Search for devices located in a specific country | country:"US" |
Real-World Scenario: Identifying vulnerable devices:
- A security researcher wants to find all publicly exposed devices running a specific version of Apache Struts known to have a critical vulnerability.
- The researcher uses the Shodan web interface or API with the query:
product:"Apache httpd" version:"2.2.14". - Shodan returns a list of IP addresses and ports matching this exact software and version, enabling the researcher to gauge the scale of the vulnerability exposure globally or within a specific organization (using the
net:filter).