Skip to main content

Run weekly WAF security audits with WAFtester and Slack alerts

Workflow preview

Workflow preview
100%
Run weekly WAF security audits with WAFtester and Slack alerts preview
Open on n8n.io

1. Workflow Overview

What it does Automated weekly WAF security assessments with Slack reporting. Detects your WAF vendor, runs a security assessment, grades your protection, and alerts your team when the grade drops b...

Best for

  • SecOps automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.if, n8n-nodes-base.slack, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Run weekly WAF security audits with WAFtester and Slack alerts
Workflow name
Run weekly WAF security audits with WAFtester and Slack alerts

What it does

Automated weekly WAF security assessments with Slack reporting. Detects your WAF vendor, runs a security assessment, grades your protection, and alerts your team when the grade drops below threshold.

About WAFtester

WAFtester is an open-source CLI for testing Web Application Firewalls. It ships 27 MCP tools, 2,800+ attack payloads across 18 categories (SQLi, XSS, SSRF, SSTI, command injection, XXE, and more), detection signatures for 26 WAF vendors and 9 CDNs, and enterprise-grade assessment with F1/MCC scoring and letter grades (A+ through F).

Who it's for

  • Security teams needing continuous WAF monitoring
  • DevOps engineers tracking WAF configuration drift
  • Compliance teams requiring regular security assessments

How it works

The workflow has seven nodes:

  1. Weekly Schedule — Triggers every Monday at 3 AM (configurable)
  2. Detect WAF — Calls WAFtester's detect_waf tool to fingerprint the WAF vendor and CDN
  3. Start Assessment — Launches an async assess task testing SQLi, XSS, traversal, cmdi, and SSRF
  4. Wait — Pauses to let the assessment run
  5. Poll Results — Calls get_task_status to retrieve completed results
  6. Check Results — Routes based on the WAF grade (pass if "A" or better, fail otherwise)
  7. Slack (Pass/Fail) — Posts a summary to your Slack channel with grade, detection rate, and bypass count

How to set up

  1. Start WAFtester MCP server: docker run -p 8080:8080 ghcr.io/waftester/waftester:latest mcp --http :8080
  2. Set environment variables: WAF_TARGET_URL (required), WAFTESTER_MCP_URL, SLACK_CHANNEL
  3. Add Slack OAuth2 credentials and select them in both Slack nodes
  4. Activate the workflow

Alternatively, use the included docker-compose.yml to run both n8n and WAFtester together.

Requirements

Requirement Details
WAFtester MCP server Docker image (ghcr.io/waftester/waftester:latest) or binary install
Slack Workspace with OAuth2 bot credentials
Authorization Only test targets you have explicit written permission to test

How to customize

  • Adjust schedule in the Weekly Schedule node
  • Change grade threshold in the Check Results node
  • Add attack categories in Start Assessment's categories array
  • Swap Slack for email, Teams, or any n8n notification node

Links

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 - Weekly Schedule

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Detect WAF

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

Block 3 - Start Assessment

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

Block 4 - Wait for Assessment

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 5 - Poll Task Status

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

Block 6 - Check Results

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

Block 7 - Slack Alert

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

Block 8 - Slack OK

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

Block 9 - Sticky Note

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

3. Summary Table

Workflow Run weekly WAF security audits with WAFtester and Slack alerts
Complexity intermediate
Nodes 11
Categories SecOps
Author Qandil
Published 16 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13444/13444.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 Run weekly WAF security audits with WAFtester and Slack alerts do?

What it does Automated weekly WAF security assessments with Slack reporting. Detects your WAF vendor, runs a security assessment, grades your protection, and alerts your team when the grade drops b...

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 use case.