Skip to main content

Domain intelligence CLI and MCP server — tech stack, email security, and signal intelligence from DNS.

Project description

recon

Passive domain intelligence from public sources. Queries DNS records, Microsoft/Google identity endpoints, and certificate transparency logs to build a picture of an organization's technology stack — no credentials, no API keys, no active scanning.

Defensive use only. recon is designed for legitimate security posture assessment, IT architecture review, vendor due diligence, and defensive hardening. It performs zero active scanning and zero credentialed access. See docs/legal.md for the full intended-use policy.

recon contoso.com
╭──────────────────────────── Contoso Ltd ─────────────────────────────╮
│                                                                      │
│  Company:    Contoso Ltd                                             │
│  Domain:     contoso.onmicrosoft.com                                 │
│  Provider:   Microsoft 365 + Google Workspace                        │
│  Tenant ID:  a1b2c3d4-e5f6-7890-abcd-ef1234567890                    │
│  Region:     NA                                                      │
│  Auth:       Managed                                                 │
│  GWS Auth:   Managed                                                 │
│  Confidence: ●●● High (4 sources)                                    │
│  Services:   AWS CloudFront, AWS Elastic Load Balancer,              │
│              DKIM (Exchange Online), Google (site verified),         │
│              Google Workspace, Imperva (Incapsula), Microsoft 365,   │
│              Okta, Salesforce Marketing Cloud                        │
│                                                                      │
│  Insights:   Cloud-managed identity indicators (Entra ID native)     │
│              Google Workspace: Managed identity (Google-native)      │
│              Email security 2/5 moderate (DMARC reject, DKIM)        │
│              Dual provider: Google + Microsoft coexistence           │
│              Security stack: Okta (identity), Imperva (WAF)          │
│              Enterprise Security Stack: okta, imperva                │
│              Multi-Cloud: aws-cloudfront, aws-elb                    │
│              Dual Email Provider: microsoft365, google-workspace     │
│              Google-Native Identity: google-workspace, google-site,  │
│              google-managed                                          │
│                                                                      │
│  Certs:      280 total, 10 in last 90d, 3 issuers (DigiCert,         │
│              Entrust, Sectigo)                                       │
│                                                                      │
│  Related:    api.contoso.com, cdn.contoso.com, dev.contoso.com,      │
│              shop.contoso.com, staging.contoso.com                   │
│                                                                      │
╰──────────────────────────────────────────────────────────────────────╯

This example uses Microsoft's fictional company names (Contoso, Northwind Traders, Fabrikam). Tenant IDs, domains, and service lists are fabricated. No real company is depicted.

Give it a domain. recon queries public DNS, identity endpoints, and certificate transparency logs — the signals organizations emit for email, SaaS, and cloud infrastructure to function — and correlates them into structured output.

recon northwindtraders.com --explain      # see why each signal fired

Works for Microsoft 365, Google Workspace, or any provider. Also runs as an MCP server for AI agents.

What it does

recon collects public signals (DNS TXT/MX/CNAME/NS/SRV/CAA records, Microsoft and Google identity endpoints, certificate transparency logs) and matches them against a set of YAML-defined fingerprint and signal rules. Each signal alone is unremarkable — a TXT record, a CNAME delegation, a certificate pattern. The art is in the correlation. The matching is rule-based, not machine learning, but combining scattered records into a coherent view of what an organization is actually running is where the value comes from.

It's an early-stage project maintained by a solo developer. The fingerprint database covers 208 SaaS services and the signal engine has 44 rules across 4 layers. Coverage and accuracy will vary by domain — organizations with rich public DNS get detailed results; those with minimal records or heavy proxying will produce sparse output. Results should be treated as indicators, not ground truth.

How it compares

recon occupies a specific niche: it fuses DNS, identity endpoints, and CT logs into correlated output. Most existing tools do one of these well but not the combination.

recon dig / nslookup dnsrecon Paid tools
Zero credentials varies
M365 / GWS tenant detection varies
Email security scoring varies
SaaS fingerprinting 208 services typically more
Signal correlation rules 44 rules varies
Certificate intelligence varies
MCP server for AI agents rare
Custom YAML extensibility varies

Paid tools (BuiltWith, SecurityTrails, etc.) generally have broader coverage, more data sources, and battle-tested accuracy. recon's advantage is that it's free, requires no accounts, and runs locally.

Install

Requires Python 3.10+.

pip install recon-tool                    # from PyPI
pip install -e .                          # or from source
recon doctor                              # verify connectivity

Usage

recon northwindtraders.com                # default panel output
recon northwindtraders.com --json         # structured JSON
recon northwindtraders.com --md           # markdown report
recon northwindtraders.com --full         # everything (services + domains + posture)
recon northwindtraders.com --services     # M365 vs GWS vs tech stack split
recon northwindtraders.com --posture      # neutral posture observations
recon northwindtraders.com --compare prev.json  # delta: what changed since last run
recon northwindtraders.com --chain --depth 2    # recursive domain discovery
recon northwindtraders.com --no-cache     # bypass disk cache
recon northwindtraders.com --exposure     # security posture assessment
recon northwindtraders.com --gaps         # hardening gap analysis
recon northwindtraders.com --explain      # show why each signal fired
recon batch domains.txt --json            # batch mode (default 5 concurrent)
recon batch domains.txt --csv             # batch CSV for spreadsheets
recon batch domains.txt --json -c 10      # batch with 10 concurrent
recon doctor                              # connectivity check
recon doctor --fix                        # scaffold custom config templates
recon mcp                                 # start MCP server (stdio)

Input is normalized automatically — URLs, schemes, www. prefixes, paths, and whitespace are all stripped.

What you get

Signal Source
Company name, tenant ID, auth type Microsoft OIDC + GetUserRealm
Google Workspace auth type, modules Google login flow + CNAME probing + BIMI VMC
Email provider MX records
Email security score (0–5) DMARC + DKIM + SPF + MTA-STS + BIMI
208 SaaS services TXT, SPF, MX, CNAME, NS, CAA, SRV, DKIM selectors, DMARC RUA
Signal intelligence (44 rules) YAML-based correlation rules with cross-reference conditions
Certificate intelligence crt.sh + CertSpotter: issuance velocity, issuer diversity
Posture observations Neutral factual analysis across email, identity, infrastructure
Related domains CNAME breadcrumbs + certificate transparency
Delta / change detection Compare current vs. previous JSON export
Security posture assessment Exposure scoring, hardening gaps, comparative analysis

All from public sources. Zero authentication. Results vary by domain — sparse DNS means sparse output.

MCP Server

recon runs as an MCP server for Claude, Cursor, VS Code, ChatGPT, or any MCP client:

{
  "mcpServers": {
    "recon": {
      "command": "recon",
      "args": ["mcp"],
      "autoApprove": ["lookup_tenant", "analyze_posture"]
    }
  }
}

Then ask your AI: "Run a recon lookup on northwindtraders.com and analyze the posture."

For deeper analysis, try: "Look up contoso.com with explain=true, then assess_exposure and find_hardening_gaps. Simulate hardening with DMARC reject and MTA-STS enforce, and tell me the new posture score."

16 MCP tools available: lookup_tenant, analyze_posture, assess_exposure, find_hardening_gaps, compare_postures, chain_lookup, reload_data, get_fingerprints, get_signals, explain_signal, test_hypothesis, simulate_hardening, inject_ephemeral_fingerprint, reevaluate_domain, list_ephemeral_fingerprints, clear_ephemeral_fingerprints.

All tools are read-only and idempotent. The agentic tools (test_hypothesis, simulate_hardening, explain_signal) operate on cached data with zero additional network calls. The ephemeral fingerprint tools (inject_ephemeral_fingerprint, reevaluate_domain, list_ephemeral_fingerprints, clear_ephemeral_fingerprints) let AI agents inject temporary detection patterns and re-evaluate cached data.

See docs/mcp.md for setup details, available tools, and config file locations per client.

Documentation

Doc Contents
Fingerprints Detection types, custom fingerprints, email security scoring
Signals Signal rules, layers, metadata conditions, custom signals
MCP Server AI agent integration setup, tools, config locations
Roadmap What's planned, what's not, and why
Legal Disclaimer, accuracy, fictional examples
Contributing How to add fingerprints, signals, and code
Changelog Version history

Limitations

  • Coverage depends on public DNS. Organizations behind Cloudflare, with minimal DNS records, or that don't publish SaaS verification tokens will return near-empty results. This is a fundamental constraint of passive-only collection — there's no workaround.
  • Fingerprints will go stale. SaaS providers rebrand, change DNS patterns, and get acquired. 208 fingerprints maintained by a solo developer will fall behind. Community contributions are the only way this scales.
  • Signal rules are heuristic. The 44 YAML rules produce useful indicators, not definitive assessments. False positives happen. Missed signals happen. Don't make business decisions based solely on this output.
  • No accuracy benchmarks yet. There's no published precision/recall data. The tool can produce confident-looking output that's wrong. Treat it as a starting point for investigation, not a source of truth.
  • Early-stage project. This is a solo developer effort. It works, but it hasn't been battle-tested by a community yet. Expect rough edges and breaking changes.

Development

pip install -e ".[dev]"
pytest tests/                          # 1147 tests
ruff check recon_tool/                 # lint
pyright recon_tool/                    # type check

License

MIT — see LICENSE for details.

This tool queries only public DNS records and unauthenticated endpoints. See docs/legal.md for full disclaimer.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recon_tool-0.9.0.tar.gz (259.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

recon_tool-0.9.0-py3-none-any.whl (147.0 kB view details)

Uploaded Python 3

File details

Details for the file recon_tool-0.9.0.tar.gz.

File metadata

  • Download URL: recon_tool-0.9.0.tar.gz
  • Upload date:
  • Size: 259.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for recon_tool-0.9.0.tar.gz
Algorithm Hash digest
SHA256 07479edfaa5b6e8892a418f66211c19a9527ae2bf27d3cc53ac30c0fe75f68f5
MD5 717f075834bb7187380bcc5067bc826e
BLAKE2b-256 5ba1d96701eea323f5fc7cdee61392d1e379923959e7fa1431b0fa3e68cb32ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for recon_tool-0.9.0.tar.gz:

Publisher: release.yml on blisspixel/recon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file recon_tool-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: recon_tool-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 147.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for recon_tool-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fec2cf5dcd6512029489015b7e19ccdd82fe86c8c2692078f8be87e1ebeb8b87
MD5 0b67a8df1b1fdb7944fdaaa364e718be
BLAKE2b-256 b840b5c1bcf48805b1ab5b92eb4a07e54881a3ffe96d6fa18b6574b50a705370

See more details on using hashes here.

Provenance

The following attestation bundles were made for recon_tool-0.9.0-py3-none-any.whl:

Publisher: release.yml on blisspixel/recon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page