A port scan is the digital equivalent of walking down a street trying every door handle. Every computer and server connected to the internet 'listens' on numbered channels called ports — 443 for web traffic, 25 for email, 3389 for remote desktop — and a port scan systematically knocks on each one to see which are open. By itself a port scan breaks nothing; it is reconnaissance. The scan tells an attacker which doors exist before they try to open one, which is why it shows up at the start of nearly every network attack — and why an unexplained scan against your systems is worth taking seriously.
TL;DR
- A port scan probes a system's numbered network ports to find which services are exposed to the internet.
- It is reconnaissance, not the attack itself: the open ports it finds become the entry points attackers try next.
- Scanning your own systems is a legitimate security practice; scanning someone else's is not.
- Every port open to the internet is attack surface — closing what you don't use is the cheapest hardening there is.
- For a small business, the fix is boring and decisive: firewall defaults, no exposed remote-desktop ports, patch everything that must stay exposed.
What a port scan means in plain terms
A service on a machine listens on a port the way a business has a phone extension: the web server takes calls on port 443, the mail server on 25, remote desktop on 3389. A port scan sends packets to a list of ports on a target address and reads the replies:
- Open — a service answered. The attacker knows what to attack next.
- Closed — nothing is listening, but the machine is reachable.
- Filtered — a firewall dropped the probe without answering. Best answer from a security point of view: the attacker learns little.
Common scan types include the quick TCP connect scan, the stealthier SYN (half-open) scan that avoids completing connections, and OS fingerprinting passes that guess the software behind the ports. Tooling is trivial — the free Nmap utility does all of it in one command — which is why every network on the internet is scanned constantly, mostly by automated crawlers looking for anything easy.
Why port scans matter to a small business
The scan itself steals nothing. What it produces is a map:
- Every open port is an invitation. Exposed remote desktop, an old FTP service, a forgotten admin panel — the scan finds them before the attacker tries credentials or exploits against them.
- Unpatched services are found by version fingerprinting. A scan that identifies 'this is running a 2019 VPN gateway' turns into an exploit attempt the same week.
- Scans precede brute force and ransomware. Ransomware crews find exposed remote-access ports by scanning, spray passwords against them, and walk in. The Australian Signals Directorate logged more than 84,700 cybercrime reports in 2024-25 — one every six minutes — with small business averaging $56,600 per self-reported incident (ASD Annual Cyber Threat Report 2024-2025); exposed remote-access services remain one of the most common first doors.
How a port scan fits into an attack chain
- Discovery. The attacker (or an automated crawler) sweeps IP ranges for live hosts.
- The port scan. Each live host gets probed for open ports and service versions.
- Targeting. Open remote-access ports, outdated software banners and admin panels are shortlisted.
- The attempt. Credential spraying, known-exploit replay or phishing against the staff who use the exposed service — and the chain from there is the same as every other intrusion.
- The cover. Well-run attackers keep port activity quiet; noisy scans are usually untargeted crawlers, but they find the same gaps the targeted ones use.
How to respond to and prevent port scanning
- Scan yourself first. A port scan against your own public IP from an outside network is the cheapest security audit available. Every open port should be something you can name, own and justify.
- Close every port you don't use. Firewall defaults should be deny-inbound; expose only the services the business actually runs.
- Never expose remote desktop or SSH directly to the internet. Put it behind a VPN or a zero-trust gateway — this single rule removes the most-abused entry point in small-business breaches.
- Patch what must stay exposed. A web or VPN service on the internet needs critical patches within 48 hours; version banners the scan fingerprints come from old software.
- Monitor for scan-style noise. Sudden scans from one source can precede targeted attacks; your hosting or MSP's monitoring should flag port sweeps.
- Answer rate-limiting on exposed services so credential spraying against a known-open port moves slowly.
The human layer around network exposure
Port scanning is fully technical — no staff member clicks anything — but the humans still decide the outcome in two ways. First, the shadow services: a developer spins up a test server with a public IP, an ex-employee's remote access is never removed, and the scan finds them. Second, the credential that follows the door: a port found open is attacked with passwords, and phishing-trained staff with MFA are what stop a sprayed credential from becoming an incident. Cyber Aware's security awareness training rehearses the credential and phishing lures that follow an exposed port, human risk reporting shows whether the team is reporting them, and a cyber security gap assessment checks whether firewall baselines, patching and MFA are actually evidenced before an auditor or an attacker asks.
FAQ
What is a port scan in simple terms? Knocking on every numbered 'door' (port) of a computer to see which ones are open, so an attacker knows which services to attack.
Are port scans illegal? Scanning systems you own or have written permission to test is standard security practice. Scanning systems you don't own is unauthorised access to a computer system in Australia and most jurisdictions, even though no data is stolen.
Why is my server getting scanned constantly? Automated crawlers sweep the entire IPv4 internet around the clock looking for easy targets — constant low-level scanning is background noise. What matters is what your systems answer with.
What should I do if a port scan hits my network? Nothing urgent if your firewall is deny-by-default and nothing unnecessary is exposed. If the scan found something — a service you forgot, an admin panel, remote desktop — close or re-secure it the same week.
What is the most dangerous port to leave open? Remote desktop (3389) and SSH (22) exposed directly to the internet. Ransomware crews scan specifically for them and spray credentials against them.
How do I check which of my ports are open? Run a scan against your own public IP from a machine outside your network — free tools like Nmap do this in one command, or your MSP can run it as part of a gap assessment.
One last thing
One 15-minute exercise closes the most common gap this article describes: scan your own public IP from outside your network, list every open port, and challenge anyone to justify each one. If remote desktop is among them and reachable from the internet, that is your first fix — behind a VPN before the end of the week.
Related guides
- What is a DoS attack? — the traffic-level cousin that also targets exposed services.
- What is ethical hacking? — port scanning done legitimately, with permission.
- What is a backdoor? — the hidden port the attacker opens after entry.
- Compare security awareness platforms — how awareness training stacks up for MSP resellers.