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.

Apr 09, 2025 - 10:35
Updated: 
106k

Penetration Testing in Cybersecurity & Ethical Hacking · Explainer

Cyber Threats, Scams & Online Safety, Networking, Ethical Hacking

Types of Scanning in Cybersecurity: Port, Network and Vulnerability

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?

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?

TypeQuestion it answersTypical outputExample tools
Network scanningWhich hosts are alive?List of live IP addresses, sometimes MAC vendors and OS guessesNmap host discovery, ARP scanners
Port scanningWhich ports and services are exposed?Port states, service names and versionsNmap, Masscan
Vulnerability scanningWhich known weaknesses exist?Findings with CVE IDs, severity and fixesOpenVAS, 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:

StateMeaning
openAn application is accepting connections
closedReachable, but nothing is listening
filteredA firewall or filter blocks the probe, so the state is unknown
unfilteredReachable, but open or closed cannot be determined
open|filteredNmap cannot tell open from filtered
closed|filteredNmap 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?

  1. Keep an asset inventory and scan all of it, including cloud and remote sites.
  2. Scan on a schedule and after major changes.
  3. Fix first what attackers already exploit, using the CISA KEV catalog alongside severity.
  4. Feed results into patch management as described in NIST SP 800-40 Rev. 4.
  5. 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

Network scanning finds live hosts, port scanning finds open ports and services, and vulnerability scanning finds known weaknesses in them.

Port scanning shows what is listening on a host. Vulnerability scanning goes further and checks that software for known flaws and misconfigurations.

NIST SP 800-115, the Technical Guide to Information Security Testing and Assessment, describes network discovery, port identification and vulnerability scanning.

A filtered port means a firewall or filter blocked the probe, so the scanner cannot tell whether a service is listening behind it.

It is a scan that logs in to the target with a dedicated account, so it can check installed patches and settings instead of guessing.

Most run scheduled scans, often weekly or monthly, plus scans after major changes. Exposed and critical systems usually deserve more frequent checks.

Yes. Firewalls, intrusion detection systems and flow logs can spot many connection attempts from one source across ports or addresses.

Scanning your own systems is fine. Scanning others without written permission can breach Sections 43 and 66 of the IT Act 2000.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.