How praetorian-inc/pius works
Pius is an organization-focused attack-surface discovery and OSINT tool. A user supplies an organization and optional domain, ASN, IP, or CIDR hints; the runner selects plugins, runs independent discovery and then handle-to-CIDR phases, and returns domain and network findings in the chosen format. Domain and CIDR discovery cover distinct source families, while WHOIS resolution and confidence scoring support enrichment. The README documents additional plugin capabilities beyond the sampled source excerpts; those branches are represented at subsystem level, with links limited to documented or excerpted relationships.
Main entry points: run.go Discovery runner · domains Passive domain sources · cache API and file cache · censys_org.go Censys discovery
Components 21
CLI and orchestration
- Command entry
cmd/pius/main.go - CLI commands
pkg/runner/root.go - Discovery runner
pkg/runner/run.go - Runner API
pkg/runner/api.go - Discovery findings
pkg/plugins/plugin.go - CLI results
pkg/runner/run.go
Domain discovery
- Passive domain sources
pkg/plugins/domains - Active DNS sources
pkg/plugins/domains - Domain enrichment
pkg/plugins/domains - Censys discovery
pkg/plugins/domains/censys_org.go - Wikidata lookup
pkg/plugins/domains/wikidata_lookup.go - Corporate registry
pkg/plugins/domains/gleif.go
Network discovery
- RIR handle discovery
pkg/plugins/cidrs/reverse_rir.go - RPSL CIDR resolution
pkg/plugins/cidrs/rpsl.go - Other CIDR sources
pkg/plugins/cidrs - IP WHOIS plugin
pkg/plugins/ips/whois.go
Enrichment and state
- WHOIS and RDAP
pkg/whois/tcp43.go - Confidence scoring
pkg/plugins/confidence.go - API and file cache
pkg/cache
Other components
- Recon operator
- OSINT services
Connections 26
- Recon operator → Command entry: starts
cmd/pius/main.go - Command entry → CLI commands: executes
cmd/pius/main.go - CLI commands → Discovery runner: runs discovery
pkg/runner/root.go - Recon operator → Runner API: configures
pkg/runner/api.go - Runner API → Discovery runner: runs pipeline
pkg/runner/api.go - Discovery runner → Passive domain sources: runs plugins
pkg/runner/run.go - Discovery runner → Active DNS sources: runs plugins
README.md - Discovery runner → RIR handle discovery: runs phase one
README.md - Discovery runner → RPSL CIDR resolution: runs phase two
README.md - Discovery runner → Domain enrichment: enriches phase three
README.md - Passive domain sources → OSINT services: queries OSINT
README.md - Active DNS sources → OSINT services: queries DNS
README.md - Domain enrichment → OSINT services: queries sources
README.md - Censys discovery → OSINT services: searches hosts
pkg/plugins/domains/censys_org.go - Corporate registry → OSINT services: queries registry
pkg/plugins/domains/gleif.go - Wikidata lookup → OSINT services: queries Wikidata
README.md - RIR handle discovery → OSINT services: queries registries
pkg/plugins/cidrs/reverse_rir.go - RPSL CIDR resolution → API and file cache: reads database
pkg/plugins/cidrs/rpsl.go - Other CIDR sources → OSINT services: queries RIRs and BGP
README.md - IP WHOIS plugin → WHOIS and RDAP: resolves network
pkg/plugins/ips/whois.go - Passive domain sources → API and file cache: caches responses
README.md - Censys discovery → API and file cache: uses cache
pkg/plugins/domains/censys_org.go - Discovery runner → Discovery findings: collects findings
pkg/runner/run.go - Discovery findings → Confidence scoring: scores results
README.md - Discovery runner → CLI results: formats results
pkg/runner/run.go - CLI results → Recon operator: returns results
README.md