Skip to content
OSINTblogs

Shodan for OSINT: search filters, examples and safe use

Shodan and similar scan engines record what every internet-facing device says about itself. How the data is collected, the search filters that matter, queries for mapping an organisation and linking infrastructure, the free tools, and the line between reading and probing.

· 7 min read

Search engines index web pages. Shodan indexes machines. It connects to every public IP address on a wide range of ports, records whatever each service announces, and makes the results searchable. Web servers, mail servers, databases, remote desktops, routers, cameras, industrial controllers and printers all describe themselves to anyone who connects, and Shodan writes it down.

For researchers this is a way to see what an organisation exposes to the internet, and to link servers that share a configuration, without sending a single packet to the target.

What a scan engine records

When Shodan connects to a port, the service usually replies with a banner: text identifying the software, version and settings. For encrypted services it also records the TLS certificate. Each record includes:

  • the IP address, port and protocol

  • the banner text and, for websites, the page title, headers and a hash of the favicon

  • the certificate: names it covers, issuer, validity dates, fingerprint

  • the software product and version, where recognisable

  • the network owner, ASN and approximate location

  • host names from reverse DNS and certificates

  • the time of the scan

Two points shape how to read results. Everything is a snapshot, dated, and cloud addresses change hands in hours. And you are reading Shodan's records, not touching the device. That distinction is what makes this open-source research.

Other engines

Engine

Notes

Shodan

The original. Broad port coverage, strong on devices and industrial systems

Censys

Rich certificate and host data, with a research programme. Query syntax has changed over time, so follow its current documentation

ZoomEye, FOFA

Large indexes with different regional strengths

Netlas, Criminal IP, LeakIX

Newer services with free tiers and particular specialisms

They scan at different times with different methods, so results differ. Check a second engine when a finding matters.

Free ways in

  • A free account allows searches with most filters, with limited pages of results.

  • Host pages. Look up a single address at shodan.io/host/ followed by the IP address.

  • InternetDB. A free, keyless API returning open ports, host names, software identifiers and known vulnerabilities for an address:

curl -s https://internetdb.shodan.io/203.0.113.10 | jq
  • The command-line tool, with a free API key:

pip install shodan
shodan init YOUR_API_KEY

shodan host 203.0.113.10
shodan count 'org:"Example Ltd"'
shodan search --fields ip_str,port,org,hostnames 'ssl.cert.subject.cn:example.com'

203.0.113.10 is a placeholder from a range reserved for documentation. Some filters and bulk downloads need a paid plan.

Filters worth learning

Search terms without a filter match banner text. Filters narrow by field.

Filter

Finds

Example

hostname:

Hosts whose names contain a domain

hostname:example.com

org:

Hosts in networks registered to an organisation

org:"Example Ltd"

asn:

Hosts in an autonomous system

asn:AS64500

net:

Hosts in an address range

net:203.0.113.0/24

ssl.cert.subject.cn:

Certificates issued to a name

ssl.cert.subject.cn:example.com

ssl:

Any certificate field containing text

ssl:"Example Ltd"

http.title:

Web page titles

http.title:"Example Portal"

http.html:

Text in a page's HTML

http.html:"G-ABC123XYZ"

http.favicon.hash:

Sites with a given favicon

http.favicon.hash:-123456789

product:

Recognised software

product:nginx

port:

Services on a port

port:3389

country:, city:

Location, approximate

country:GB

before:, after:

Scan date

after:01/10/2026

Combine them with spaces, which mean AND, and exclude with a minus sign:

org:"Example Ltd" port:3389
hostname:example.com -port:80 -port:443
ssl:"Example Ltd" -hostname:example.com

Uses in research

Map what an organisation exposes

This is the defensive use, and the one to practise on your own organisation first.

  1. Search by hostname: for the main domains.

  2. Search by org: and by asn: for networks registered to the organisation.

  3. Search certificates with ssl: for the organisation's name and domains. This finds servers on cloud providers that the first two miss.

  4. List what is there: remote desktop, databases, administration panels, test servers, devices.

  5. Note software versions, and which hosts Shodan flags with known vulnerabilities.

Typical findings are forgotten test systems, remote access left open, and services nobody knew were public. Our guide to investigating a domain covers the subdomain side.

Find the real server behind a protection service

Sites behind a content delivery network show that network's addresses in DNS. The origin server may still answer directly, and if it presents the site's certificate or serves the same page, a scan engine will have indexed it. Search for the certificate name, the page title or the favicon hash, and exclude the delivery network. A result at a hosting company is a candidate for the origin. Confirm with care, since a match on title alone is weak.

The same operator tends to configure servers the same way. Shared features that scan data exposes:

  • The same TLS certificate, or self-signed certificates with the same unusual details.

  • The same favicon hash. Our guide to lookalike domains shows how to calculate it.

  • The same SSH host key on different addresses, which means the same machine image or the same server moved.

  • The same page title, HTML fragment or tracking ID.

  • The same unusual combination of ports and software versions.

Security researchers use these to follow phishing kits and malicious servers from one address to dozens. As always, one shared feature on common software means little, and several unusual ones together mean a lot. See OSINT pivoting.

Check an address in a log

Looking up an address that connected to your systems shows whether it is a server, what it runs and whether it looks compromised or like a proxy. See IP address OSINT.

Reading results carefully

  • Check the timestamp. A record from four months ago may describe a previous tenant of that address.

  • Location is approximate. It comes from IP geolocation.

  • org: reflects registry data. A company hosting in the cloud appears under the cloud provider's name, not its own.

  • Vulnerability flags are inferred from version numbers. Vendors often patch without changing the version, so a flag is a prompt to check, not a confirmed weakness.

  • Honeypots exist. Some hosts are decoys built to attract scanners and attackers, and display dozens of improbable services.

  • Shared hosting. One address may serve thousands of unrelated sites, so a banner on it belongs to none of them in particular.

  • Absence proves little. A device not in the index may simply not have been scanned on that port recently.

The line you must not cross

In practice:

  • Do not open the services you find, beyond what any ordinary visitor to a public website would see.

  • Do not try default credentials. Ever.

  • Do not run your own scans against systems you do not own or have written permission to test. Law on scanning varies by country.

  • Be careful what you publish. A list of exposed hospital devices is a target list. Tell the owner or a national computer emergency response team, and give them time.

  • Screenshots in results may show private spaces. Images captured from open cameras and remote desktops are personal data.

Our overview of whether OSINT is legal covers the general position.

Reporting what you find

If you come across an exposure belonging to someone else:

  1. Record the address, port, what the scan record shows and its date. Do not connect to verify.

  2. Identify the owner from the certificate, host name or network registration.

  3. Use the organisation's published security contact, often in a security.txt file on its website, or its abuse address.

  4. If there is no response or the owner cannot be found, report to the national computer emergency response team.

  5. State what you observed and how, and that you did not access the system.

A worked example

A phishing page imitating a bank is reported at one address.

  1. The host page shows a web server with a self-signed certificate carrying an unusual organisation name, and a favicon matching the bank's.

  2. A search for that certificate organisation name returns eleven hosts at three hosting companies.

  3. Nine of the eleven serve the same page title. Seven share one SSH host key.

  4. The earliest scan record for any of them is three weeks old.

The finding: at least nine servers form one phishing operation, deployed from a common image within the past three weeks. That is enough to send to the hosting companies' abuse teams and the bank, with the scan records as evidence, and nothing in it required touching the servers. Preserve the records first. See preserving web evidence.

Frequently asked questions

What is Shodan used for?

Finding and describing internet-connected devices and services. Defenders use it to see what their organisation exposes, and researchers use it to study and link infrastructure.

Yes. Searching its records is lawful. Using what you find to access systems without permission is not.

Is Shodan free?

Basic searches and host lookups are free with an account, with limits on results and filters. The InternetDB API is free and needs no key. Larger volumes and some filters are paid.

What is the difference between Shodan and Censys?

Both scan the internet and index services. They differ in scan frequency, ports covered, data fields and query language, so each finds things the other misses.

How do I find all the servers belonging to a company?

Combine searches by host name, by organisation and network, and by the names in TLS certificates. No single search finds everything, particularly for cloud-hosted systems.

More from Dheeraj Yadav

Report this post