joelhagvall

Shodan Cert Report — Development skill for Claude Code

Development community

Agent skill for Claude Code and Codex: find exposed PLCs, HMIs and hacked databases on Shodan in your own browser, weed out honeypots, and draft reports to your national CERT.

How to install Shodan Cert Report

This entry records only its repository, not the path inside it, so there is no exact command to give. Open joelhagvall/shodan-cert-report and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Shodan Cert Report does

Agent skill for Claude Code and Codex: find exposed PLCs, HMIs and hacked databases on Shodan in your own browser, weed out honeypots, and draft reports to your national CERT. Passive only, no API key.

Alternatives in Development

  • Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
  • Om Tidy — Self-maintenance pass — acts on every hygiene flag: archives completed work, groups loose clusters, splits ove 4.6k ★
  • Domxss — Confirm DOM XSS in a real headless browser — injects canary payloads into params + URL fragment and only repor 4.5k ★

README

Shodan → CERT: report exposed control systems with your AI agent

An agent skill for reporting exposed control systems to your national CERT. Your agent searches Shodan in your own logged-in browser tab, weeds out honeypots, judges severity, and writes a draft email with Shodan's own screenshots inline. You read the draft and send it.

It is passive: it reads Shodan and nothing else, and never connects to a host it finds. It needs no Shodan API key and spends no query credits.

Built for Sweden and CERT-SE, but the country code and the recipient are the only Swedish parts.

Check yourself first

python3 scripts/shodan_cert.py self

It looks up your current public IP in Shodan's free InternetDB (no account needed). Exit code 1 means Shodan lists open ports or known vulnerabilities on your connection, so it can drive an alert from cron or Home Assistant. `--allow 443` ignores ports you expect to be open, and `--json` prints one line for scripts. If you want mail when something changes, add your IP in [Shodan Monitor](https://monitor.shodan.io).

Why

Heating panels with no password, PLCs that take commands from anyone, databases that have already been emptied: Shodan indexes all of it, and plenty of it sits on ordinary home and business connections. National CERTs get bulk feeds of open ports. What they get less of is someone who has looked at a host, ruled out a honeypot, and can say what it seems to control. That review is what this skill does, and a subscription that never reaches its limit can do it on a quiet evening.

How it works

  1. The agent runs a list of searches in your logged-in shodan.io tab (scripts/shodan-batch.js).
  2. For every IP worth reporting it reads Shodan's host page (scripts/shodan-hostcheck.js): honeypot tag, ports, operator, hostnames, last seen, and the VNC screenshot.
  3. shodan_cert.py import stores that and flags doubts: honeypot tags, many industrial protocols on one IP, cloud ranges.
  4. shodan_cert.py draft