Find risky open ports before they become problems. Security and IT teams can run a weekly check on known servers and get a clear alert when a new or unwanted port is exposed. The result is faster response and less manual hunting.
A scheduled run every Monday pulls a list of watched IPs and their approved ports. Each IP is processed one by one to avoid rate limits. The system queries Shodan for open ports and services, then compares findings to the approved list. Any difference is formatted into a clean Markdown table and sent as an alert to TheHive with a clear title, tags, and timestamp so teams can triage right away.
You will need a Shodan API key and access to a TheHive instance. Point the IP list request to your IPS or database and keep the JSON format as ip and ports. Expect to cut weekly port reviews from hours to minutes while improving accuracy. Helpful for exposed asset checks, change monitoring, and compliance evidence.