đź”’ Monitor email data breaches with HIBP API and send Slack alerts

⚡ 272 views · 🔒 SecOps & Security Automation

Description


How It Works: The 5-Node Security Flow

This workflow efficiently performs a scheduled data breach scan.

1. Scheduled Check (Cron Node)

This is the workflow’s trigger. It schedules the workflow to run at a specific, regular interval.

2. List Emails to Check (Code Node)

This node acts as your static database, defining which email addresses to monitor for breaches.

3. Query HIBP API (HTTP Request Node)

This node connects to the HaveIBeenPwned (HIBP) API to check for breaches.

4. Is Breached? (If Node)

This is the core detection logic. It checks the API response to see if any breach data was returned.

5. Send High-Priority Alert (Slack Node) / End Workflow (No-Op Node)

These nodes represent the final action of the workflow.


How to Set Up

Implementing this essential cybersecurity monitor in your n8n instance is quick and straightforward.

1. Prepare Your Credentials & API

Before building the workflow, ensure all necessary accounts are set up and their credentials are ready.

2. Import the Workflow JSON

Get the workflow structure into your n8n instance.

3. Configure the Nodes

Customize the imported workflow to fit your specific monitoring needs.

4. Test and Activate

Verify that your workflow is working correctly before setting it live.

đź”— Nodes Used

HTTP Request, Slack, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup