Skip to content
sm0k3net edited this page Nov 28, 2026 · 4 revisions

OSINT

dsh-redteam ships 39 OSINT connectors that turn a domain, IP, CVE, email, username or organization into normalized facts in the engagement graph. Passive enrichment and a standalone report turn those lookups into a report-ready intelligence model. Keyless services work without a key, keyed services return an explicit "not configured" result instead of guessing, and credential values never reach the page, tool output, the audit trail or a report.

The catalog

Nine categories: exposure (5), recon (8), threat intelligence (6), vulnerabilities (2), identity (4), breach/leak (9), exploits (1), dark web (3) and reference (1). "Required" refuses without a key; "optional" works keyless at a lower rate and uses the key when present.

Id Category Answers Key
shodan exposure Ports, banners and services for an IP or domain SHODAN_API_KEY — required
censys exposure Hosts and certificates for an IP or domain CENSYS_API_ID + CENSYS_API_SECRET — required
fofa exposure Internet assets matching a product or host query FOFA_EMAIL + FOFA_API_KEY — required
zoomeye exposure Internet asset search for a host or service ZOOMEYE_API_KEY — required
shodan-internetdb exposure Keyless Shodan host summary keyless
crtsh recon Subdomains in certificate transparency logs keyless
ipinfo recon Geolocation, ASN and organization for an IP IPINFO_TOKEN — optional
securitytrails recon DNS history and subdomains for a domain SECURITYTRAILS_API_KEY — required
urlscan recon Public URL scans, DOM and request metadata URLSCAN_API_KEY — optional
wayback recon Historical URLs from the Wayback CDX index keyless
github-code recon Public GitHub code search GITHUB_TOKEN — required
rdap recon Registration data for a domain, IP or ASN keyless
team-cymru recon Origin AS and announced prefix (DNS TXT) keyless
virustotal threat intelligence Reputation and detection ratio for a domain or IP VT_API_KEY — required
abuseipdb threat intelligence Abuse reports and confidence for an IP ABUSEIPDB_API_KEY — required
otx threat intelligence Threat-intel pulses for an IP, domain, URL or hash OTX_API_KEY — optional
greynoise threat intelligence Scanner or internet background noise GREYNOISE_API_KEY — optional
spamhaus threat intelligence DNSBL reputation for an IP or domain keyless (DNS)
urlhaus threat intelligence Whether a URL or host is in the URLhaus corpus keyless
nvd vulnerabilities CVE details, CVSS and affected products NVD_API_KEY — optional
github-advisories vulnerabilities GHSA and CVE advisories GITHUB_TOKEN — optional
exploitdb exploits Local searchsploit records for a product or CVE keyless
hunter identity Email addresses and contacts for a domain HUNTER_API_KEY — required
emailrep identity Reputation and profile signals for an email EMAILREP_API_KEY — optional
gravatar identity Public profile presence for an email hash keyless
sherlock identity Username presence across public sites keyless
hibp breach Whether an email appears in known breaches HIBP_API_KEY — required
pwnedpasswords breach Password in HIBP's Pwned Passwords corpus keyless (k-anonymity)
hibp-domain breach Accounts and breaches associated with a domain HIBP_API_KEY — required
dehashed breach Breach and credential-leak records for an email or domain DEHASHED_API_KEY — required
leakcheck breach Breach exposure for an email, domain or username LEAKCHECK_API_KEY — optional
intelx breach Leak and document search across Intelligence X INTELX_API_KEY — required
snusbase breach Breach database search for an identifier SNUSBASE_API_KEY — required
leakix breach Exposed services and leak indexes LEAKIX_API_KEY — optional
breachdirectory breach Breach metadata for an email or username BREACHDIRECTORY_API_KEY — required
ahmia dark web Clearnet index of .onion addresses (never fetches them) keyless
tor dark web Local Tor SOCKS proxy availability (loopback only) keyless
onion dark web One explicit .onion fetch through the local Tor proxy keyless (opt-in)
osint-framework reference Offline reference to the OSINT Framework catalog keyless

A missing DNS answer means "not observed here", never "clean": Spamhaus via a public resolver often answers 127.255.255.x, and URLhaus "no result" only means "not in URLhaus". ExploitDB shells out to searchsploit in the Kali container and returns tool-missing when either is absent.

Passive enrichment

pentest_osint_enrich combines the connectors into one model for a single in-scope IP, CIDR, domain or hostname:

  • IP / CIDR — ASN, announced prefix, country/city, ISP/organization, PTR, observed hostnames, related domains, third-party port observations, CVE ids and reputation (AbuseIPDB, VirusTotal, OTX, Spamhaus, URLhaus, GreyNoise, Shodan/InternetDB, Censys, ipinfo, RDAP). A CIDR is sampled (16 by default, 256 hard cap; network/broadcast excluded for prefixes ≤ /30) and marked sampled when larger; IPv6 blocks wider than /120 are refused with cidr-too-large.
  • Domain — A/AAAA (bounded to four), origin ASN, MX, NS, TXT/SPF, _dmarc (report addresses redacted), crt.sh subdomains, SecurityTrails samples, urlscan domains/IPs, OTX and VirusTotal reputation, RDAP registration dates.
  • Provenance — every value carries a per-source record (id, ok, at, error, detail), a fieldSources map, a heuristic confidence (score/label/basis) and limitations.
  • Safety — it never scans or connects to the target, refuses an out-of-scope target (out-of-scope) unless allowOutOfScope: true is explicit, and osint.enforceOsintScope: true makes a scope mandatory (scope-required). Exclusions cannot be overridden, and osint.enrichmentDelayMs (default 50) paces the providers.

Report and OSINT tab

pentest_osint_report renders stored facts and enrichment results as Markdown, HTML or JSON (lib/host/osint-report.js) with no network or DNS call and no evidence-vault read. Sections: scope and authorization, summary, IP/CIDR table, domains and hostnames, certificates, relationships, confidence basis, sources and timestamps, lookup history, observations and limitations. Output is deterministic, escaped per format, secret-scrubbed and never overwrites an existing file.

The OSINT tab is the read-only board; lookups start in the OSINT drawer. One row per IP, CIDR, domain or hostname carries identity fields (ASN, country, ISP/organization, reverse DNS), reputation and blacklist signals, sources and timestamps, graph connections and confidence. A kind filter switches between All, IP, CIDR, Domain and Hostname with counts. A field no source returned stays absent, and an empty engagement shows the next action. The OSINT report button in the tab writes the report.

Safety gates

  • osint.osintAllowlist — when non-empty, only matching domains, IPs and e-mail domains can be queried.
  • osint.approveLeakLookups — breach/leak connectors stay blocked until this is true; results keep metadata only (counts, source names, non-credential field names).
  • osint.leakBudgetPerHour / osint.darkwebBudgetPerHour — local hourly caps, 20 and 10 by default.
  • osint.enableOnionFetch — explicit onion fetch, off by default and loopback-only (TOR_SOCKS, default 127.0.0.1:9050 then 9055); ahmia only returns links.
  • Illegal query categories are refused locally with policy-blocked before any request; audit records use a salted subject hash (OSINT_HASH_SALT), not the raw query.

Key resolution

Order, first hit wins, evaluated for every lookup: the DSH credential service (ctx.credentials, used by the drawer when available), then the process environment, then $DSH_HOME/osint-keys.env (dotenv syntax, written 0600), then the plugin's keys object in the loader row.

describe() exposes only configured and the source (credentials, env, file, config), so the drawer shows where a key came from without showing the value. Saving writes through the credential service and falls back to the env file; clearing removes all layers. Values are validated as single-line strings of at most 8 KiB.

What a lookup returns

A lookup returns the connector id, the query, a normalized data object and up to 12 fact nodes. Each fact carries a short title, a bounded detail and a small JSON data map; the engine writes them into the graph and captures the result as evidence. Keys, headers and upstream auth failures are redacted before anything is stored.

Upstream Result
HTTP 401 unauthorized — the provider rejected the credential
HTTP 403 forbidden, or rate-limited when the remaining quota is zero
HTTP 429 rate-limited with retryAfter, remaining and resetAt when sent
HTTP 404 not-found — no data for that query, not a plugin failure
Non-JSON body bad-response
Network error one retry, then network-error
15 s without a response timeout

Quotas and data egress

The plugin reports the provider's quota and adds local bounds: a 15 s timeout per request with one retry on network errors, a 60 s cache per service|query (200 entries), a 1 MB response cap, a 512-character single-line query cap, and a usage counter and last error per service in the drawer. Provider quotas surface as metadata: Shodan plan credits, VirusTotal 4 req/min free, NVD 5 req/30 s without a key, AbuseIPDB 1000 checks/day, Hunter ~25 searches/month, GitHub 60 req/hour unauthenticated. Your keys, your quota: the plugin will not retry a 429.

  • RoE first. OSINT requires an accepted Rules of Engagement; the query is about a target and does not send traffic to it.
  • What leaves: the query and your credential go to the chosen provider over HTTPS. No engagement state, graph or other keys are attached.
  • What does not leave: keys never reach the browser, tool output, evidence text, audit records or reports, even from upstream error bodies.
  • Third-party terms. Breach and contact services return personal data; query only identifiers you are authorized to investigate and treat the facts as confidential client data.
  • No telemetry. The only outbound calls are the lookups you or the agent request.

Related

Clone this wiki locally