npx skills add ...
npx skills add useosint/skills --skill find-exposed-servers
Find internet-exposed hosts, ports, services and devices using third-party internet-scan data instead of touching the target. Covers Shodan and Censys query syntax, service banners, favicon-hash and TLS-certificate pivots, origin-IP discovery behind Cloudflare or a CDN, and exposed databases, dashboards, cameras and ICS devices. Use when asked what a company has exposed to the internet, to check open ports on an IP or netblock, or to write a Shodan filter query. Applies to external attack-surface management, third-party and vendor security review, M&A technical diligence, and pre-engagement reconnaissance. Reference at useosint.com/skills/find-exposed-servers.
npx skills add useosint/skills --skill find-exposed-servers
Internet-wide scanners already scanned your target. Querying their results is passive — you never send a packet to the target, so nothing appears in their logs and nothing is attributable to you. The cost is that every result is a claim about a moment in the past, and the beginner's mistake is reading a banner as the current state of a live host.
| You hold | Reach for | Why |
|---|---|---|
| An IP | Shodan host lookup, or the free InternetDB endpoint | One request gives ports, hostnames, and CPEs |
| A netblock or ASN | Shodan net:/asn: with port faceting | Shows the shape of the estate before you look at individual hosts |
| A hostname behind a CDN | Censys certificate-to-host joins | Censys links certs to observed hosts, which is how you find origins |
| A cert or a distinctive page | Favicon hash and cert subject/serial searches | Finds sibling infrastructure the DNS never links |
| An org name | org: on Shodan, autonomous_system on Censys | Both are attribution by network registration, so both inherit its errors |
| Coverage doubt | A second platform with different sensors | The platforms disagree constantly; disagreement is signal |
Shodan has the broadest device and protocol coverage and the friendliest query language. Censys has more structured host records, better certificate joins, and a stricter query syntax. FOFA, ZoomEye, Netlas, Onyphe, BinaryEdge and LeakIX see different slices of the internet and are worth a pass when the first two come up empty — non-Western scanners in particular index hosts the big two miss.
Free and unauthenticated, for a single IP:
Filters worth knowing: net:, port:, hostname:, asn:, org:, isp:,
country:, city:, product:, version:, os:, http.title:, http.html:,
http.status:, http.favicon.hash:, ssl.cert.subject.CN:,
ssl.cert.issuer.CN:, ssl.cert.expired:, ssl.jarm:, ssl:, tag:, vuln:,
has_screenshot:, and before:/after: for scan dates. vuln: and some others
require a paid tier.
Censys uses a structured field path syntax over a host document — services.port,
services.service_name, services.http.response.html_title,
services.tls.certificates.leaf_data.subject_dn, dns.names,
autonomous_system.asn, location.country — combined with and/or/not. Its
API v2 exposes https://search.censys.io/api/v2/hosts/search?q=… and
https://search.censys.io/api/v2/hosts/{ip} with API-ID/secret basic auth.
Side-by-side query equivalents across platforms are in reference/query-cookbook.md.
A result is a banner plus metadata, not a verdict. Interpretation of specific service banners — what a version string implies, which fields are self-reported and which are observed — is in reference/banner-interpretation.md. The general discipline:
This is what makes scan platforms more than a port list.
Favicon hash. Shodan indexes a hash of the site's favicon (a MurmurHash3 of
the base64-encoded icon bytes; FOFA's icon_hash uses the same construction).
Because a favicon is usually shipped with an application rather than configured
per host, searching the hash finds every host running the same appliance,
framework, or the target's own branded portals — across unrelated IPs, ASNs and
domains. It is the single best way to find an organization's scattered instances
of one product.
TLS certificate. Search on the certificate's subject CN, its subject
organization, or its serial number, and you find every host serving that
certificate. A certificate serial is unique per issuer, so a serial match is a
near-exact identity. Shodan also exposes a certificate fingerprint filter; check
its documentation for which hash it expects rather than guessing. Combine with
find-hidden-subdomains — CT gives you the cert, scan data gives you every host
presenting it.
JARM and TLS stack fingerprints. JARM hashes how a server responds to a set of TLS handshakes, so it fingerprints the TLS stack rather than the certificate. It clusters appliances, load balancers and command-and-control frameworks. It is not unique to an organization, so treat it as a filter that narrows a search, not as an identifier.
Response-body fingerprints. A unique string from the target's pages — a
tracking ID, an unusual copyright line, a custom header, a build hash — searched
via http.html: finds other hosts serving the same application, including
staging copies and the origin behind a CDN.
When a hostname resolves to Cloudflare or another proxy, the origin still exists and is often reachable by IP. Passive routes to it, in order of reliability:
who-owns-this-domain).
Origins move less often than people assume.ftp, cpanel,
direct, origin, and non-HTTP ports on the same netblock.ip4: mechanisms — organizations authorize their own sending host,
which is sometimes the web origin.A candidate origin is a hypothesis. Confirming it by sending a request with the
target's Host header is an active step against the target: it needs
authorization. Note also that a properly configured origin rejects non-CDN
traffic, so failure to confirm does not disprove the candidate.
https://api.shodan.io/labs/honeyscore/{ip}?key= — treat it as a
hint, not a ruling.org: and isp: are network registration, not ownership. On cloud
netblocks they name the cloud provider, and on resold space they name a
reseller. Attribution by org: alone is how people end up reporting a
neighbour's exposed database as the target's.org:/isp:, a shared-hosting
IP, a single stale record, a CVE tag with no other evidence, or a host with
honeypot characteristics.Never upgrade a grade by connecting to the service. Record the platform, the query, the scan timestamp and the record identifier for every finding.
Target: example-fintech.test, authorized external attack-surface review,
passive collection only.
The apex resolves into Cloudflare, so port scanning the resolved IP would only
have described Cloudflare. Instead, take the cert subject CN from
find-hidden-subdomains and search scan data for hosts serving it. Three hits:
two Cloudflare addresses, and one in a European hosting provider's ASN with 443
and 22 open. That third host is the likely origin.
Its favicon hash, searched back, returns six more hosts. Four are the target's regional portals. Two are unrelated companies — the favicon is a stock icon shipped with the framework, not the target's own. That is the dead end, and the lesson: check whether a favicon is actually distinctive before treating a hash match as attribution.
net: on the origin's /29 shows a second host with 3306 open and a MySQL banner,
scanned four months ago. Old, so it may be gone, but it is reportable as observed.
The netblock's RIR record shows a reassignment to the target's legal name, which
is what turns "an IP with the right cert" into attribution.
Stop there. Do not connect to 3306, do not send a Host header to the origin.
Report both, with dates and queries, and hand the reassigned netblock back to
who-owns-this-domain.
| New selector | Goes to |
|---|---|
| Certificate subjects and SANs on discovered hosts | find-hidden-subdomains |
| Netblocks, ASNs, reverse-DNS hostnames | who-owns-this-domain |
| Organization names from cert subjects and RIR records | x-ray-a-company, who-really-owns-it |
| Exposed repo, CI or registry services | secrets-in-git-history |
| Historical content on a discovered host | read-deleted-pages |
| Indexed paths on a discovered service | google-like-a-spy |
| A host/cert/ASN cluster to lay out | graph-the-network |
Querying a scan platform is lawful passive research. Acting on the result is where the line is: connecting to an exposed database, opening an admin panel, viewing an exposed camera feed, or fetching a file from an open share can constitute unauthorized access under computer-misuse law in most jurisdictions, and the absence of a password is not a defence. A finding authorizes you to report — to the abuse contact from the netblock's RIR record, or the relevant CERT — and nothing else. Scan-platform terms also restrict redistribution of their data, so quote findings in a report rather than republishing the dataset. Screenshots and banners containing personal data fall under the minimization rules in ../../ETHICS.md.
curl -s https://internetdb.shodan.io/203.0.113.10 | jq . # ports, hostnames, cpes, vulns