Skip to main content

Scan single URLs for security vulnerabilities with GPT-4 (JS, PHP, Python)

Workflow preview

Workflow preview
100%
Scan single URLs for security vulnerabilities with GPT-4 (JS, PHP, Python) preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates static security analysis for JavaScript, PHP, and Python codebases. It’s designed for bug bounty hunters and security researchers who need fast, structured, and AI assisted ...

Best for

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

Tools used

n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequesttool, n8n-nodes-base.code, n8n-nodes-base.splitout, n8n-nodes-base.filter, n8n-nodes-base.html

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Scan single URLs for security vulnerabilities with GPT-4 (JS, PHP, Python)
Workflow name
Scan single URLs for security vulnerabilities with GPT-4 (JS, PHP, Python)

Overview

This workflow automates static security analysis for JavaScript, PHP, and Python codebases.
It’s designed for bug bounty hunters and security researchers who need fast, structured, and AI-assisted vulnerability detection across multiple sources.


Features

  • 🤖 AI-Powered Analysis:

    • Specialized agents for each language:
      • AI JavaScript Expert
      • AI PHP Expert
      • AI Python Expert
    • Each agent detects only exploitable vulnerabilities (AST + regex heuristics).
    • Returns strict JSON with:
      {
        "results": [
          {
            "url": "file or URL",
            "code": "lines + snippet",
            "severity": "medium|high|critical",
            "vuln": "vulnerability type"
          }
        ]
      }
      
  • 🧩 Post-Processing:

    • Cleans, formats, and validates JSON results.
    • Generates HTML tables with clear styling for quick visualization.

Output

  • ✅ JSON vulnerability reports per file.
  • 📊 HTML table summaries grouped by language and severity.

Usage

  1. Import the workflow into n8n.
  2. Configure credentials:
    • OpenAI API key
    • GitHub API Key
    • Google Drive API Key
  3. Run via the provided webhook form.
  4. Select analysis mode and input target.
  5. View structured vulnerability reports directly in n8n or Google Drive.

Notes

  • Performs static analysis only (no code execution).
  • Detects exploitable findings only; ignores low-impact issues.

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 - Form

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

Block 2 - JavaScript Expert Agent (Single URL)

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

Block 3 - OpenAI JavaScript (Single URL)

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - HTTP Request JavaScript (Single URL)

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

Block 5 - Prettify JavaScript Results (Single URL)

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

Block 6 - Split JavaScript Expert Results (Single URL)

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

Block 7 - Remove JavaScript Empty Results (Single URL)

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

Block 8 - Create HTML Table JavaScript (Single URL)

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

Block 9 - Create HTML Template JavaScript (Single URL)

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

Block 10 - PHP Expert Agent (Single URL)

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

Block 11 - OpenAI PHP (Single URL)

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 12 - HTTP Request PHP (Single URL)

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

Block 13 - Prettify PHP Results (Single URL)

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

Block 14 - Split PHP Expert Results (Single URL)

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

Block 15 - Remove PHP Empty Results (Single URL)

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

Block 16 - Create HTML Table PHP (Single URL)

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

Block 17 - Create HTML Template PHP (Single URL)

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

Block 18 - Python Expert Agent (Single URL)

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

Block 19 - OpenAI Python (Single URL)

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 20 - HTTP Request Python (Single URL)

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

Block 21 - Prettify Python Results (Single URL)

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

Block 22 - Split Python Expert Results (Single URL)

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

Block 23 - Remove Python Empty Results (Single URL)

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

Block 24 - Create HTML Table Python (Single URL)

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

Showing the first 24 of 44 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Scan single URLs for security vulnerabilities with GPT-4 (JS, PHP, Python)
Complexity advanced
Nodes 44
Categories SecOps, AI Summarization
Author Javier Rieiro
Published 13 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10801/10801.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 Scan single URLs for security vulnerabilities with GPT-4 (JS, PHP, Python) do?

This workflow automates static security analysis for JavaScript, PHP, and Python codebases. It’s designed for bug bounty hunters and security researchers who need fast, structured, and AI assisted ...

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, AI Summarization use case.