/ghost-recon

Intelligence L3 Production medium usage

/ghost-recon

Overview

/ghost-recon is a production command in the Intelligence category of the Prismatic Platform that performs passive, zero-footprint intelligence gathering against specified targets. Unlike active reconnaissance that probes target systems directly, ghost reconnaissance collects intelligence exclusively from third-party sources, cached data, and passive observation channels. The target never receives a single packet, request, or query from the investigation, making the reconnaissance completely undetectable.

This command operates under the L3 authority level and is executed by the ghost-recon-operator agent. It is part of the platform's 216-command slash command registry, built on the AIAD (Autonomous Intelligence Agent Design) standard. The L3 authority level reflects the sensitivity of intelligence operations and ensures that only authorized operators can invoke passive reconnaissance capabilities.

Zero-footprint intelligence gathering is essential in scenarios where the target must not be alerted to the investigation. This includes competitive intelligence, pre-engagement reconnaissance for authorized penetration testing, threat actor research, and due diligence investigations where premature disclosure could compromise the assessment. The ghost reconnaissance approach guarantees that no fingerprint is left on the target's access logs, intrusion detection systems, or monitoring infrastructure.

Architecture

The ghost recon system is architected around the principle of strict source isolation: all data collection occurs through intermediary services that query targets on behalf of millions of users, making individual investigations indistinguishable from normal traffic.

Collection Architecture

Target (NO DIRECT CONTACT)
         |
         | (queried by third-party services independently)
         v
Third-Party Sources -> Cache Layer -> Ghost Collector -> Correlator -> Report
    |                    |                |                  |
    v                    v                v                  v
  DNS Caches        Archive.org      Parallel Fetch     Entity Resolution
  CT Logs           Google Cache     Rate Limiting      Link Analysis
  Shodan/Censys     Wayback          Source Tracking     Timeline Construction
  BGP Tables        Social Caches    Provenance          Confidence Scoring

Passive Source Categories

CategorySourcesZero-Footprint Method
DNS IntelligencePassiveDNS, SecurityTrails, DNSdumpsterHistorical DNS resolution records
Certificate Transparencycrt.sh, Censys, Google CTPublic CT log queries (no target contact)
Infrastructure ScanningShodan, Censys, BinaryEdgePre-scanned internet-wide data
Web ArchivesWayback Machine, Archive.org, Google CacheCached versions of target web properties
BGP/RoutingRIPE, BGPView, HurricaneElectricPublic routing table data
WHOIS HistoryDomainTools, WHOIS HistoryHistorical registration records
Social IntelligenceCached profiles, public APIsPublicly available profile data
Code RepositoriesGitHub, GitLab (public)Public repository metadata and commits

Footprint Guarantee

The zero-footprint guarantee is enforced through several architectural safeguards.

SafeguardImplementationPurpose
Source whitelistOnly approved passive sources usedPrevent accidental direct contact
DNS resolution bypassNo DNS queries to target nameserversAvoid DNS log entries
TLS verification skipNo TLS handshakes with targetAvoid connection log entries
Referrer suppressionNo referrer headers in source requestsPrevent referrer tracking
User-agent rotationGeneric user-agents for source queriesPrevent fingerprinting

Usage

# Passive reconnaissance on a domain
/ghost-recon example.com

# Investigate an IP address
/ghost-recon 203.0.113.42

# Full passive profile of an organization
/ghost-recon --target=example.com --depth=full

# Quick infrastructure overview
/ghost-recon example.com --mode=infrastructure

# Certificate transparency focused
/ghost-recon example.com --mode=certificates

# Historical web presence analysis
/ghost-recon example.com --mode=historical

# Export structured intelligence
/ghost-recon example.com --format=json --output=ghost-intel.json

# Multiple target investigation
/ghost-recon example.com secondary.com --correlate

# Continuous passive monitoring
/ghost-recon example.com --monitor --interval=daily

Options

OptionTypeDefaultDescription
targetstringrequiredTarget domain, IP address, or organization name
--depthstringstandardInvestigation depth: quick, standard, full
--modestringallFocus mode: all, infrastructure, certificates, historical, social, code
--formatstringtextOutput format: text, json, markdown, html
--outputstringstdoutOutput file path
--correlateflagfalseCorrelate findings across multiple targets
--monitorflagfalseEnable continuous monitoring
--intervalstringweeklyMonitoring interval: daily, weekly, monthly
--timeoutinteger120Per-source timeout in seconds
--sourcesstringallComma-separated list of specific sources
--historical-depthstring5yHow far back to search archives
--confidence-thresholdfloat0.5Minimum confidence for reported findings

Execution Flow

  1. Target Classification: The target input is classified as a domain, IP address, CIDR range, or organization name. This classification determines which source categories are applicable and how source queries are constructed.

  2. Source Selection: Based on the target type and requested mode, the ghost-recon-operator selects the appropriate subset of passive sources. Each source is validated for availability before collection begins.

  3. Parallel Passive Collection: Selected sources are queried in parallel with strict rate limiting to avoid triggering abuse detection on the source services themselves. All queries go to third-party services, never to the target.

  4. Data Normalization: Raw responses from different sources are normalized into a common intelligence schema with consistent field names, data types, and provenance records.

  5. Temporal Reconstruction: Historical data points are organized into a timeline showing how the target's infrastructure, certificates, DNS records, and web presence have changed over time.

  6. Entity Resolution: Discovered assets (subdomains, IP addresses, services, certificates) are linked through shared attributes to build a comprehensive asset map.

  7. Infrastructure Mapping: Network relationships between discovered assets are mapped, including shared hosting, CDN usage, load balancer distribution, and geographic distribution.

  8. Confidence Assessment: Each finding is assigned a confidence score based on source reliability, data freshness, and corroboration across multiple sources.

  9. Report Generation: Findings are compiled into a structured intelligence report with sections for infrastructure overview, certificate analysis, historical changes, and identified risks.

Integration Points

ComponentRelationshipDetails
Prismatic AgentsExecuted by ghost-recon-operatorSpecialized passive collection agent
/investigateParent investigation suiteGhost recon is one collection mode
/email-osintEmail-centric variantComplementary email-focused collection
/intel-exportReport packagingExports findings for external analysis
NABLA FrameworkEpistemic validationSource plurality enforced
Quality GatesIntelligence qualityConfidence scoring and validation
TelemetryExecution metricsSource response times and coverage
Prismatic PerimeterAttack surface contextEASM data enriches ghost recon findings

Best Practices

Always start passive. Begin any investigation with ghost reconnaissance before considering active techniques. Passive collection reveals the target's visible attack surface without any risk of detection, providing the foundation for subsequent investigation phases.

Validate source freshness. Passive sources often contain stale data. Certificate transparency logs are near-real-time, but Shodan scan data might be days or weeks old. Always check timestamps on findings before making assessments based on them.

Cross-reference multiple sources. A finding from a single source should be treated with lower confidence than one corroborated by multiple independent sources. The --correlate option helps identify findings supported by multiple data points.

Use temporal analysis. Changes in infrastructure over time often reveal more than a point-in-time snapshot. Historical DNS changes can indicate infrastructure migrations, certificate rotations can reveal organizational structure, and web archive changes can show feature deployments.

Combine with EASM. Ghost recon findings feed naturally into the Prismatic Perimeter External Attack Surface Management system, providing the passive foundation for ongoing security monitoring.

Document your authorization. Even passive reconnaissance should be conducted under proper authorization. While zero-footprint collection does not touch the target, organizational policies and legal frameworks may still govern intelligence collection activities.

Error Handling

ErrorCauseResolution
target_classification_failedCannot determine target typeSpecify explicitly with --type=domain or --type=ip
source_unavailablePassive source is temporarily downSource skipped; remaining sources continue
rate_limit_exceededSource rate limit hitAutomatic backoff and retry
no_passive_dataNo data found for target in passive sourcesTarget may have minimal internet presence
correlation_timeoutEntity resolution exceeded timeoutReduce number of targets or increase --timeout
historical_archive_gapWayback Machine has no data for periodGap noted in timeline; other sources may fill it

Advanced Usage

Attack Surface Enumeration

Use ghost recon for comprehensive passive attack surface enumeration.

# Full attack surface discovery
/ghost-recon example.com --depth=full --mode=infrastructure --format=json

# Enumerate subdomains passively
/ghost-recon example.com --mode=certificates --extract=subdomains

# Map IP ranges
/ghost-recon example.com --mode=infrastructure --extract=ip-ranges

Change Detection

Monitor targets for infrastructure changes over time.

# Set up baseline
/ghost-recon example.com --format=json --output=baseline.json

# Compare against baseline later
/ghost-recon example.com --compare=baseline.json

Multi-Target Correlation

Investigate relationships between multiple organizations or domains.

# Correlate infrastructure overlap between two organizations
/ghost-recon company-a.com company-b.com --correlate --mode=infrastructure

# Find shared hosting, shared certificates, or DNS overlap
/ghost-recon target1.com target2.com target3.com --correlate --extract=shared-assets

Integration with Perimeter EASM

Feed ghost recon findings directly into the Prismatic Perimeter for ongoing monitoring.

/ghost-recon example.com --format=json | /perimeter import --source=ghost-recon

Doctrine Compliance

All commands operate under the NO MERCY, NO DOUBTS doctrine:

  • NO MERCY: Zero tolerance for incomplete execution or quality violations. All available passive sources are queried; the investigation is thorough and complete within the zero-footprint constraint.
  • NO DOUBTS: Full investigation before action, evidence-based results. Every finding includes source attribution, confidence scoring, and temporal context per NABLA axioms.
  • /investigate - Launch comprehensive OSINT investigation across 121+ sources
  • /email-osint - Email-based OSINT gathering with breach correlation and social profiling
  • /google-hacking - Google dorking and advanced search intelligence extraction
  • /intel-export - Generate comprehensive intelligence packages for external LLM analysis
  • /git-forensics - Cynical git history analysis distinguishing signal from noise
  • /perimeter - External Attack Surface Management dashboard

Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL