Daily RedOps Security Simulation Report Generator - n8n Workflow

Automate daily RedOps security report generation using this powerful n8n workflow. It reads trap log data from Google Sheets, processes it with custom code, and sends a comprehensive HTML summary via a Gmail n8n node.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Security analysts and Red Team operators needing automated daily reporting.

  • DevOps teams managing security simulation logs and metrics.

  • Users looking for advanced n8n templates that combine data retrieval, custom scripting, and email delivery.

  • Individuals who need to generate complex, dynamic reports based on data stored in Google Sheets.

Overview

Generating consistent, timely reports on security simulations (RedOps) can be a major time sink. This specific n8n workflow eliminates that manual overhead. By leveraging the flexibility of the n8n platform, it connects directly to your source data in Google Sheets, processes complex raw data into actionable metrics using custom code, and delivers a professional, aesthetically pleasing HTML summary directly to stakeholders via Gmail. This is a highly effective example of how powerful n8n templates can handle complex, specialized reporting requirements, ensuring accuracy and freeing up valuable analyst time. The core functionality revolves around using the Google Sheets n8n node followed by advanced data manipulation in the Code n8n node.

How it Works

This automation follows a precise sequence to transform raw log data into a finalized email report:


  1. Trigger Initialization: The n8n workflow starts with a Manual Trigger (labeled 'Trigger AutoReport'). In a live production environment, this is typically replaced by a Schedule n8n trigger to run daily.

  2. Data Retrieval: The 'Read Trap Log Sheet' Google Sheets n8n node executes, connecting to a specified spreadsheet and reading the raw security trap log data. This is the source material for the report.

  3. Data Formatting (Code 1): The data then flows into the 'Format Report Data' Code n8n node. Here, custom JavaScript logic is executed to clean, aggregate, and structure the raw spreadsheet output into usable JSON objects, ready for summary generation.

  4. HTML Generation (Code 2): The subsequent Code n8n node, 'Build HTML Report Summary', takes the formatted data and generates the complete, styled HTML body of the report. This ensures the final email is visually rich and easy to digest.

  5. Email Delivery: Finally, the 'Send Summary Email' Gmail n8n node takes the generated HTML content and sends it to the designated recipients, completing the daily automation cycle. This robust n8n workflow ensures timely delivery of critical security insights.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import the JSON: Copy the provided n8n workflow JSON data and paste it directly into your n8n instance via the 'New' menu > 'Import from JSON'.

  2. Google Sheets Credentials: Locate the 'Read Trap Log Sheet' n8n node. You must set up or select a valid Google Sheets credential that has read access to your specific RedOps log spreadsheet.

  3. Gmail Credentials: Locate the 'Send Summary Email' n8n node. Configure a Gmail account credential that will be used to send the report emails.

  4. Customize Code Nodes: The two Code n8n nodes ('Format Report Data' and 'Build HTML Report Summary') are crucial for logic. Review and modify the JavaScript code to match the exact column names and reporting requirements of your Google Sheets data and desired email format.

  5. Set Trigger: If you intend for this to run daily, replace the Manual Trigger n8n trigger with a 'Schedule' n8n trigger configured to run at the desired time.

  6. Activate: Save and activate the n8n workflow to begin using this automation.

Node Details

Trigger AutoReport (Manual Trigger n8n trigger): Serves as the initiation point for the n8n workflow. While set to manual, it allows for easy testing before being converted into a Schedule n8n trigger for daily execution.
Read Trap Log Sheet (Google Sheets n8n node): Essential for retrieving the raw security simulation data. It is configured to read the relevant sheet containing the trap logs.
Format Report Data (Code n8n node): A critical step where custom JavaScript is used to preprocess the data received from Google Sheets. This n8n node cleans the inputs, calculates metrics, and structures the data into a report-ready format.
Build HTML Report Summary (Code n8n node): This second Code n8n node specializes in presentation. It takes the structured data and generates the final, complex HTML markup for the email body, ensuring the report is professional and readable.


  • Send Summary Email (Gmail n8n node): The final action n8n node. It sends the dynamically generated HTML report content to specified recipients, completing the automated delivery process.

Related n8n Workflows

Paid

Nodes: 5 Nodes
Updated: December 26 2025
View all
Created by

Founder of CYBERPULSE AI — helping security teams and SMEs eliminate repetitive tasks through modular n8n automations. I build workflows for vulnerability triage, compliance reporting, threat intel, and Red/Blue/GRC ops. Book a session if you'd like custom automation for your use case. https://linkedin.com/in/adnan-tariq-4b2a1a47

Featured*