Shodan is a search engine for internet-connected services. Instead of indexing pages, it connects to ports across the address space, reads what answers, and stores the banner: the protocol greeting, the software and version, the certificate, sometimes the page title. The index is searchable, which makes it the standard way to ask which of your systems are visible from outside.
What it is and is not
It is a historical index. A result shows what the scanner observed at a point in time, which may be days old, so a port shown as closed may be open now and the reverse. It is not an exploit tool and it is not a vulnerability scanner; it reports banners and, for some entries, known vulnerabilities that other researchers have associated with them. Treat every record as an observation with a date, not as a live state.
Why defenders use it
Two reasons. First, it shows the internet-facing surface of an organisation as an outsider sees it, including forgotten subdomains, test systems and management interfaces that internal inventories miss. Second, the same data shows what attackers can find without touching the network, which is the correct starting point for prioritising what to close. Passive sources like this are also safer to use than active scanning when you are assessing third parties or your own ranges at scale.
Reading a record
Note the timestamp, the hostnames, the organisation and the banners. A banner identifies a service and sometimes a version, which is what makes it useful for patch decisions. Absence of a record proves nothing: the index may never have scanned that address, or scanned it long ago. A single open port is not a vulnerability; it is a question about whether that service should be reachable at all.
Rules for using it
Querying a public index is passive and does not touch the target. Actively probing a host you do not own is different and may be illegal. For your own ranges, passive data first, then authorised scanning with written scope. For anyone else, stay passive: reputation, DNS and certificate data are enough to describe exposure without sending a single packet.