Skip to main content

Audit Website Security Headers with AI Remediation and Google Sheets Reporting

Workflow preview

Workflow preview
100%
Audit Website Security Headers with AI Remediation and Google Sheets Reporting preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

What It Is An automated workflow for auditing website security headers and generating comprehensive security reports. The workflow consists of three main phases: 1. Perform Security Scan 2. Save Re...

Best for

  • SecOps automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.gmail, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ari Nakos.

Original n8n.io source

1.1 Workflow description

Title
Audit Website Security Headers with AI Remediation and Google Sheets Reporting
Workflow name
Audit Website Security Headers with AI Remediation and Google Sheets Reporting

What It Is

An automated workflow for auditing website security headers and generating comprehensive security reports.

The workflow consists of three main phases:

  1. Perform Security Scan
  2. Save Results in Table
  3. Email Report

Perform Security Scan

This phase analyzes a website's security headers and generates a security grade.

Form Input

A form trigger collects user inputs:

  • Site: The website URL to audit (e.g., example.com)
  • Report Recipient: Email address to receive the security report

URL List & Fetch Headers

  • Prepares the URL for analysis and timestamps the audit
  • Sends an HTTP HEAD request to retrieve security headers
  • Timeout set to 10 seconds for reliable results

Parse Headers & Security Scorer

  • Extracts and normalizes HTTP headers for analysis
  • Evaluates 7 critical security headers:
    • Strict-Transport-Security (HSTS) - HTTPS enforcement
    • Content-Security-Policy (CSP) - XSS protection
    • X-Frame-Options - Clickjacking prevention
    • X-Content-Type-Options - MIME sniffing protection
    • Referrer-Policy - Information leakage control
    • Permissions-Policy - Feature access control
    • Cache-Control - Authentication page caching

Grade Calculator

  • Calculates security score (0-70 points) and assigns letter grade (A-F)
  • Identifies missing headers and configuration issues
  • Flags critical security vulnerabilities

Save Results in Table

This phase exports audit results to a structured Google Sheets database.

Format Report

  • Structures audit data for spreadsheet export
  • Creates checkmark/X indicators for header presence
  • Summarizes issues and security recommendations

Export to Sheets

  • Appends results to Google Sheets for tracking trends
  • Includes timestamp, URL, grade, scores, and detailed findings
  • Supports historical analysis and compliance reporting

Email Report

This phase generates AI-powered remediation instructions and sends detailed security reports.

AI Remediation Agent

  • Uses AI to create copy-paste instructions for non-technical users
  • Generates platform-specific implementation guidance
  • Provides step-by-step remediation for AI code editors (GitHub Copilot, Cursor, etc.)

Email Formatting & Delivery

  • Creates visually rich HTML email reports with:
    • Security grade and score breakdown
    • Missing headers analysis
    • Configuration warnings
    • AI-generated remediation instructions
    • Implementation checklist
  • Sends comprehensive report via Gmail

Setup

To run this workflow, configure the following credentials in n8n:

OpenRouter

  • Generate an API key from your OpenRouter account for AI remediation features

Google Sheets

  • Uses OAuth 2.0 authentication
  • Create a spreadsheet for audit results storage
  • Update the spreadsheet ID in 'Export to Sheets' node

Gmail OAuth2

  • Configure Gmail credentials for automated report delivery
  • Authenticate with your Google account

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Workflow Documentation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Setup Instructions

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - URL List

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Fetch Headers

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Parse Headers

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Security Scorer

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Grade Calculator

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Format Report

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Export to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 10 - Data Aggregator

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Style Constants

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Content Builder

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Email Formatter

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Send Alert

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 15 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - AI Remediation Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 17 - AI Remediation Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 18 - Form Input

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 19 - Setup Instructions1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Setup Instructions2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Audit Website Security Headers with AI Remediation and Google Sheets Reporting
Complexity advanced
Nodes 20
Categories SecOps, Multimodal AI
Author Ari Nakos
Published 18 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10990/10990.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Audit Website Security Headers with AI Remediation and Google Sheets Reporting do?

What It Is An automated workflow for auditing website security headers and generating comprehensive security reports. The workflow consists of three main phases: 1. Perform Security Scan 2. Save Re...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your SecOps, Multimodal AI use case.