Library / Security & Compliance
Security & Compliance
Analyse Phishing Emails with URLScan and VirusTotal
On a schedule or manual run, it reads Outlook emails, scans links with VirusTotal and urlscan.io and reports findings to Slack.
What it does
## Indicator of Compromise Detection Loop This workflow section leverages n8n's Split In Batches node, a powerful feature for iterative processing. It is set to dissect the batch of emails one by one, allowing for individual examination of each message's content for potential threats. With the Find indicators of compromise node, the workflow employs Python code to parse the email content and extract URLs, which are common indicators of compromise (IoCs) in phishing attempts. By utilizing the ioc-finder library, it systematically scans for and isolates these IoCs from the email body. The Has URL? node then checks if the email contains any urls. If no URLs are found, then the loop moves on to the next email, as there is nothing to scan. If it does find one, it allows the email to flow to the next sections. The splitting of batches is key to the workflow's efficiency, enabling the loop to handle vast quantities of emails methodically. This step is crucial in pinpointing and extracting suspicious elements from each email, highlighting the workflow's meticulous approach to security analysis.
The steps
- When clicking "Execute Workflow"
- sends slack message
- Split In Batches
- Mark as read
- VirusTotal: Scan URL
- VirusTotal: Get report
- Schedule Trigger
- Find indicators of compromise
- URLScan: Get report
- URLScan: Scan URL
- Has URL?
- No error?
- Not empty?
- Wait 1 Minute
16 steps in total.
Similar automations
Security & ComplianceScan Phishing Emails with URLScan and VirusTotal36 stepsSecurity & ComplianceCheck Malicious URLs from Telegram with VirusTotal and OpenAI11 stepsSecurity & ComplianceCheck CrowdStrike Detections in VirusTotal, Alert Slack13 stepsSecurity & ComplianceCheck Splunk Alert IP Reputation with VirusTotal and AlienVault12 steps