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
Automate Steam phishing alerts with n8n and Mailgun

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

Learn how to Build this Workflow with AI:

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.


Automate Steam phishing alerts with n8n and Mailgun

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

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.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.