What Is Network Scanning? Types, Detection and Defence Explained

Network scanning is the process of sending probes to a range of addresses to find live hosts, open ports, running services and known weaknesses. It has four common types: host discovery, port scanning, service and version detection, and vulnerability scanning. Attackers scan to find targets, while defenders and authorised testers scan their own networks to find exposures before attackers do.

Jun 18, 2025 - 10:26
Updated: 
104.2k

Network Security in Cybersecurity & Ethical Hacking · Tools

What Is Network Scanning? Types, Detection and Defence Explained

Quick answer: Network scanning is the process of sending probes to a range of addresses to find live hosts, open ports, running services and known weaknesses. It has four common types: host discovery, port scanning, service and version detection, and vulnerability scanning. Attackers scan to find targets, while defenders and authorised testers scan their own networks to find exposures before attackers do. Scanning without written permission can breach Sections 43 and 66 of the IT Act 2000. Defenders detect scans through firewall, IDS and Zeek logs, and reduce what scans can find through attack surface management, closing unused services, segmentation and regular authorised scanning.

Key takeaways

  • Scanning finds hosts, ports, services and weaknesses; it is the bridge between reconnaissance and testing.
  • Internet-facing systems are scanned constantly by many parties.
  • Your own authorised scanning is one of the cheapest controls you can run.
  • Scans are noisy and easy to log, but only if logs are kept and reviewed.
  • Written permission is the line between testing and an offence.

Table of Contents

What Is Network Scanning?

Scanning is structured questioning of a network. A scanner sends packets and interprets the replies, or the lack of them. NIST SP 800-115 places it under target identification and analysis in security testing. MITRE ATT&CK describes the attacker version as Active Scanning (T1595) from outside and Network Service Discovery (T1046) from inside.

What Are the Main Types of Network Scanning?

TypeQuestion it answersDefender value
Host discoveryWhich addresses are live?Asset inventory, unknown devices
Port scanningWhich ports accept connections?Find services that should not be exposed
Service and version detectionWhat software is listening?Find outdated or unapproved software
Vulnerability scanningWhich known flaws are present?Prioritise patching

Popular tools include Nmap, Zenmap, Angry IP Scanner and commercial vulnerability scanners. The tool matters less than having permission, a schedule and a process to act on the results.

Who Scans Networks and Why?

  • Attackers look for exposed remote access, unpatched services and misconfigured devices.
  • Researchers and search engines for devices index the internet continuously.
  • Security teams scan their own estate to keep an accurate inventory.
  • Penetration testers scan within a signed scope.
  • Government services such as CISA's Cyber Hygiene scanning offer scanning to eligible US organisations.

Scanning your own systems, or systems you are authorised in writing to test, is lawful. Scanning networks you do not control can be treated as unauthorised access under Sections 43 and 66 of the IT Act, 2000, and heavy scans can disrupt services. A good authorisation letter names the IP ranges, dates, scan types and emergency contacts.

How Do Defenders Detect Scanning?

Data sourceWhat a scan looks like
Firewall logsMany denied connections from one source to many ports or hosts
IDS such as Snort or SuricataScan and sweep signatures, invalid TCP flag alerts
Zeek conn.logShort, rejected or half-open flows
Windows Firewall auditingEvent 5157 blocked connections on servers
Flow dataHigh fan-out from a single address

In India, the CERT-In directions of April 2022 require organisations to keep ICT system logs for 180 days within India and list targeted scanning of critical networks among reportable incidents, to be reported within six hours.

How Does Attack Surface Management Reduce Exposure?

Attack surface management means continuously finding and reducing what is reachable. CISA's BOD 23-01 asks US federal agencies to run automated asset discovery every 7 days and vulnerability enumeration every 14 days, a useful benchmark for others. CIS Control 7 sets out continuous vulnerability management. In practice: close unused ports, put admin interfaces behind VPN or zero trust access, segment networks and fix findings by risk.

How Should a Small Organisation Start?

List your public IP addresses and domains, get written approval, run an external scan and a basic internal scan, then fix the most exposed items first. Repeat on a schedule and compare results. For protocol detail, read our guide to host discovery techniques and the overview of port, network and vulnerability scanning. Hands-on, authorised practice is part of our ethical hacking training.

How Do Defenders Detect Scanning?

SignalSource
Many connection attempts to different portsFirewall logs
Sequential host probingIDS such as Suricata or Zeek
Unusual ICMP volumeNetwork monitoring
Scans from internal hostsPossible compromised device

NIST SP 800-94 explains intrusion detection, and CISA, Event logging best practices lists the logs to collect.

References

Frequently Asked Questions

It is sending probes to a range of addresses to find live hosts, open ports, running services and known weaknesses on a network.

The common types are host discovery, port scanning, service and version detection, and vulnerability scanning, each answering a different question.

It is legal on your own systems or with written permission, but unauthorised scanning can breach Sections 43 and 66 of the IT Act.

Regular authorised scanning finds exposed services, unknown devices and missing patches before attackers find and use them.

Firewall, IDS, Zeek and flow logs show many short or denied connections from one source to many ports or hosts.

CERT-In’s April 2022 directions list targeted scanning of critical networks and systems as reportable within six hours.

It is continuously discovering what systems and services are reachable, especially from the internet, and reducing that exposure.

CISA asks US federal agencies to discover assets weekly and enumerate vulnerabilities every 14 days, which is a useful benchmark.

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.