Shodan

Integration version: 11.0

‌Configure Shodan Integration to work with Google Security Operations

To obtain the API Key, please complete the following steps:

  1. Log into yourShodan account.

  2. You will find your API Key in theAccount Overview section of the ShodanInterface.

Configure Shodan integration in Google SecOps

For detailed instructions on how to configure an integration inGoogle SecOps, seeConfigureintegrations.

Actions

DNS Resolve

Description

Look up the IP address for the provided list of hostnames.

Parameters

N/A

Run On

This action runs on the Hostname entity.

Action Results

Entity Enrichment
Enrichment Field NameLogic - When to apply
google.comReturns if it exists in JSON result
bing.comReturns if it exists in JSON result
Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_successTrue/Falseis_success:False
JSON Result
{"google.com":"1.1.1.1","bing.com":"1.1.1.1"}

DNS Reverse

Description

Look up the hostnames that have been defined for the given list of IP addresses.

Parameters

N/A

Run On

This action runs on the IP Address entity.

Action Results

Entity Enrichment
Enrichment Field NameLogic - When to apply
146.125.10.5Returns if it exists in JSON result
8.8.8.8Returns if it exists in JSON result
Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_successTrue/Falseis_success:False
JSON Result
{"146.125.10.5":null,"8.8.8.8":["google-public-dns-a.google.com"]}

Get API Info

Description

Returns information about the API plan belonging to the given API key.

Parameters

N/A

Run On

This action runs on all entities.

Action Results

Entity Enrichment

N/A

Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_successTrue/Falseis_success:False
JSON Result
{"https":false,"unlocked":false,"unlocked_left":0,"telnet":false,"scan_credits":0,"plan":"oss","query_credits":0}

Get IP Info

Description

Get all available information on an IP.

Parameters

ParameterTypeDefault ValueDescription
Return Historical BannersBooleanfalseTrue if all historical banners should be returned.
Set MinifyBooleanfalseTrue to only return the list of ports and the general host information, no banners.

Run On

This action runs on the IP Address entity.

Action Results

Entity Enrichment
Enrichment Field NameLogic - When to apply
dataReturns if it exists in JSON result
_shodanReturns if it exists in JSON result
idReturns if it exists in JSON result
crawlerReturns if it exists in JSON result
optionsReturns if it exists in JSON result
moduleReturns if it exists in JSON result
ptrReturns if it exists in JSON result
hashReturns if it exists in JSON result
optsReturns if it exists in JSON result
rawReturns if it exists in JSON result
ispReturns if it exists in JSON result
portReturns if it exists in JSON result
hostnamesReturns if it exists in JSON result
locationReturns if it exists in JSON result
cityReturns if it exists in JSON result
country_nameReturns if it exists in JSON result
region_codeReturns if it exists in JSON result
area_codeReturns if it exists in JSON result
dma_codeReturns if it exists in JSON result
country_code3Returns if it exists in JSON result
postal_codeReturns if it exists in JSON result
longitudeReturns if it exists in JSON result
country_codeReturns if it exists in JSON result
latitudeReturns if it exists in JSON result
resolver_hostnameReturns if it exists in JSON result
recursiveReturns if it exists in JSON result
resolver_idReturns if it exists in JSON result
softwareReturns if it exists in JSON result
timestampReturns if it exists in JSON result
domainsReturns if it exists in JSON result
orgReturns if it exists in JSON result
osReturns if it exists in JSON result
asnReturns if it exists in JSON result
transportReturns if it exists in JSON result
ip_strReturns if it exists in JSON result
Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_successTrue/Falseis_success:False
JSON Result
[{"EntityResult":{"data":[{"_shodan":{"id":"d670bfbb-4821-4320-969d-0590789ab502","crawler":"545144fc95e7a7ef13ece5dbceb98ee386b37950","options":{},"module":"dns-udp","ptr":true},"hash":-553166942,"opts":{"raw":"34ef818200010000000000000756455253494f4e0442494e440000100003"},"ip":134744072,"isp":"Google","data":"nRecursion: enabled","port":53,"hostnames":["google-public-dns-a.google.com"],"location":{"city":null,"region_code":null,"area_code":null,"dma_code":null,"country_code3":"USA","country_name":"United States","postal_code":null,"longitude":-97.822,"country_code":"US","latitude":37.751000000000005},"dns":{"resolver_hostname":null,"recursive":true,"resolver_id":null,"software":null},"timestamp":"2019-01-29T12:36:09.300695","domains":["google.com"],"org":"Google","os":null,"asn":"AS15169","transport":"udp","ip_str":"1.1.1.1"}],"city":null,"region_code":null,"tags":[],"ip":134744072,"isp":"Google","area_code":null,"dma_code":null,"last_update":"2019-01-29T12:36:09.300695","country_code3":"USA","country_name":"United States","hostnames":["google-public-dns-a.google.com"],"postal_code":null,"longitude":-97.822,"country_code":"US","ip_str":"1.1.1.1","latitude":37.751000000000005,"org":"Google","os":null,"asn":"AS15169","ports":[53]},"Entity":"1.1.1.1"}]

Ping

Description

Verify that the user has a connection to Shodan via the user's device.

Parameters

N/A

Run On

This action runs on all entities.

Action Results

Entity Enrichment

N/A

Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_connectedTrue/Falseis_connected:False
JSON Result
N/A

Scan a Network

Description

Scan a network using Shodan. Shodan crawls the entire Internet at least once amonth, but if you want to request Shodan to scan a network immediately, you cando so using the on-demand scanning capabilities of the API.

Parameters

N/A

Run On

This action runs on all entities.

Action Results

Entity Enrichment

N/A

Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_successTrue/Falseis_success:False
JSON Result
N/A

Enable User

Description

Update user attribute - enable user.

Parameters

ParameterTypeDefault ValueDescription
User NameIntN/AFull user name as exist in the CyberArkVault.

Run On

This action runs on the IP Address entity.

Action Results

Entity Enrichment

N/A

Insights

N/A

Script Result
Script Result NameValue OptionsExample
success_scanTrue/Falsesuccess_scan:False
JSON Result
N/A

Search

Description

Search the Shodan database.

Parameters

ParameterTypeDefault ValueDescription
Search Query0N/ASearch query; identical syntax to the website. e.g. find Apache webservers located in Germany(apache country:'DE', city:'Berlin').
Facets0N/AA comma-separated list of properties to get summary information on. Property names can also be in the format of 'property:count'. (i.e. country:100, city:5). More information can be found athttps://developer.shodan.io/api.
Set Minify1falseWhether to minify the banner and only return the important data.

Run On

This action runs on all entities.

Action Results

Entity Enrichment

N/A

Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_successTrue/Falseis_success:False
JSON Result
{"matches":[{"timestamp":"2014-01-15T05: 49: 56.283713","isp":"Vivacom","data":"@PJL INFO STATUS CODE=35078 DISPLAY=Power Saver ONLINE=TRUE","port":9100,"hostnames":[],"location":{"city":null,"region_code":null,"area_code":null,"longitude":25,"country_code3":"BGR","country_name":"Bulgaria","postal_code":null,"dma_code":null,"country_code":"BG","latitude":43},"ip":3579573318,"domains":[],"org":"Vivacom","os":null,"asn":"AS8866","ip_str":"1.1.1.1"}],"facets":{"org":[{"count":107,"value":"UniversityofMinnesota"}]},"total":12039}

Search for Exploits

Description

Search across a variety of data sources for exploits and use facets to getsummary information.

Parameters

ParameterTypeDefault ValueDescription
Search QueryStringN/ASearch query used to search the database of known exploits.
FacetsStringN/AA comma-separated list of properties to get summary information on. (i.e. port, source, author). More information can be found athttps://developer.shodan.io/api.
PageStringN/AThe page number to page through results 100 at a time.

Run On

This action runs on all entities.

Action Results

Entity Enrichment

N/A

Insights

N/A

Script Result
Script Result NameValue OptionsExample
is_successTrue/Falseis_success:False
JSON Result
{"matches":[{"cve":"CVE-2011-2064","description":"Cisco IOS 12.4MDA before 12.4(24)MDA5 on the Cisco Content Services Gateway - Second Generation (CSG2) allows remote attackers to cause a denial of service (device reload) via crafted ICMP packets, aka Bug ID CSCtl79577.","osvdb":[73657],"bid":[48581],"source":"CVE","_id":"2011-2064","msb":[]}],"facets":{"type":[{"count":1,"value":"remote"}]},"total":4}

Need more help?Get answers from Community members and Google SecOps professionals.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.