Templates / Detect security drift in workflows and email new findings via SMTP

Detect security drift in workflows and email new findings via SMTP

Ready for 3.0

by Christoph Worreschke ✓ · 1 views · created 2026-10-09 · SecOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 9 nodes and runs on a schedule (cron 0 30 7 * * 1) (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: On a schedule (cron 0 30 7 * * 1) (plus 1 other trigger).

  1. Set Configuration Values (Edit Fields (Set)): sets 4 fields: notifyTo, notifyFrom, testNamePattern…
  2. Fetch All Workflows (n8n): get many (workflow)
  3. Execute Baseline Security Checks (Code): runs custom JavaScript code
  4. Identify New Findings (Code): runs custom JavaScript code
  5. Check for New Findings (If): checks a condition and branches into true / false
  6. Dispatch Alert Email (Send Email): sends an email over SMTP
  7. Store Baseline Data (Code): runs custom JavaScript code

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Quick overview Weekly read-only security audit of all workflows on your n8n instance. It checks for hardcoded secrets, unauthenticated webhooks, broken error handling and setting drift, and emails you only the findings that are new since the last run. How it…

Excerpt from Christoph Worreschke's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.