Library / Security & Compliance
Security & Compliance
Monitor Have I Been Pwned breaches and alert via Gmail and Google Sheets
Runs daily, checks the latest breach from the public Have I Been Pwned API, scores it against your risk criteria, logs results to Google Sheets, and emails you when the score passes your threshold.
What it does
## 🔐 Have I Been Pwned breach monitor with risk scoring Checks Have I Been Pwned once a day, scores the newest breach against your own risk criteria, logs every result to Google Sheets, and alerts you only when the score clears your threshold. ### How it works 1. Runs daily at 08:00, or on demand with the manual trigger. 2. Creates the 16 column header row the first time it runs. 3. Pulls the latest breach from the public HIBP API. No API key needed. 4. Skips breaches already in your sheet unless HIBP has updated them. 5. Scores blast radius, data sensitivity, HIBP flags and your watchlist into LOW, MEDIUM, HIGH or CRITICAL. 6. Appends the scored breach to Google Sheets, whether or not it alerts. 7. Sends an HTML email and a Slack card when the score clears your threshold. ### Setup - [ ] Create an empty Google Sheet and copy its ID from the URL - [ ] Connect Google Sheets, Gmail and Slack credentials (Slack needs chat:write) - [ ] In Set Workflow Variables, fill in sheetId, sheetTabName, alertRecipient and slackChannel - [ ] Add your own domains and keywords to the two watchlist fields - [ ] Run Run Now (Manual Test) once, then activate the workflow ### Customization - minimumSeverity sets the alert floor: LOW, MEDIUM, HIGH or CRITICAL - Edit the weights in Score Breach Severity to match your risk appetite - Enable the optional SMTP or webhook nodes to send alerts somewhere else
The steps
- Daily Breach Check Schedule
- Run Now (Manual Test)
- Set Workflow Variables
- Check for Header Row
- Header Row Missing?
- Create Header Row
- Fetch Latest Breach from Have I Been Pwned API
- Read Breach History from Google Sheet
- Check if Breach is New or Updated
- Score Breach Severity
- Save Scored Breach to Google Sheet
- Above Alert Threshold?
- Format Breach Alert Email
- Send Breach Alert via Gmail
19 steps in total.
Similar automations
Security & ComplianceGet Alerts for New Have I Been Pwned Breaches18 stepsMonitoring, Ops & IncidentsMonitor vendor outages and breaches using Bright Data, OpenAI and Slack24 stepsAlerts & NotificationsEmail Activity Reminders Based on Strava Data6 stepsMonitoring, Ops & IncidentsMonitor scheduled n8n workflows via n8n API and email missed or failing runs9 steps