๐ Scan URLs for security threats with urlscan.io and GPT-4o mini
โก 1,228 views ยท ๐ SecOps & Security Automation
Description
How it works
โข Webhook โ urlscan.io โ GPT-4o mini โ Gmail
โข Payload example: { "url": "https://example.com" }
โข urlscan.io returns a Scan ID and raw JSON.
โข AI node classifies the scan as malicious / suspicious / benign, assigns a 1-10 risk score, and writes a two-sentence summary.
โข Gmail sends an alert that includes the URL, Scan ID, AI verdict, screenshot link, and full report link.
Set-up steps (~5 min)
โข Create three credentials in n8n
- urlscan.io API key
- OpenAI API key (GPT-4o mini access)
- Gmail OAuth (or SMTP)
โข Replace those fields in the nodes, or reference env vars like{{ $env.OPENAI_API_KEY }}.
โข Switch the Webhook to Production โ copy the live URL.
โข Test with:
curl -X POST <your-webhook-url> \
-H "Content-Type: application/json" \
-d '{ "url": "https://example.com" }'
## ๐ Nodes Used
Webhook, Gmail, urlscan.io, OpenAI
## ๐ฅ Import
Download [`workflow.json`](workflow.json) and import into n8n:
**Workflow menu โ Import from File**
[๐ Importing guide](../../../docs/importing-templates.md) ยท [๐ Credential setup](../../../docs/credential-setup.md)