Types of Scanning in Cybersecurity: Port, Network and Vulnerability
Scanning in cybersecurity means actively probing systems to learn what is on a network and where it is weak. The three main types are network scanning, which finds live hosts and maps the network; port scanning, which finds open, closed and filtered TCP and UDP ports and the services behind them; and vulnerability scanning, which checks those services and software for known flaws and misconfigurations.
Topic: Penetration Testing in Cybersecurity & Ethical Hacking · Explainer
Also covers: Cyber Threats, Scams & Online Safety, Networking, Ethical Hacking
Quick answer: Scanning in cybersecurity means actively probing systems to learn what is on a network and where it is weak. The three main types are network scanning, which finds live hosts and maps the network; port scanning, which finds open, closed and filtered TCP and UDP ports and the services behind them; and vulnerability scanning, which checks those services and software for known flaws and misconfigurations. NIST SP 800-115 groups these as target identification and analysis techniques, alongside wireless scanning. Security teams scan their own networks regularly to fix issues first. Scanning anyone else needs written permission.
Key takeaways
- Network scanning answers what is alive; port scanning answers what is listening; vulnerability scanning answers what is weak.
- Each step narrows the next, so they usually run in that order.
- Authenticated vulnerability scans see far more than unauthenticated ones.
- Prioritise findings by exploitability, such as CISA KEV listing, not by count.
- Scanning is active and logged; get written authorisation before you start.
Table of Contents
- What Is Scanning in Cybersecurity?
- How Do the Three Types of Scanning Compare?
- What Is Network Scanning?
- What Is Port Scanning?
- What Is Vulnerability Scanning?
- How Should Organisations Run a Scanning Programme?
- How Do Defenders Detect Unwanted Scans?
- References
What Is Scanning in Cybersecurity?
Scanning follows reconnaissance. Reconnaissance gathers public information; scanning sends packets to targets and studies the replies. NIST SP 800-115, the technical guide to security testing, lists network discovery, network port and service identification, vulnerability scanning and wireless scanning as its target identification and analysis techniques. Attackers use the same methods, which MITRE ATT&CK records as Active Scanning and Network Service Discovery. The difference is permission and purpose.
How Do the Three Types of Scanning Compare?
| Type | Question it answers | Typical output | Example tools |
|---|---|---|---|
| Network scanning | Which hosts are alive? | List of live IP addresses, sometimes MAC vendors and OS guesses | Nmap host discovery, ARP scanners |
| Port scanning | Which ports and services are exposed? | Port states, service names and versions | Nmap, Masscan |
| Vulnerability scanning | Which known weaknesses exist? | Findings with CVE IDs, severity and fixes | OpenVAS, Nessus, Qualys, Nexpose |
What Is Network Scanning?
Network scanning, also called host discovery, maps which addresses in a range respond. On a local segment ARP requests work best; across routers, scanners use ICMP and TCP or UDP probes. The Nmap host discovery guide explains which probes it sends by default. Firewalls often drop some probes, so a host that looks down may simply be filtered. Our Nmap host discovery guide shows how to find which probe a firewalled host answers.
# Host discovery only, on a network you are authorised to scan
nmap -sn 192.168.1.0/24
What Is Port Scanning?
Port scanning checks which of a host's 65,536 TCP and UDP ports accept traffic. Nmap reports six port states:
| State | Meaning |
|---|---|
| open | An application is accepting connections |
| closed | Reachable, but nothing is listening |
| filtered | A firewall or filter blocks the probe, so the state is unknown |
| unfiltered | Reachable, but open or closed cannot be determined |
| open|filtered | Nmap cannot tell open from filtered |
| closed|filtered | Nmap cannot tell closed from filtered |
Common techniques are the TCP SYN scan, the full TCP connect scan and the slower UDP scan. Service version detection then identifies what software is listening, which feeds the vulnerability scan.
# Top 1000 TCP ports with service versions, authorised host only
nmap -sV 192.168.1.20
What Is Vulnerability Scanning?
A vulnerability scanner compares detected software, versions and settings against a database of known issues, then reports each finding with a CVE ID, severity score and remediation. There are two modes:
- Unauthenticated: sees only what an outsider sees, such as banners and exposed services.
- Authenticated: logs in with a scan account and checks installed patches and configuration, finding far more.
Web applications need their own testing, as set out in the OWASP Web Security Testing Guide. Scanners also produce false positives, so verify important findings before reporting them. Compare products in our list of vulnerability scanner tools.
How Should Organisations Run a Scanning Programme?
- Keep an asset inventory and scan all of it, including cloud and remote sites.
- Scan on a schedule and after major changes.
- Fix first what attackers already exploit, using the CISA KEV catalog alongside severity.
- Feed results into patch management as described in NIST SP 800-40 Rev. 4.
- Rescan to confirm fixes and track trends over time.
Agree scope in writing for any test of systems you do not own. Unauthorised scanning can breach Sections 43 and 66 of India's IT Act 2000.
How Do Defenders Detect Unwanted Scans?
Scans leave traces: many connection attempts across ports from one source, sequential probes across an address range, and odd TCP flag combinations. Firewalls, intrusion detection systems and flow logs can alert on these patterns. Keep those logs; CERT-In requires 180-day log retention and reporting of targeted scanning of critical systems within 6 hours. WebAsha offers vulnerability assessment and penetration testing training with legal labs.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0