Skip to main content

Shodan

Shodan is a specialized search engine and security intelligence platform for discovering and analyzing internet-connected devices, systems, and services across the global internet. Unlike traditional search engines that index web content, Shodan continuously scans and catalogs devices, servers, routers, cameras, industrial control systems, and other internet-facing infrastructure, providing comprehensive visibility into the internet's attack surface.

CategoryThreat intelligence
DirectionQuery source
Sign-inShodan API Key
Query languagesSQLite
Tables12
Query templates27
Websiteshodan.io

Before you start​

Huntbase signs in to Shodan with Shodan API Key. Create the credential in Shodan first, then keep it to hand for the Connect step.

  1. Create a free Shodan account, or sign in to your existing one.
  2. Copy your API key from your account page at https://account.shodan.io.

For the vendor's own instructions, see Shodan API key requirements.

tip

Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.

Connect Shodan​

  1. Go to Connections and click New connection, or click New connection on the Shodan product page.
  2. On Product, pick Shodan and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Credentials​

The only Method is Shodan API Key. Enter a Credential label (for example Production), then fill in:

FieldRequiredNotes
Shodan API KeyYesSecret — not shown again after you save it.

Query it​

Once connected, Shodan can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL over the 12 tables listed below, alongside every other connected source.

Example: SQLite​

List the scans — Uncover the details of all the completed network scans to analyze potential vulnerabilities or security threats.

select
*
from
shodan_scan;

Shodan ships with 27 query templates. Find them in Library › Queries — see Query templates.

Tables​

Shodan adds 12 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 12 tables
TableContains
shodan_account_profileInformation about the Shodan account linked to the caller.
shodan_api_infoInformation about the API plan belonging to the given API key.
shodan_dns_reverseHostnames defined for the given IP.
shodan_domainGet all the subdomains and other DNS entries for the given domain.
shodan_exploitList the exploits requested for this account.
shodan_hostAll services that have been found on the given host at IP.
shodan_host_serviceAll services that have been found on the given host.
shodan_portPorts returns a list of port numbers that the crawlers are looking for.
shodan_protocolList of the protocols that can be used when launching an Internet scan.
shodan_scanList the scans requested for this account.
shodan_searchSearch the internet for hosts matching the query parameters.
shodan_serviceList of the services Shodan can detect.

Next steps​