# Using N8N To Orchestrate Web and Mobile Bug Hunting

### **Introduction**

Modern bug hunting increasingly relies on **automation**, **integration**, and **orchestration** to scale reconnaissance and streamline reporting. Manual workflows struggle to keep pace with the complexity and speed of modern attack surfaces.

This setup demonstrates how **n8n** serves as a **centralized control plane** to coordinate multiple tools and data flows across the bug-hunting lifecycle. Through **AutoAR’s REST API**, it automates comprehensive web reconnaissance and attack surface mapping, while **Notion** provides a single source of truth for tracking targets and scan states. **Discord** delivers real-time operational alerts, and **AI-assisted reporting** ensures consistent, high-quality documentation of findings.

Advanced mobile analysis is handled through **APKX**, an integrated Android/iOS pipeline connected to n8n. This enables intelligent caching, deep static and dynamic analysis, MITM patching, and automated report generation from app binaries acquired via store integrations.

Together, these components form a **scalable, modular, and intelligent framework** that enhances the efficiency and precision of modern bug bounty operations.

***

### **Architecture Overview**

<table><thead><tr><th width="184">Component</th><th>Purpose</th></tr></thead><tbody><tr><td><strong>n8n</strong></td><td>Event bus, scheduler, and workflow engine</td></tr><tr><td><strong>AutoAR</strong></td><td>Web reconnaissance and attack surface scanning via REST API (subfinder, httpx, dnsx, naabu, nuclei, Dalfox, trufflehog, ffuf/fuzzuli, etc.)</td></tr><tr><td><strong>APKX (Android/iOS)</strong></td><td>Mobile analysis pipeline integrated via n8n — advanced APK/IPA analysis, intelligent caching, pattern matching, MITM patching, and HTML/JSON reporting</td></tr><tr><td><strong>Notion</strong></td><td>Source of truth for targets and scan statuses</td></tr><tr><td><strong>Discord</strong></td><td>Real-time notifications (capacity, completion, errors)</td></tr><tr><td><strong>AI Reporting</strong></td><td>Uses OpenRouter models to generate structured Markdown reports</td></tr></tbody></table>

***

### **Workflow in Practice**

#### **1. Intake in Notion**

* Targets and scan types are defined in a Notion database.
* n8n monitors for new or updated entries and triggers workflows automatically.

#### **2. Capacity Guard**

* n8n queries `AutoAR /capacity`.
* If the system is at capacity, n8n posts a **Discord warning** and defers the task to maintain stability.

#### **3. Launch Scan**

* n8n submits a `POST /scan` request to AutoAR with the chosen scan type.
* AutoAR executes asynchronously and stores results under `new-results/`.

#### **4. Persistence and Status**

* When the scan completes, n8n marks the Notion item as **Completed**.
* Discord receives a concise notification with any relevant artifacts (lists, findings, wordlists).

#### **5. AI-Assisted Reporting**

* Structured findings are sent to an LLM via **OpenRouter**.
* The model drafts a clean Markdown report, which is written back to Notion for analyst review and validation.

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FhAqitciyMs4xJcWrpJyh%2Fimage.png?alt=media&#x26;token=68092902-4357-4019-a660-58c488cf3d4b" alt=""><figcaption></figcaption></figure>

#### Workflow In Practice

1. Intake in Notion

* New items are added to a Notion database with fields like Target and Scan Type.
* n8n watches Notion and triggers when a new/updated record needs a scan.

2. Capacity Guard

* n8n queries AutoAR `/capacity`. If at capacity, a Discord warning is posted and the item is deferred.

3. Launch Scan

* n8n POSTs to AutoAR `/scan` with the chosen scan type. AutoAR runs asynchronously and stores results under `new-results/`.

4. Persistence and Status

* Once completed, n8n sets the Notion item to “Completed”. Discord receives a concise completion message and, when useful, file artifacts (lists, findings, wordlists).

5. AI‑Assisted Reporting

* A dedicated n8n flow sends structured findings to an LLM via OpenRouter and writes a clean, templated markdown report back into Notion for review.

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2F7viyWulCdiWCrSJW7cxs%2Fimage.png?alt=media&#x26;token=4d02f567-e1cd-4e9b-ab62-e52c81d11881" alt=""><figcaption></figcaption></figure>

### **Scan Types**

<table><thead><tr><th width="184">Type</th><th width="343">Description</th><th>Best Use</th></tr></thead><tbody><tr><td><strong>Domain</strong></td><td>Full reconnaissance: subdomains, live hosts, URLs, tech stack, DNS checks, nuclei templates, reflection, JS exposure, ports, and vulnerabilities</td><td>Comprehensive program coverage</td></tr><tr><td><strong>Subdomain</strong></td><td>Focused scan on one subdomain with same modules as Domain</td><td>Deep-dive triage of high-value assets</td></tr><tr><td><strong>liteScan</strong></td><td>Fast subdomain enumeration, live hosts, tech detection, reflection, and nuclei checks</td><td>Quick actionable overview</td></tr><tr><td><strong>fastLook</strong></td><td>Minimal recon: subenum → live hosts → URLs → tech detect → reflection</td><td>Rapid prioritization</td></tr><tr><td><strong>JSScan</strong></td><td>JavaScript collection and analysis for secrets, XSS, and API endpoints</td><td>JS-heavy applications</td></tr><tr><td><strong>JSMonitor</strong></td><td>Monitors JS files for modifications</td><td>Detecting new endpoints or changes or secrets</td></tr><tr><td><strong>BackupScan</strong></td><td>Fuzzes for exposed backups/config files</td><td>Backup Files Exposure</td></tr><tr><td><strong>S3Scan</strong></td><td>Tests S3 bucket permissions</td><td>Cloud exposure assessment</td></tr><tr><td><strong>GitHub (Repo/Org/Wordlist)</strong></td><td>Secret detection, wordlist generation, and org-wide scanning via trufflehog and gh CLI</td><td>Source code and org monitoring</td></tr><tr><td><strong>Monitoring</strong></td><td>Periodic re-scans for changes or new findings</td><td>Continuous program intelligence</td></tr></tbody></table>

***

### **Mobile Pipelines**

#### **Android (APKX)**

* Orchestrated via n8n to the APKX backend.
* **Analysis capabilities:** 1600+ security patterns, exported components review, deep links, insecure storage, cert pinning, debug mode, Janus vulnerability detection.
* **Operational features:** Queueing, intelligent caching, multi-store downloads (APKPure, Play Store, F-Droid, AppGallery), optional MITM patching, and HTML/JSON reporting.
* **Storage:** GitLab integration for zero-local storage and automatic synchronization.
* Status updates and completions are tracked in Notion and broadcast to Discord.

#### **iOS (APKX iOS)**

* Similar orchestration with capacity checks, job submission, and reporting.
* **Capabilities:** IPA analysis, plist parsing, ATS review, jailbreak detection, keychain inspection, and binary analysis.
* **Download:** ipatool integration with authenticated access.
* **Storage:** GitLab-backed artifact management.

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FjE3UyjsPsd17BJzjoIyY%2Fimage.png?alt=media&#x26;token=e23ad5c4-babb-47bb-95d8-565d4e4285a9" alt=""><figcaption></figcaption></figure>

### Screenshots

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FSo4xoiUdbQ5hoNKrHj5I%2Fimage.png?alt=media&#x26;token=4d073766-ffa1-4b40-906e-de634485c38a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FH2NFZT6zTQuz8NdVneKi%2Fimage.png?alt=media&#x26;token=12e5c213-091d-4f3f-9c05-db487567ce3a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FGcpS5cXmMF7Drn95L0xe%2Fimage.png?alt=media&#x26;token=52abe2af-5c2b-4290-8f4e-b85369f1c0c4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FIAKxP7ExaOnDhA6zPdMa%2Fimage.png?alt=media&#x26;token=d208c471-7682-461e-8f2c-c69b11bbb84c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FqLOWm1ighV16h4v4sxEW%2Fimage.png?alt=media&#x26;token=51f7dcdc-6ea9-4ce7-add0-94007464ce3a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2F5u5aeetgZy1jkCzUlTps%2Fimage.png?alt=media&#x26;token=1231c075-847e-4b31-b089-6c9f3e749ecb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FdWVi1wmGxucU5tvcAqqe%2Fimage.png?alt=media&#x26;token=6fb1c9e4-8da5-4709-a5ec-6a0c87744337" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2308035028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWeYzWCIl8fzqyot9mus5%2Fuploads%2FBD7knrj04HxGaLHy5MFq%2Fimage.png?alt=media&#x26;token=7070dd7b-1060-4d9b-a9a6-59deb2f7634c" alt=""><figcaption></figcaption></figure>

***

### **Tooling Ecosystem**

* **Subdomain/Host:** subfinder, httpx, dnsx
* **Ports:** naabu
* **Vulnerability Templates:** nuclei (public/custom)
* **Web Vulns:** Dalfox, GF patterns, reflection checks
* **Content Discovery:** ffuf, fuzzuli
* **GitHub:** trufflehog, gh CLI, raw REST fallback
* **Mobile:** APKX pipelines for Android/iOS

***

### **Discord Integration**

* **Notifications:** Capacity warnings, completion summaries, and error alerts.
* **Artifact Sharing:** Wordlists, secrets, and scan summaries via file attachments.
* **APKX Reports:** Mobile HTML/JSON results posted with download links.
* **Rich Embeds:** Structured messages containing metadata and findings counts.
* **Webhooks:** Per-scan configuration for targeted reporting.

***

### **Why This Automation Works**

* **Consistency:** Every run is defined, logged, and repeatable.
* **Scale:** Capacity checks prevent overload and ensure reliable throughput.
* **Speed:** One action in Notion triggers the full automation chain.
* **Signal Over Noise:** Discord carries essential alerts; Notion holds structured data.
* **Extensibility:** New tools are simple new nodes or API routes.
* **Quality:** AI-assisted reporting enforces structured documentation with minimal manual overhead.

***

### **Outcome**

This architecture transforms reconnaissance and analysis into a **controlled, repeatable system**. **n8n orchestrates**, **AutoAR executes**, **Notion tracks**, **Discord informs**, and **AI accelerates reporting** — creating a professional, maintainable, and extensible foundation for modern bug bounty operations.
