Gate deployments on WAF scan results with WAFtester
What it does
A CI/CD quality gate that blocks deployments when WAF protection is insufficient. Your pipeline sends a webhook with the target URL, the workflow runs WAFtester scans, and returns a pass/fail HTTP response the pipeline can gate on.
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).
GitHub: github.com/waftester/waftester Docs: Installation | Examples | Commands
Who it's for
DevOps teams** enforcing security gates in CI/CD Platform engineers** automating deployment approvals Security teams** requiring pre-deploy WAF validation
How it works
The workflow has seven nodes:
Webhook — Receives a POST with {"target": "https://staging.example.com", "categories": ["sqli", "xss"]} Detect WAF — Calls WAFtester's detect_waf tool to fingerprint the WAF vendor Start Scan — Launches an async scan task with the requested attack categories Wait — Pauses to let the scan run Poll Results — Calls get_task_status to retrieve completed results Evaluate — Compares the detection rate against WAF_PASS_THRESHOLD Respond — Returns HTTP 200 (pass, deploy allowed) or HTTP 422 (fail, deploy blocked) with bypass details
CI/CD integration example
In your pipeline
RESPONSE=$(curl -s -w "%{http_code}" -o body.json
-X POST https://your-n8n/webhook/waf-gate
-H "Content-Type: application/json"
-d '{"target": "https://staging.example.com", "categories": ["sqli", "xss"]}')
if [ "$RESPONSE" != "200" ]; then echo "WAF gate failed"; exit 1; fi
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments