shodan-api

shodan-api is a skill for Claude Code from Liberty91LTD/cti-skills. It costs 19 tokens per session (609 once invoked), scanned A, original, MIT.

A reference for the Shodan API, a service that indexes internet-connected devices, their open ports, software details, and reported vulnerabilities.

In plain words
What is it for?
It helps resolve domains, inspect IP addresses, search for exposed services, and review host banners and vulnerability data.
Why use it?
It removes the need to look up each host manually when investigating exposed systems or checking an organisation's internet-facing assets.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit It helps resolve domains, inspect IP addresses, search for exposed services, and review host banners and vulnerability data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liberty91ltd/cti-skills/shodan-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Liberty91LTD/cti-skills --skill shodan-api
Clone the repo
git clone --depth 1 https://github.com/Liberty91LTD/cti-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shodan-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/shodan-api/github.svg)](https://agentmods.dev/skills/liberty91ltd/cti-skills/shodan-api)
Your own site
<a href="https://agentmods.dev/skills/liberty91ltd/cti-skills/shodan-api"><img src="https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/shodan-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shodan-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/liberty91ltd/cti-skills/shodan-api"><img src="https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/shodan-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00609
Opus 5.5 $0.00008 $0.00244
Sonnet 5.5 $0.00004 $0.00122
Haiku 4.5 $0.00002 $0.00061

Measured 2mo ago against content hash f10083d66016, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shodan-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://api.shodan.io/shodan/host/{ip}?key=$SHODAN_API_KEY"
skills/shodan-api/SKILL.md · 82 lines

What it actually says

Shodan API

Base URL

https://api.shodan.io

Authentication

Query parameter: ?key=$SHODAN_API_KEY

Rate Limits

  • Free: 1 request/second, 100 results/search
  • Paid: Higher limits and more features

Key Endpoints

Host Information

curl -s "https://api.shodan.io/shodan/host/{ip}?key=$SHODAN_API_KEY"

Useful fields:

  • ip_str — IP address
  • ports — open ports
  • data[] — service banners per port (product, version, transport)
  • os — detected OS
  • hostnames — reverse DNS
  • vulns — CVE list (paid feature)
  • org — organisation
  • isp — ISP
  • country_code — country
  • last_update — last scan date

DNS Resolution

curl -s "https://api.shodan.io/dns/resolve?hostnames={domain}&key=$SHODAN_API_KEY"

Reverse DNS

curl -s "https://api.shodan.io/dns/reverse?ips={ip}&key=$SHODAN_API_KEY"

Search

curl -s "https://api.shodan.io/shodan/host/search?query={query}&key=$SHODAN_API_KEY"

Search filters: port:, org:, country:, product:, version:, ssl.cert.subject.cn:, http.title:, vuln:

API Info (check credits)

curl -s "https://api.shodan.io/api-info?key=$SHODAN_API_KEY"

Common Queries

  • ssl.cert.subject.cn:example.com — find hosts with specific SSL certificate
  • org:"Target Org" — find hosts belonging to an org
  • product:"Apache" port:443 country:RU — specific service in a country
  • vuln:CVE-2024-12345 — hosts vulnerable to specific CVE (paid)

Response Summary Format

ip: <IP>
hostnames: [<list>]
org: <organisation>
isp: <ISP>
country: <country>
os: <operating system>
open_ports: [<port list>]
services:
  - port: 80
    product: nginx
    version: 1.18.0
vulnerabilities: [<CVE list>]  # paid only
last_update: <date>
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 82 lines · 19 tokens per session scan A f10083d66016

Subscribe to this mod's changes

shodan-api is a skill published in the GitHub repository Liberty91LTD/cti-skills (36 stars, last pushed 4d ago), licensed MIT. It adds 19 tokens to every session and 609 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

blind-sqli

Blind SQL injection under hostile WAF — manual bypass playbook for when sqlmap fails because common tokens (SUBSTRING, IF, AND, WHERE, single quotes) are filtered. Covers token-fingerprinting probe loops, arithmetic-multiplication boolean evaluation, hex-encoded literals, and exponential-probe binary search. Loaded on…

PurpleAILAB/Decepticon · 88 tokens

verb-tampering

HTTP verb/method tampering — auth bypass via HEAD/OPTIONS/arbitrary methods, X-HTTP-Method-Override, TRACE/PUT/DELETE exposure, framework routing flaws.

PurpleAILAB/Decepticon · 41 tokens

hpp

HTTP Parameter Pollution — parser discrepancies between proxy/server/app, WAF bypass, auth/ACL bypass, injection delivery.

PurpleAILAB/Decepticon · 25 tokens

oauth

OAuth 2.0 / OIDC attacks — redirecturi bypass, state CSRF, code leak via Referer, responsetype confusion, PKCE downgrade, scope creep, ATO chains.

PurpleAILAB/Decepticon · 41 tokens

php-type-juggling

PHP type juggling and magic hash attacks — exploit loose comparison (==) with 0e-prefixed hash collisions and NULL returns to bypass authentication.

PurpleAILAB/Decepticon · 34 tokens

race-condition

Race condition / TOCTOU exploitation — concurrent and parallel-request attacks against web applications that check then act, write session state before validating it, or perform slow operations that widen the race window. Covers single-endpoint races (double-spend, coupon abuse, balance overflow) and multi-endpoint…

PurpleAILAB/Decepticon · 80 tokens