đ CloudSEK has raised $19M Series B1 Round â Powering the Future of Predictive Cybersecurity
Read more
Rated the best search engine for hackers, Shodan was referred to as the scariest search engine on the internet, back in 2013. While Shodan is similar to Google, in that they are both search engines that use crawlers, it crawls the entire internet to map and index internet-connected IoT devices. To put this into perspective, Googleâs crawlers only index a part of the internet that is publicly accessible, the World Wide Web. And although Shodan is infamous for being instrumental in blackhat hacking, in the right hands, this search engine is effective in the process of vulnerability assessment and pen-testing IoT devices.Â
In this article we delve into Shodan and its working, and discuss the features that make this search engine useful for pen-testers and bug bounty hunters.
As mentioned earlier, Shodan (Sentient Hyper-Optimized Data Access Network) is a search engine for devices connected to the internet. Designed and developed by Web Developer John Matherly, this search engine crawls the entire internet, parses the service banners of IoT devices, and indexes them for future searches. It maps and reports any device, such as webcams, smart devices, medical devices, traffic lights, C2 systems of devices, etc., that is connected to the internet and is not secure.Â
The service banners of IoT devices contain metadata relevant to the devices, such as:
Upon scanning the entire internet, the search engine sends queries to connected IoT devices for publicly available information related to them. The servers of such devices return their service banners to the user. Shodan also supports customized queries using filters like city, country, hostname, OS, etc. to find out the corresponding details.
Similar to other search engines, Shodan also utilizes a search box, to which users can enter search terms that adhere to its search query syntax. Moreover, search results can be narrowed down to be as accurate as possible, by making use of quotation marks and other such operators.Â
For instance, boolean operators + or â can be used to include or exclude terms in the query.
This search engine only searches for the data property on the IoT devicesâ banners. Hence, it employs search filters for refined results. Here are some basic search filters you can use:
Search examples:
org:âAmazonâ ssl:âtargetâ
ssl:âtargetâ
html:âDashboard Jenkinsâ
http.component:âjenkinsâ
http.title:â302 Foundâ
http.component:âjavaâ
ssl.cert.subject.cn:âtargetâ
hostname:âtargetâ
http.favicon.hash:-335242539
html:â© 2020 targetâ
product:elastic port:9200
This IoT search engine can be used to monitor your networks or products continuously, to help you stay informed of any threats to them. For this, you can make use of the Shodan Command-line Interface (CLI).
shodan alert create âBug-Bounty-Targetâ 198.172.0.0/24
shodan alert triggers
shodan alert enable {ALERTID} malware
Every new trick boils down to automation these days. Fortunately, with this search engine you can automate various tasks that are within its range of activities. There are the three main ways to automate this search engine:
Check out this handy tool that makes the entire process easier and hassle-free: m4ll0k/Shodanfy.py
Although it seems quite perverse, security professionals, researchers, and even government agencies trust Shodan to alert them on unmanaged IoT devices that may present vulnerabilities. Such devices could potentially expose critical data belonging to an enterprise, organization or individual, to attacks. This search engine helps prevent this. By following the methods prescribed above, you can also explore Shodan and monitor and protect your network or product from exploitation.Â