Back to Home
gen0sec icon

mcp-server

Verified Safe

by gen0sec

Overview

Provides tools and context for LLMs to generate and validate Wirefilter WAF rules based on natural language descriptions or CVE identifiers, integrating with external vulnerability databases.

Installation

Run Command
docker run -p 8000:8000 waf-rule-mcp

Environment Variables

  • WAF_VALIDATION_API_URL
  • NUCLEI_TEMPLATES_VERSION
  • NUCLEI_TEMPLATES_AUTO_UPDATE
  • NUCLEI_OPENSOURCE_ENABLED
  • NUCLEI_OPENSOURCE_PRIORITY
  • PROJECTDISCOVERY_ENABLED
  • PROJECTDISCOVERY_API_KEY
  • PROJECTDISCOVERY_PRIORITY

Security Notes

The server uses `subprocess.run` to interact with `git` for repository cloning/pulling, which, while commands are hardcoded, relies on `repo_url` from configuration. It also makes external HTTP requests to a configurable WAF validation API and ProjectDiscovery API. Malicious configuration of `WAF_VALIDATION_API_URL` or `PROJECTDISCOVERY_API_KEY` could lead to data exfiltration or other network-based attacks. No 'eval' or obvious obfuscation was found, and sensitive API keys are expected to be configured by the user via environment variables or a YAML file.

Similar Servers

Stats

Interest Score27
Security Score8
Cost ClassMedium
Avg Tokens2500
Stars1
Forks0
Last Update2026-01-08

Tags

WAFRule GenerationCVESecurityLLM ToolsWirefilter