Automate Steam Phishing Alerts with n8n and Mailgun

This n8n workflow automates detection and alerting of Steam phishing websites, verifying domain validity and notifying Cloudflare and Valve via Mailgun emails. Save hours in cybersecurity monitoring with automated DNS checks and instant notifications.
webhook
executeCommand
if
+1
Workflow Identifier: 2372
NODES in Use: Webhook, ExecuteCommand, If, Mailgun

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow helps check suspicious domains that might be phishing Steam users. It looks to see if the domain is real and if it uses Cloudflare name servers. Then, it sends emails to Cloudflare and Valve security teams automatically. This saves time and makes alerting faster and less error-prone.


Who Should Use This Workflow

Security analysts who watch for phishing websites targeting Steam users benefit from this workflow.

Anyone needing to automate manual checks of suspicious domains can use it.


Tools and Services Used

  • n8n: Automation platform to build and run the workflow.
  • Mailgun: Sends alert emails to security teams via API.
  • Bind-tools: System tools installed on server providing dig command for DNS checks.
  • Webhook: Receives incoming submissions of suspicious domains.

Workflow Inputs, Processing, and Outputs

Inputs

  • Domain names submitted via the Webhook node under the query parameter “q”.
  • Authentication credentials for webhook access.
  • Mailgun API key and email addresses for notifications.

Processing Steps

  1. Validate domain format using the IF node with regex to allow only proper domain strings.
  2. Check and install bind-tools if needed using Execute Command node to ensure dig is available.
  3. Use dig command to count the domain’s NS records to confirm domain existence.
  4. Conditionally proceed only if NS records are found.
  5. Use dig and grep commands to verify if NS records belong to Cloudflare.
  6. Send emails with the Mailgun node: one to Cloudflare if domain uses Cloudflare NS, one to Valve always.

Outputs

  • Email alerts sent to security teams.
  • Workflow logs and failures (if configured).

Beginner Step-by-Step: How to Use This Workflow in n8n

Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Choose “Import from File” and select the downloaded workflow.

Configure Credentials

  1. Add your Mailgun API credentials in the Mailgun nodes.
  2. Set your webhook basic authentication credentials in the Webhook node.
  3. Update recipient email addresses if needed for Cloudflare and Valve security teams.

Test and Activate

  1. Send a test request to the webhook with a sample suspicious domain in parameter “q”.
  2. Check the nodes’ execution to confirm they run without errors.
  3. Activate the workflow by toggling its status to active.

For full command support, self-host the n8n instance. Consider self-host n8n options if needed.


Edge Cases and Failures

If dig command is missing and bind-tools installation fails, the DNS check will fail.

Emails will not send if Mailgun API key or email addresses are incorrect.

Domains without valid NS records will stop the workflow early.

Incorrect regex in domain validation may let bad inputs through or block good ones.


Customization Ideas

  • Change targeted email addresses in Mailgun nodes for notifications.
  • Adjust dig command grep pattern to detect other DNS providers beyond Cloudflare.
  • Add logging by writing data to files or sheets after sending emails.
  • Secure the webhook more with IP whitelisting or enhanced authentication.
  • Modify email text to add more detail or branding.

Summary of Benefits and Outcomes

✓ Saves analysts time by automating domain legitimacy checks.

✓ Automatically informs security teams fast when phishing is suspected.

✓ Improves accuracy with validation and DNS record checks.

✓ Keeps workflow running by ensuring necessary tools are installed automatically.

→ The user gets quicker phishing site detection and notification.


Frequently Asked Questions

The workflow runs a dig command to list the domain’s NS records, then uses grep to see if any include ‘cloudflare.com.’ indicating Cloudflare hosting.
The workflow stops processing that domain and does not send any email notifications.
Yes, users can replace Mailgun nodes with SMTP or other email nodes but must update API keys and settings accordingly.
The workflow suits moderate volumes typical for phishing teams; large scale use depends on the hosting and resource limits of the n8n instance.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free