Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. When clicking "Execute Workflow"
  2. sends slack message
  3. Split In Batches
  4. Mark as read
  5. VirusTotal: Scan URL
  6. VirusTotal: Get report
  7. Schedule Trigger
  8. Find indicators of compromise
  9. URLScan: Get report
  10. URLScan: Scan URL
  11. Has URL?
  12. No error?
  13. Not empty?
  14. Wait 1 Minute

16 steps in total.

Similar automations