Monitor data breaches in real-time with Have I Been Pwned
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs on a schedule (every 15 minutes) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls haveibeenpwned.com over HTTP.
How it runs
Trigger: On a schedule (every 15 minutes) (plus 1 other trigger).
- Request breaches (HTTP Request): calls haveibeenpwned.com
- Set empty json (Edit Fields (Set)): sets 1 field: data
- Read last breach (Read/Write Files from Disk): reads a file from disk
- Add information about the last breach we alerted (Merge): merges the data from its input branches
- Convert json to file (Convert to File): converts data to a file (to json)
- Get JSON from file (Extract from File): extracts data from a file (from json)
- If: checks a condition and branches into true / false
- Write cache.json (Read/Write Files from Disk): writes a file to disk
- Split Out: splits a list into separate items
- Set breach name (Edit Fields (Set)): sets 1 field: lastItem
…plus 4 more steps. See the full node list below.
HTTP calls to: haveibeenpwned.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Manual Trigger
n8n-nodes-base.manualTrigger - Convert to File
n8n-nodes-base.convertToFile - Split Out
n8n-nodes-base.splitOut - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Extract from File
n8n-nodes-base.extractFromFile - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp - Merge
n8n-nodes-base.merge
From the author
Who is this for? - Security professionals - Developers - Individuals interested in data breach awareness Use Case - Automated monitoring for new breaches - Proactive identity protection - Demonstration of simple cache mechanism What this workflow does -…