Skip to main content

Subdomain enumeration with Subfinder, HTTPX & GPT-4-Mini for security reconnaissance

Workflow preview

Workflow preview
100%
Subdomain enumeration with Subfinder, HTTPX & GPT-4-Mini for security reconnaissance preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Generates a wordlist of 1,000–15,000 subdomains created by an AI agent by correlating detected technologies and recurring patterns. Objective Assist security researchers, bug bounty hunters, and we...

Best for

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

Tools used

n8n-nodes-base.ssh, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.extractfromfile, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote, n8n-nodes-base.summarize, n8n-nodes-base.webhook

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
Subdomain enumeration with Subfinder, HTTPX & GPT-4-Mini for security reconnaissance
Workflow name
Subdomain enumeration with Subfinder, HTTPX & GPT-4-Mini for security reconnaissance

Generates a wordlist of 1,000–15,000 subdomains created by an AI agent by correlating detected technologies and recurring patterns.

Objective

Assist security researchers, bug bounty hunters, and web pentesters in the reconnaissance phase by incorporating an AI agent that generates additional potential subdomains. This enables discovery of assets outside the scope of traditional scans and expands the analyzable attack surface.

How it works

  1. The user uploads a list of domains to scan (scope).
  2. The workflow performs a passive, comprehensive scan using four sources (subfinder, assetfinder, crt.sh, Wayback Machine).
  3. The scan results and detected technologies are passed to an AI agent.
  4. The agent runs in a loop up to 20 iterations, generating new subdomains each pass (average output depends on input and model).
  5. Generated subdomains are validated and deduplicated. Syntax is checked and availability is tested (host active / httpx).

Requirements

  • SSH access with a root user and the following tools:
  1. Subfinder
  2. Assetfinder
  3. HTTPX

It is recommended to use a VPS with SSH because if the scope is very large the workflow will take a long time.

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 - SSH Subfinder

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

Block 2 - SSH Assetfinder

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

Block 3 - WayBack Machine

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

Block 4 - Filter Subdomains WayBack Machine

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

Block 5 - Filter Subdomains Assetfinder

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

Block 6 - Filter Subdomains Subfinder

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

Block 7 - TXT to JSON

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

Block 8 - SSH HTTPX

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

Block 9 - Subdomain Generator AI

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 10 - Sticky Note

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

Block 11 - Summarize

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

Block 12 - Subdomain Format Validation

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

Block 13 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 14 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 15 - Convert Subdomains to TXT

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

Block 16 - SSH create subdomains.txt into /tmp/reconAI

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

Block 17 - Prettify File Content

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

Block 18 - crt.sh

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

Block 19 - Split AI Response

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

Block 20 - AI Subdomain Format Validation

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

Block 21 - Rename crt.sh Content

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Merge all Results

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 23 - Unique Subdomains

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

Block 24 - Append all Loop Items

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

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

3. Summary Table

Workflow Subdomain enumeration with Subfinder, HTTPX & GPT-4-Mini for security reconnaissance
Complexity advanced
Nodes 48
Categories SecOps, AI Chatbot
Author Javier Rieiro
Published 15 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9735/9735.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 Subdomain enumeration with Subfinder, HTTPX & GPT-4-Mini for security reconnaissance do?

Generates a wordlist of 1,000–15,000 subdomains created by an AI agent by correlating detected technologies and recurring patterns. Objective Assist security researchers, bug bounty hunters, and we...

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