subsweep-recon
by 1nc0gn30
README.md
# SubSweep | Google Recon & Lead Studio
<p align="center">
<img src="https://img.shields.io/badge/SubSweep-Enterprise%20OSINT-1a73e8?style=for-the-badge&logo=google&logoColor=white" alt="SubSweep Logo" />
</p>
<p align="center">
<a href="https://github.com/subsweep-lead-scanner/subsweep-lead-scanner/actions"><img src="https://img.shields.io/badge/CI-15%20Jobs%20Passing-1e8e3e?style=flat-square&logo=github-actions&logoColor=white" alt="CI Status" /></a>
<a href="https://python.org"><img src="https://img.shields.io/badge/Python-3.9%20|%203.10%20|%203.11%20|%203.12%20|%203.13-1a73e8?style=flat-square&logo=python&logoColor=white" alt="Python Versions" /></a>
<a href="./docs/MCP_GUIDE.md"><img src="https://img.shields.io/badge/MCP-Standard%20v2024.11-9334e6?style=flat-square&logo=anthropic&logoColor=white" alt="MCP Ready" /></a>
<a href="./public/index.html"><img src="https://img.shields.io/badge/UI-Google%20Material%203-f9ab00?style=flat-square&logoColor=white" alt="Material 3" /></a>
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-MIT-gray?style=flat-square" alt="MIT License" /></a>
</p>
---
## ๐ Executive Overview
**SubSweep** is an all-in-one OSINT reconnaissance suite, perimeter port scanner, technology stack fingerprinter, and B2B decision-maker lead intelligence engine.
Designed for security researchers, DevSecOps teams, and B2B growth operators, SubSweep pairs a high-performance Python engine with a **Google Material 3 Light Mode Studio UI** and native **Model Context Protocol (MCP)** tool servers for AI assistants (Claude, Cursor, Cline, Zed).
---
## ๐ Key Capabilities
1. ๐ **Multi-Source Subdomain Reconnaissance:**
- Passive Certificate Transparency (CT) log mining (`crt.sh`, AlienVault OTX, CertSpotter).
- DNS record aggregation (`A`, `AAAA`, `MX`, `TXT`, `SPF`, `DKIM`, `DMARC`) with wildcard resolution detection.
2. ๐ข **B2B Lead Harvester & Decision Maker Qualification:**
- Extracts executive contacts (CISO, CTO, VP of Eng, Directors) with deliverable business emails.
- Computes a mathematical **Lead Quality Score (0โ100)** evaluating deliverability, seniority, phone availability, and social footprints.
3. ๐ฌ **Deep Technology Stack Fingerprinting:**
- Detects frontend frameworks (React, Next.js, Vue, Angular), cloud CDNs (Cloudflare, Fastly, CloudFront), and CMS engines (WordPress, Webflow, Shopify).
- Audits essential HTTP security headers (`HSTS`, `CSP`, `X-Frame-Options`).
4. ๐ **Perimeter Port & Service Matrix:**
- Rapid, non-intrusive TCP port auditing (`22`, `80`, `443`, `3306`, `5432`, `8443`) with service banner grabbing and risk classifications.
5. ๐ค **Native Model Context Protocol (MCP) Server:**
- Zero-configuration stdio tool server empowering AI agents to run live reconnaissance and lead research directly from chat.
6. ๐จ **Google Material 3 Recon Studio UI:**
- 100% offline-ready, single-file browser app (`public/index.html`) with zero tracking, dynamic score dials, interactive tree visualizer, and 1-click CSV/JSON/Markdown exports.
---
## ๐๏ธ Architecture Overview
```mermaid
flowchart TD
Target["Target Domain\n(e.g., acme-cloud.io)"] --> Engine["SubSweep Core Engine"]
subgraph Discovery ["OSINT & Recon Discovery"]
Engine --> CT["Certificate Transparency & Passive DNS"]
Engine --> Ports["Perimeter Port Matrix & Banners"]
Engine --> Tech["Tech Fingerprinter & Security Headers"]
Engine --> Leads["Business Lead & Contact Harvester"]
end
Discovery --> Merge["Normalization & Scoring Framework"]
subgraph Interfaces ["Multi-Channel Interfaces"]
Merge --> CLI["CLI Terminal Engine\n(subsweep recon)"]
Merge --> MCP["MCP AI Agent Server\n(Claude / Cursor / Zed)"]
Merge --> UI["Google Material 3 Studio\n(public/index.html)"]
Merge --> Exporters["Executive Intelligence Bundles\n(CSV / JSON / Markdown)"]
end
```
---
## โก Quickstart & Installation
### Option 1: Install via pip
```bash
pip install subsweep-lead-scanner
```
### Option 2: Clone & Development Setup
```bash
git clone https://github.com/subsweep-lead-scanner/subsweep-lead-scanner.git
cd subsweep-lead-scanner
pip install -e .
```
---
## ๐ป CLI Usage Examples
### 1. Complete Domain Reconnaissance & Audit
```bash
# Run full recon and print formatted console tables
subsweep recon acme-cloud.io
# Export full reconnaissance data to JSON
subsweep recon acme-cloud.io --output audit_report.json --format json
```
### 2. Harvest & Score High-Value Decision Leads
```bash
# Harvest leads with minimum score 80 and export to CSV
subsweep leads acme-cloud.io --min-score 80 --export leads.csv
# Filter for C-Suite and VP executives only
subsweep leads acme-cloud.io --exec-only --format json
```
### 3. Launch Material 3 Recon Studio Web UI
Open `public/index.html` in any web browser:
```bash
# Linux
xdg-open public/index.html
# macOS
open public/index.html
# Windows
start public/index.html
```
---
## ๐ค Model Context Protocol (MCP) Integration
Connect SubSweep directly to **Claude Desktop**, **Cursor IDE**, **Cline**, or **Zed**.
### Claude Desktop Configuration
Add to your `claude_desktop_config.json`:
```json
{
"mcpServers": {
"subsweep-recon": {
"command": "python",
"args": ["-m", "subsweep_lead_scanner.mcp_server"],
"env": {
"SUBSWEEP_RATE_LIMIT": "50",
"SUBSWEEP_TIMEOUT": "10"
}
}
}
}
```
*See [docs/MCP_GUIDE.md](./docs/MCP_GUIDE.md) for Cursor, Cline, and Zed configurations.*
---
## ๐ Lead Quality Scoring Methodology
SubSweep ranks prospects on a **0โ100 scale** using multi-factor heuristics:
$$\text{Score} = \min(100, W_{\text{email}} + W_{\text{seniority}} + W_{\text{social}} + W_{\text{phone}} + W_{\text{tech}})$$
| Factor | Weight | Evaluation Criteria |
|---|---|---|
| **Deliverable Email** | `30%` | Active MX record, RFC syntax valid, $\ge 95\%$ deliverability confidence. |
| **Executive Seniority** | `25%` | CISO, CTO, CEO, VP of Engineering, Head of Security. |
| **Social Footprint** | `20%` | Verified LinkedIn profile, Twitter/X handle, GitHub profile. |
| **Direct Phone Reachability** | `15%` | Direct office dial or mobile number. |
| **Tech Stack Fit** | `10%` | Cloud-native modern infrastructure (AWS, GCP, Kubernetes, Next.js). |
*See [docs/LEAD_SCORING_METHODOLOGY.md](./docs/LEAD_SCORING_METHODOLOGY.md) for full details.*
---
## ๐ Repository Structure
```
subsweep-lead-scanner/
โโโ .github/
โ โโโ workflows/
โ โโโ ci.yml # 15-job CI test matrix (Ubuntu/macOS/Win, Py 3.9-3.13)
โ โโโ release.yml # Automated release & SHA-256 packaging
โโโ docs/
โ โโโ OSINT_RECON_GUIDE.md # In-depth OSINT discovery architecture
โ โโโ LEAD_SCORING_METHODOLOGY.md # 0-100 mathematical lead scoring guide
โ โโโ MCP_GUIDE.md # Model Context Protocol setup for AI agents
โโโ examples/
โ โโโ domain-recon-audit/ # Domain recon reference script & JSON report
โ โโโ lead-generation-pipeline/# Lead scoring exporter & sample CSV
โ โโโ mcp-clients/ # Claude, Cursor, Cline, Zed JSON configs
โ โโโ README.md # Examples index & quickstart
โโโ public/
โ โโโ index.html # Google Material 3 Light Mode Recon Studio UI
โโโ src/
โ โโโ subsweep_lead_scanner/ # Core Python package engine
โโโ tests/
โ โโโ test_examples.py # Unit tests covering all examples, UI, and configs
โโโ README.md # Project README
```
---
## ๐งช Testing
Run the test suite with `pytest`:
```bash
PYTHONPATH=src pytest tests/ -v
```
---
## ๐ License
Released under the [MIT License](./LICENSE). Built with privacy-first principles.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues