Comparison • Features • Build • Usage • Config • Running samoscout • Implementation •
samoscout is an orchestrated subdomain discovery pipeline implementing passive reconnaissance, active enumeration, deep-level permutation, and neural network-based prediction. Native Go implementation with zero external binary dependencies for passive sources.
Live subdomains found with no API keys on any tool, December 2026:
| Domain | samoscout | subfinder 2.16.0 | amass 4.2.0 |
|---|---|---|---|
| tesla.com | 523 | 441 | 255 |
| spotify.com | 344 | 261 | 95 |
| hackerone.com | 14 | 13 | 14 |
| samoscout | subfinder | amass | |
|---|---|---|---|
| Passive sources | 78 | 52 | 83 |
| Free sources | 17 | 15 | |
| Permutation and brute force | yes | no | yes |
| Subdomain prediction | yes | no | no |
| HTTP probing | yes | no | no |
| Change tracking | yes | no | no |
Core Engine
- Multi-phase workflow orchestrator with concurrent execution
- YAML configuration system with runtime reload capability
- HTTP client pool with connection reuse and retry mechanisms
- PostgreSQL database for subdomain tracking
- Optional Elasticsearch indexing for HTTPX results (status, headers, html, tech)
- Built-in defaults for every setting, so
--llmand the other modes work without editing the config - Setup check with
samoscout doctor, and a preflight that reports missing tools before the scan starts
Passive Reconnaissance
- 78 native API integrations without external binary dependencies
- 17 sources work without an API key, the rest turn on when you add a key
- Concurrent source execution with configurable timeouts
- Result deduplication and validation pipeline
- Source-specific rate limiting and error handling
Active Enumeration
- Wordlist-based subdomain generation and permutation
- Custom wordlist support with automatic fallback to six2dez default
- Multi-level dsieve algorithm with Trickest wordlists
- DNS resolution via puredns with wildcard detection
- Rate-limited query execution with trusted resolver pools
Machine Learning Prediction
- PyTorch transformer model for subdomain prediction
- Iterative refinement with validated result feedback
- Configurable generation parameters and recursion depth
- Cross-platform inference via stdin/stdout IPC
Passive Sources AbuseIPDB, ActiveDNS, AlienVault, Anubis, BeVigil, BufferOver, BuiltWith, C99, CeBaidu, Censys, CertSpotter, Chaos, Chinaz, CIRCL, Cloudflare, CommonCrawl, CrtName, crt.sh, DeepInfo, DigiCert, DigitalYama, DigiTorus, DNSArchive, DNSDB, DNSDumpster, DNSGrep, DNSRepo, DomainsProject, DriftNet, FOFA, FullHunt, GitHub, GitLab, HackerTarget, HudsonRock, Hunter, HunterIO, IntelX, JSMon, LeakIX, Maltiverse, MerkleMap, MySSL, Netcraft, Netlas, Onyphe, OTILabs, Profundis, PugRecon, Pulsedive, Quake, Racent, RapidDNS, ReconCloud, Reconeer, RedHuntLabs, Robtex, RSECloud, ScanMalware, SecurityTrails, Shodan, ShrewdEye, SiteDossier, SOCRadar, SubdomainCenter, SubdomainRadar, THC, ThreatBook, ThreatCrowd, ThreatMiner, Trickest, URLScan, VirusTotal, WaybackArchive, WhoisXMLAPI, WindVane, ZETAlytics, ZoomEye
Free Sources (no API key) AlienVault, Anubis, CertSpotter, CommonCrawl, CrtName, crt.sh, HackerTarget, HudsonRock, MySSL, Netcraft, Racent, RapidDNS, ScanMalware, SubdomainCenter, THC, URLScan, WaybackArchive
Disabled by Default AbuseIPDB, CeBaidu, DigiCert, DigiTorus, DNSGrep, Maltiverse, ReconCloud, RSECloud, ShrewdEye, SiteDossier, ThreatCrowd, ThreatMiner
These services are down or rate limited. They still run when you select them with -s. Run samoscout sources to see which sources run with your config.
puredns Configuration
- Resolver sources: Trickest community + trusted, public-dns.info
- Resolver count: ~73,000 aggregated resolvers
- Trusted resolvers: 31 high-reliability servers
- Rate limiting: 100 queries/sec (normal), 100 queries/sec (trusted)
- Wildcard detection: 30 tests, 1M batch size
- Resolution modes: resolve (standard), bruteforce (wordlist-based)
Model Specifications
- Architecture: GPT transformer
- Source: HuggingFace HadrianSecurity/subwiz
- Context window: 1024 tokens
- Tokenization: Comma-separated subdomain list + [DELIM] token
- Decoding: Beam search with top-N sampling
- Temperature: Configurable (default: 0.0 for deterministic output)
Model Development A custom, project-specific finetuned and trained model is currently in development for samoscout. This dedicated model will be significantly larger (GB+) than the current general-purpose model, providing more consistent and accurate results specifically tailored for subdomain discovery workflows. Due to its high resource requirements, users will have the option to choose between:
- Light Model: Current general-purpose model (lower memory footprint)
- Heavy Model: Custom project-specific model (higher accuracy, larger size)
Iterative Refinement
Iteration 1: Seed with passive results → predictions → validate
Iteration 2: Seed with (passive + validated) → predictions → validate
...
Iteration N: Continue until max_recursion or no new results
go install github.com/samogod/samoscout@latestgit clone https://github.com/samogod/samoscout.git
cd samoscout
go mod download
go build -o samoscout main.goPassive enumeration needs nothing else. The other modes need these tools:
| Mode | Flag | Needs |
|---|---|---|
| Passive | default | nothing |
| Active | --active |
massdns, puredns |
| Prediction | --llm |
Python 3 with torch, transformers, huggingface_hub, plus massdns and puredns |
| HTTP probing | --httpx |
ProjectDiscovery httpx |
| Tracking | track |
PostgreSQL |
puredns and httpx are installed automatically on first use if Go is available. massdns and the Python packages are not.
# Linux
sudo apt install -y massdns
python3 -m pip install torch transformers huggingface_hub
# macOS
brew install massdns
python3 -m pip install torch transformers huggingface_hubOn Windows, passive scans and --httpx run natively. massdns has no Windows build, so run --active and --llm inside WSL.
samoscout doctor[ok] config: /home/user/.config/samoscout/config.yaml
[ok] passive: 17 sources ready (17 keyless, 0 with your keys)
49 more unlock with API keys - see 'samoscout sources'
12 disabled by default (upstream down or not worth a default slot) - see 'samoscout sources'
Optional stages (passive enumeration needs none of these):
[ok] massdns /usr/bin/massdns
[ok] puredns /home/user/go/bin/puredns
[x] python3 + torch/transformers missing Python modules: torch (needed by --llm)
fix: python3 -m pip install --index-url https://download.pytorch.org/whl/cpu torch
python3 -m pip install transformers huggingface_hub
(CPU wheel shown; drop --index-url for the CUDA build)
[ok] httpx (projectdiscovery) /home/user/go/bin/httpx
The same check runs before every scan. If a tool is missing, samoscout says so up front, skips that stage and still runs the passive scan.
samoscout -h
This will display help for the tool. Here are all the switches it supports.
Usage:
samoscout [flags]
samoscout [command]
Available Commands:
doctor Check the setup: config, API keys and the tools --active/--llm/--httpx need
sources List passive sources, whether they need an API key, and whether they will run
track Query subdomain tracking database
update Update samoscout to the latest version
version Show version information
help Help about any command
Flags:
INPUT:
-d, -domain string target domain to enumerate
-dL, -list string file containing list of domains to enumerate
SOURCE:
-s, -sources string comma-separated list of sources to use (e.g., 'subdomaincenter,crtsh')
-es string comma-separated list of sources to exclude (e.g., 'alienvault,zoomeyeapi')
ACTIVE ENUMERATION:
-active enable active subdomain enumeration (wordlist + dsieve + mksub)
-w, -wordlist string custom wordlist path for active enumeration (default: six2dez wordlist)
-deep-enum enable deep level enumeration (dsieve + trickest wordlists)
AI PREDICTION:
-llm enable AI-powered subdomain prediction
HTTP PROBING:
-httpx enable HTTP/HTTPS probing on discovered subdomains
OUTPUT:
-o, -output string file to write output to
-j, -json write output in JSONL(ines) format
-silent silent mode - no banner or extra output
-stats display source statistics after scan
CONFIGURATION:
-c, -config string config file path (default: ./config.yaml, else the per-user config)
OPTIMIZATION:
-v, -verbose enable verbose/debug output
# Single domain enumeration
samoscout -d example.com
# Multiple domains from file
samoscout -dL domains.txt
# Source selection
samoscout -d example.com -s alienvault,crtsh,virustotal
# Source exclusion
samoscout -d example.com --es alienvault,anubis
# Output formats
samoscout -d example.com -o output.txt
samoscout -d example.com -j > output.json
# Statistics display
samoscout -d example.com --stats
# List sources and which ones run with your config
samoscout sources# Active enumeration (wordlist + dsieve + mksub + gotator)
samoscout -d example.com --active
# Use custom wordlist for active enumeration
samoscout -d example.com --active -w /path/to/wordlist.txt
# Deep enumeration (multi-level dsieve + trickest wordlists)
samoscout -d example.com --active --deep-enum
# LLM-powered prediction
samoscout -d example.com --llm
# HTTP probing
samoscout -d example.com --httpx
# HTTP probing + Elasticsearch (index HTTPX JSONL)
# Ensure elasticsearch.enabled=true in config.yaml
samoscout -d example.com --httpx
# Combined full enumeration
samoscout -d example.com --active --deep-enum --llm --httpx --stats
# Use custom wordlist with full enumeration
samoscout -d example.com --active -w custom-wordlist.txt --deep-enum --llm --httpxSamoscout can stream HTTPX results directly into Elasticsearch for powerful search and analytics across active web services. Each record contains URL, status_code, title, technologies, webserver, content_type, and content_length, enabling rich filtering (e.g., framework, server, status class) and dashboards.
- Enable in
config.yamlwithelasticsearch.enabled: true - Provide
url,username,password, and optionalindex(default:samoscout_httpx) - Run any scan with
--httpx; the JSONL output at.samoscout_active/<domain>/httpx_results.jsonis bulk-indexed automatically
Expected console output on success:
[ES] Indexed httpx_results.json into index '<name>'
You can then create visualizations and saved searches over fields like status_code, title, technologies, and webserver.
# Query tracked subdomains
samoscout track example.com
# Filter by status
samoscout track example.com --status new
samoscout track example.com --status dead
samoscout track example.com --status active
# List all tracked domains
samoscout track --all# Check config, API keys and the tools each mode needs
samoscout doctor
# Display version information
samoscout version
# Update to latest release
samoscout update
samoscout update -vConfigure API keys and runtime settings in the config file. samoscout uses the first one it finds:
- the file given with
-c ./config.yamlor./config/config.yaml$HOME/.config/samoscout/config.yamlon Linux,~/Library/Application Support/samoscout/config.yamlon macOS,%APPDATA%\samoscout\config.yamlon Windows
The per-user file is created on first run. Every setting is optional and falls back to the defaults below, so older config files keep working.
api_keys:
virustotal: ""
chaos: ""
censys: ""
securitytrails: ""
shodan: ""Most keys are a single value. These take two parts:
| Source | Format |
|---|---|
| censys | id:secret |
| circl | user:password |
| dnsarchive | token:apikey |
| domainsproject | user:password |
| fofa | email:key |
| intelx | host:key, for example 2.intelx.io:xxxx |
| jsmon | authToken:workspaceId |
default_settings:
timeout: 10 # Global timeout in minutes
active_enumeration:
enabled: false # Enable active enumeration
dsieve_top: 50 # Top N domains for dsieve
dsieve_factor: 4 # Permutation depth
output_dir: ".samoscout_active" # Workspace directory
llm_enumeration:
enabled: false # Enable transformer prediction
device: "auto" # PyTorch device (auto/cpu/cuda)
python: "" # Python interpreter for --llm (empty: auto-detect)
num_predictions: 500 # Predictions per iteration
max_recursion: 5 # Maximum iteration depth
max_tokens: 10 # Token generation limit
temperature: 0.0 # Sampling temperature
run_after_passive: true # Execute after passive phase
run_after_active: false # Execute after active phase
database:
enabled: false # Enable subdomain tracking
host: "localhost" # PostgreSQL host
port: 5432 # PostgreSQL port
user: "postgres" # Database user
password: "postgres" # Database password
elasticsearch:
enabled: false # Enable ES indexing for HTTPX output
url: "http://127.0.0.1:9200" # Elasticsearch URL
username: "elastic" # Username
password: "elastic" # Password
index: "samoscout_httpx" # Target index (default: samoscout_httpx)CREATE TABLE subdomains (
id INTEGER PRIMARY KEY AUTOINCREMENT,
domain TEXT NOT NULL,
subdomain TEXT NOT NULL,
status TEXT NOT NULL CHECK(status IN ('ACTIVE', 'DEAD', 'NEW')),
first_seen DATETIME NOT NULL,
last_seen DATETIME NOT NULL,
UNIQUE(domain, subdomain)
);
CREATE INDEX idx_domain ON subdomains(domain);
CREATE INDEX idx_status ON subdomains(status);
CREATE INDEX idx_subdomain ON subdomains(subdomain);
CREATE INDEX idx_last_seen ON subdomains(last_seen);NEW: First discovery (subdomain not in database)
ACTIVE: Present in current scan AND previous scan
DEAD: Present in previous scan, absent in current scan
-- Find new subdomains for domain
SELECT subdomain FROM subdomains
WHERE domain = 'example.com' AND status = 'NEW'
ORDER BY first_seen DESC;
-- Find dead subdomains in last 7 days
SELECT subdomain, last_seen FROM subdomains
WHERE domain = 'example.com' AND status = 'DEAD'
AND last_seen > datetime('now', '-7 days')
ORDER BY last_seen DESC;
-- Subdomain statistics per domain
SELECT domain,
COUNT(*) as total,
SUM(CASE WHEN status = 'ACTIVE' THEN 1 ELSE 0 END) as active,
SUM(CASE WHEN status = 'DEAD' THEN 1 ELSE 0 END) as dead,
SUM(CASE WHEN status = 'NEW' THEN 1 ELSE 0 END) as new
FROM subdomains
GROUP BY domain;# Check and install latest version
samoscout update- Passive sources: up to 66 concurrent API requests
- DNS resolution: ~1000-5000 queries/second (puredns)
- Active candidates: Limited to 25K with random sampling
- LLM inference: ~10-50 predictions/second (CPU), ~100-200 (GPU)
- Base: ~50-100 MB
- Per-source overhead: ~1-5 MB
- Active enumeration: ~100-500 MB (wordlist processing)
- LLM model: ~50-100 MB (transformer weights)
type Source interface {
Run(ctx context.Context, domain string, s *Session) <-chan Result
Name() string
}
type Result struct {
Type string // "subdomain", "error"
Value string // subdomain or error message
Source string // source name
Error error // error object if applicable
}func (s *ExampleSource) Run(ctx context.Context, domain string, sess *session.Session) <-chan Result {
results := make(chan Result)
go func() {
defer close(results)
// API request
resp, err := sess.Client.Get(apiURL)
if err != nil {
results <- Result{Source: s.Name(), Error: err}
return
}
defer resp.Body.Close()
// Parse response
var data ResponseType
json.NewDecoder(resp.Body).Decode(&data)
// Stream results
for _, subdomain := range data.Subdomains {
select {
case results <- Result{
Source: s.Name(),
Value: subdomain,
Type: "subdomain",
}:
case <-ctx.Done():
return
}
}
}()
return results
}| Problem | Fix |
|---|---|
massdns not found |
Install massdns, or use WSL on Windows. |
missing Python modules: torch |
python3 -m pip install torch transformers huggingface_hub. Set llm_enumeration.python to use another interpreter. |
httpx fails with No such option |
That is the Python httpx. Install go install github.com/projectdiscovery/httpx/cmd/httpx@latest. |
[ES] skipped |
Elasticsearch is enabled but not running. Set elasticsearch.enabled: false. |
samoscout doctor checks all of these. Run with -v to see every request a source makes.
Contributions are welcome and essential for the continuous development of samoscout. Your participation helps make this tool more powerful.
Adding New Subdomain Services
samoscout uses a simple Source interface (see Source Interface Implementation above) that makes it easy to integrate new subdomain enumeration services.
To add a new subdomain service:
- Open an Issue: Request a new service by opening an issue describing the source and its capabilities
- Check Existing Implementation: Review the implementation examples in the
pkg/sources/directory - Implement the Interface: Follow the
Sourceinterface pattern shown above - Register the Source: Add one line to
pkg/sources/registry.go. If it needs an API key, add the field topkg/config/config.goandconfig/config.yaml - Submit a PR: Share your implementation with the community
Planned Enhancements (TODOs)
Your contributions can help accelerate these planned features:
- Heavy trained model: Development of a custom, project-specific transformer model for improved subdomain discovery accuracy
- More subdomain services: Expanding passive source integrations
- Centralized database: Building a shared database infrastructure where subdomain data from all instances
Whether you're adding services, improving documentation, or working on planned features, your contributions matter. Together we can build a more comprehensive and powerful subdomain discovery tool.
- Dsieve permutation logic inspired by trickest/dsieve (MIT License)
- Mksub combination algorithm from trickest/mksub (MIT License)
- LLM model: HadrianSecurity/subwiz (HuggingFace)

