Templates / Weekly Shodan query - report accidents

Weekly Shodan query - report accidents

Needs changes

by n8n Team ✓ · 19,186 views · created 2023-11-13 · SecOps

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Item Lists (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs on a schedule (every week at 05:00). Along the way it connects TheHive. It also calls internal.users.n8n.cloud over HTTP.

How it runs

Trigger: On a schedule (every week at 05:00).

  1. Get watched IPs & Ports (HTTP Request): calls internal.users.n8n.cloud
  2. For each IP (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Scan each IP (HTTP Request): calls an HTTP API
  4. Split out services (Item Lists): reshapes item lists (legacy Item Lists node)
  5. Unexpected port? (Filter): keeps only the items that match a condition
  6. Set data to post for each port (Edit Fields (Set)): sets or maps fields
  7. Convert to table (HTML): parses or builds HTML
  8. Convert to Markdown (Markdown): converts between Markdown and HTML
  9. Create TheHive alert (TheHive): uses TheHive

Services it uses

TheHive

HTTP calls to: internal.users.n8n.cloud

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Item Lists (legacy) in Split out services: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).
Removed in 3.0Replace with
Item Lists (legacy)
Split out services
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)

Nodes used (9)

From the author

This n8n workflow, which runs every Monday at 5:00 AM, initiates a comprehensive process to monitor and analyze network security by scrutinizing IP addresses and their associated ports. It begins by fetching a list of watched IP addresses and expected ports…

Excerpt from n8n Team's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.