Automated Weekly Security Audit Reports with Gmail Delivery
π N8N Security Audit Report - Automated Weekly Email
π― What does this workflow do?
This workflow automatically generates and emails a comprehensive security audit report for your N8N instance every week. It identifies potential security risks related to:
Credentials** π : Exposed or insecure credentials Nodes** π§© : Sensitive nodes (Code, HTTP Request, SSH, FTP, etc.) Instance settings** π’ : Global security configuration Community nodes** π¦ : Third-party nodes that may pose risks
The report includes direct links to affected workflows, execution statuses, and actionable recommendations.
β¨ Key Features
π Smart Risk Assessment Calculates overall risk level: π© Low / π§ Moderate / π₯ High Tracks unique credentials (not just total occurrences) Provides detailed breakdown by node type
π Direct Workflow Links Clickable links to each workflow mentioned Shows last execution status (π’ success / π΄ failed) Displays execution timestamps
π Bilingual Support Full support for French and English Switch language with a single variable
π§ Beautiful HTML Email Clean, professional formatting Color-coded risk levels Emoji icons for easy scanning
π Quick Setup (5 minutes)
1οΈβ£ Configure Credentials N8N API**: Generate an API key in your N8N settings Gmail OAuth2**: Set up OAuth2 for Gmail sending
2οΈβ£ Set Your Variables Edit the "Set Config Variables" node: { "email_to": "your.email@domain.com", "project_name": "My-N8N-Project", "server_url": "https://n8n.yourdomain.com", // NO trailing slash! "Language": "EN" // or "FR" }
3οΈβ£ Test & Activate Click "Execute Workflow" to test Check your email inbox Activate for weekly automation
π§ Example Report Output
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...]
π¨ Customization Options
Change Schedule Modify the "Schedule Trigger" node to run: Daily at 8 AM Monthly on the 1st Custom cron expression
Add Recipients Add multiple emails in the Gmail node's toList parameter
Adjust Risk Thresholds Edit the JavaScript in "Format Audit Report" nodes to customize when risk levels change
Use Different Email Service Replace Gmail node with: SMTP Microsoft Outlook SendGrid Any email service N8N supports
π‘ Use Cases
β
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
π§ Technical Details
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
π Requirements
N8N instance with API access Gmail account (or other email service) N8N API key with audit permissions Valid SSL certificate for workflow links (recommended)
π Troubleshooting
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)
π Why This Template?
Unlike basic monitoring tools, this workflow: β Provides context-aware security analysis β Links directly to affected workflows β Shows real execution data (not just theoretical risks) β Calculates unique credential exposure (not just counts) β Supports bilingual reports β Delivers actionable recommendations
π€ Feedback & Support
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
π License
MIT - Feel free to modify and share!
Related Templates
Automate Customer Support & Calendar Bookings with OpenAI GPT and Google Calendar
Website AI Agent with Calendar Integration Categories: AI Agents, Website Integration, Calendar Automation This workfl...
Personalized LinkedIn Connection Requests with Apollo, GPT-4, Apify & PhantomBuster
AI LinkedIn Outreach Automation with Apollo, OpenAI & PhantomBuster Categories:* Sales Automation Lead Generation AI Per...
Auto Meeting Summarizer with Google Drive, OpenAI Whisper & GPT-4 to Sheets
π€ Audio-to-Insights: Auto Meeting Summarizer Transform your meeting recordings into actionable insights automatically....
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments