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.
Topic: Network Security in Cybersecurity & Ethical Hacking · Tools
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?
- What Are the Main Types of Network Scanning?
- Who Scans Networks and Why?
- When Is Network Scanning Legal?
- How Do Defenders Detect Scanning?
- How Does Attack Surface Management Reduce Exposure?
- How Should a Small Organisation Start?
- How Do Defenders Detect Scanning?
- References
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?
| Type | Question it answers | Defender value |
|---|---|---|
| Host discovery | Which addresses are live? | Asset inventory, unknown devices |
| Port scanning | Which ports accept connections? | Find services that should not be exposed |
| Service and version detection | What software is listening? | Find outdated or unapproved software |
| Vulnerability scanning | Which 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.
When Is Network Scanning Legal?
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 source | What a scan looks like |
|---|---|
| Firewall logs | Many denied connections from one source to many ports or hosts |
| IDS such as Snort or Suricata | Scan and sweep signatures, invalid TCP flag alerts |
| Zeek conn.log | Short, rejected or half-open flows |
| Windows Firewall auditing | Event 5157 blocked connections on servers |
| Flow data | High 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?
| Signal | Source |
|---|---|
| Many connection attempts to different ports | Firewall logs |
| Sequential host probing | IDS such as Suricata or Zeek |
| Unusual ICMP volume | Network monitoring |
| Scans from internal hosts | Possible compromised device |
NIST SP 800-94 explains intrusion detection, and CISA, Event logging best practices lists the logs to collect.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0