Port Scanning
Port scanning is probing a computer or network to find which ports are open and what services are running on them. Attackers use it to find ways in; defenders use it to find and close exposures first.
Also called: port scan, network scanning, Nmap scan, service discovery
What is port scanning?
Network services listen on numbered "ports": web servers on 443, remote desktop on 3389, file sharing on 445, and so on. A port scan sends requests to a range of ports to see which respond, and often which software and version is behind them. MITRE ATT&CK lists scanning as a standard reconnaissance step, both from the internet and from inside a network after an attacker gets in.
How attackers use port scanning
Criminals scan the entire internet continuously, looking for exposed remote desktop, VPNs, databases and devices with known flaws. When a new exploit is published, scanning for vulnerable systems often begins within hours. Inside a network, scans help attackers find servers and backups to target.
How defenders use it
Scanning your own systems shows you what attackers can see. CISA offers free vulnerability scanning of internet-facing systems to eligible organizations, including critical infrastructure, and many security providers include external scans in vulnerability scanning and attack surface management services.
How to reduce your exposure
- Close every port that doesn't need to be open, and never expose remote desktop, databases or admin panels to the internet.
- Put remote access behind a VPN or ZTNA with MFA.
- Scan your own public IP addresses regularly and investigate anything new.
- Only scan systems you own or have permission to test.
Related terms
Sources
- Active Scanning (T1595) (MITRE ATT&CK)
- Network Service Discovery (T1046) (MITRE ATT&CK)
- Cyber Hygiene Services (CISA)
Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.
