Enrich IP addresses with country attribution using IPinfo and Slack alerts
š§© Template Description
IP Enrichment & Country Attribution is a lightweight cybersecurity automation that enriches IP addresses with geographic and network intelligence. It validates incoming IPs, filters out private or invalid addresses, and enriches public IPs using an open-source IP enrichment service.
š How It Works Receives an IP address via webhook (API or Slack). Validates the IP format and rejects invalid input. Checks for private or internal IP ranges. Ignores private IPs with a clear response. Enriches public IPs using an open-source IP intelligence service. Normalizes country, ISP, and ASN data and applies a severity label. Slack notifications are sent for enriched public IPs. Returns a structured JSON response.
āļø Setup Steps
Import & Activate Workflow
Import the JSON template into n8n
Actvate the workflow
Set Up Webhook
Copy the webhook URL
Send a POST request with the IP in the body, e.g.:
{ "text" : "8.8.8.8" }
Using curl:
curl -X POST https://YOUR_N8N_WEBHOOK_URL \ -H "Content-Type: application/json" \ -d '{"text":"8.8.8.8"}'
Configure Slack (Slack Alert)
Create or select Slack credentials in n8n
Make sure the bot is in your target channel
Update the Slack node with correct channel.
Slack Slash Command Setup (Optional) Enable Slash Commands and create new command (for example /ip-enrich). Set the Request URL to your n8n webhook endpoint. Choose POST as the request method. Install the app to your workspace. Usage example: /ip-enrich 8.8.8.8
šļø Customization Options Enrichment source: Replace or extend the IP intelligence API with additional providers (for example reputation or abuse scoring). Slack formatting: Customize the Slack message text, emojis, or use threads for better alert grouping. Input sources: Reuse the webhook for other integrations such as SIEM alerts or security tools.
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments