๐Ÿ”’ Automate CVE detection with AI-powered Nuclei template generation & Google Drive

โšก 431 views ยท ๐Ÿ”’ SecOps & Security Automation

Description

Short description

Automates collection, technical extraction, and automatic generation of Nuclei templates from public CVE PoCs.
Converts verified PoCs into reproducible detection templates ready for testing and distribution.

Purpose

Provide a reliable pipeline that turns public proof-of-concept data into usable detection artifacts.
Reduce manual work involved in finding PoCs, extracting exploit details, validating sources, and building Nuclei templates.

How it works (technical summary)

  1. Runs a scheduled SSH job that executes vulnx with filters for recent, high-severity PoCs.
  2. Parses the raw vulnx output and splits it into individual CVE entries.
  3. Extracts structured fields: CVE ID, severity, title, summary, risk, remediation, affected products, POCs, and references.
  4. Extracts URLs from PoC sections using regex.
  5. Validates each URL with HTTP requests. Invalid or unreachable links are logged and skipped.
  6. Uses an AI agent (OpenAI via LangChain) to extract technical artifacts: exploit steps, payloads, endpoints, raw HTTP requests/responses, parameters, and reproduction notes. The prompt forces technical-only output.
  7. Sends the extracted technical content to ProjectDiscovery Cloud API to generate Nuclei templates.
  8. Validates AI and API responses. Accepted templates are saved to a configured Google Drive folder.
  9. Produces JSON records and logs for each processed CVE and URL.

Output

Intended audience

Setup & requirements

Security and usage notes

๐Ÿ”— Nodes Used

HTTP Request, Google Drive, SSH, Schedule Trigger, AI Agent, OpenAI Chat Model

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup