This workflow automatically generates and emails a comprehensive security audit report for your N8N instance every week. It identifies potential security risks related to:
The report includes direct links to affected workflows, execution statuses, and actionable recommendations.
Edit the "Set Config Variables" node:
{
"email_to": "[[emailย protected]](/cdn-cgi/l/email-protection)",
"project_name": "My-N8N-Project",
"server_url": "https://n8n.yourdomain.com", // NO trailing slash!
"Language": "EN" // or "FR"
}
Subject : ๐ Audit Report My-Project โ Risk ๐ง Moderate
Content :
๐ Summary
โข Credentials involved: 8 (5 unique)
โข Nodes involved: 12
- ๐ป code: 4
- ๐ httpRequest: 3
- ๐ ssh: 2
โข Community nodes: 1
โข Overall risk level: ๐ง Moderate
๐ Credentials Risk Report
๐น Credentials with full access
- ๐ My AWS Credentials
- ๐ Database Admin
๐ Workflow: Data Processing Pipeline ๐ข (25-10-2024 06:15 โ 06:16)
- ๐ป Process Data
- ๐ API Call
๐งฉ Nodes Risk Report
[...detailed node analysis...]
Modify the "Schedule Trigger" node to run:
Add multiple emails in the Gmail node's toList parameter
Edit the JavaScript in "Format Audit Report" nodes to customize when risk levels change
Replace Gmail node with:
โ
Compliance Monitoring : Track security posture for audits
โ
Team Awareness : Keep your team informed of security status
โ
Change Detection : Notice when new risky nodes are added
โ
Best Practices : Get recommendations to improve security
โ
Multi-Environment : Run separate instances for dev/staging/prod
Nodes Used : 8
Credentials Required : 2 (N8N API + Gmail OAuth2)
External Dependencies : None
N8N Version : Compatible with latest N8N versions
Execution Time : ~10-20 seconds
Empty report?
โ Check your N8N API key has audit permissions
Workflow links don't work?
โ Verify server_url is correct and has no trailing slash
No execution status shown?
โ Workflows must have been executed at least once
Wrong language displayed?
โ Set Language to exactly "FR" or "EN" (uppercase)
Unlike basic monitoring tools, this workflow:
Found this helpful? Please rate the template!
Have suggestions? Drop a comment below.
Pro tip : Combine this with N8N's native alerting for real-time incident response!
Tags : #security #audit #monitoring #compliance #automation #email #reporting #credentials #governance
MIT - Feel free to modify and share!


