ES | EN
IT Ops

Weekly Shodan Query - Report Accidents

The HiveHtml
Nodes 3
Complexity Intermediate
Category IT Ops
n8n popularity 5,359 views in n8n library

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 through an HTTP request. Each IP address is then processed in a sequential loop. For every IP, the workflow sends a GET request to Shodan, a renowned search engine for internet-connected devices, to gather detailed information about the IP. It then extracts the data field from Shodan's response, converting it into an array. This array contains information on all ports Shodan has data for regarding the IP. A filter node compares the ports returned from Shodan with the expected list obtained initially. If a port doesn't match the expected list, it is retained for further processing; otherwise, it's filtered out. For each such unexpected port, the workflow assembles data including the IP, hostnames from Shodan, the unexpected port nu

Apps and nodes included

Step-by-Step Implementation Guide

¿Qué hace este workflow?

Este workflow monitoriza la seguridad de la red. Obtiene información de Shodan, compara los puertos abiertos y reporta las discrepancias a TheHive.

Nodos clave

  • HTTP Request: Realiza peticiones a la API de Shodan para obtener información sobre direcciones IP y puertos.
  • TheHive: Crea alertas en TheHive para reportar las discrepancias encontradas.
  • HTML: Genera contenido HTML (puede ser para un reporte o una notificación).

Pasos de configuración

  • Paso 1: Configura el nodo HTTP Request para obtener datos de Shodan. Necesitas una clave API de Shodan y definir la IP o el rango de IPs a analizar.
  • Paso 2: Procesa los datos de Shodan para extraer la información relevante sobre los puertos.
  • Paso 3: Implementa lógica para comparar los puertos esperados con los encontrados. (Usa un nodo Code o un nodo IF para el filtrado).
  • Paso 4: Configura el nodo TheHive para crear alertas con la información de las discrepancias. Debes configurar la conexión a TheHive y mapear los campos.
  • Paso 5: (Opcional) Usa un nodo HTML para generar un reporte visual con los resultados.
⚡ Open and edit in Scriflow ← Browse all n8n templates

Scriflow builds and adapts n8n workflows with AI. Open this template in the editor to get the import-ready JSON.