What is Port scanning?
Checking which network ports on a system accept connections, to learn which services it offers. Admins use it for inventory; testers use it first in an authorised test; defenders see it as many probes from one address.
Every network service listens on a numbered port, such as 22 for SSH or 443 for HTTPS. A port scanner such as Nmap tries many ports on one or more hosts and reports which respond, often also identifying the program and version behind each. Administrators scan their own networks to keep an inventory and spot services that should not be there. Testers do it at the start of an authorised engagement to map the scope. Defenders recognise it in firewall and intrusion detection logs as one source touching many ports or hosts in a short time. Scanning networks you do not own or have no permission to test can cause trouble with the network's owner, so get written authorisation first.
Source: NIST CSRC Glossary (NIST SP 800-82r3).
Practice it in a lab
Free, hands-on labs that teach Port scanning.
- Detect a port scan from firewall logs and tune the threshold (intermediate, ~60 min)
- Discover what's running with Nmap — on your OWN lab machine (beginner, ~40 min)
- Scan your own home network with Nmap (beginner, ~50 min)
- Access an unauthenticated VNC server in your own lab, then lock it down (intermediate, ~45 min)
- Baseline your network traffic with ntopng — then catch the anomaly you plant yourself (intermediate, ~60 min)
- Flag out-of-distribution alerts with ensemble disagreement, and measure what softmax confidence misses (advanced, ~75 min)
Related terms
Related
- Detect a port scan from firewall logs and tune the threshold
- Discover what's running with Nmap — on your OWN lab machine
- Scan your own home network with Nmap
- Access an unauthenticated VNC server in your own lab, then lock it down
- Baseline your network traffic with ntopng — then catch the anomaly you plant yourself
- Flag out-of-distribution alerts with ensemble disagreement, and measure what softmax confidence misses
- Firewall
- Internet Protocol
- Cybersecurity glossary
- Free cyber labs