Reconnaissance and exfiltration
Port scanning
Probing an address's ports to learn which services it exposes, and whether a firewall sits in the way.
Port scanning is probing an address's ports to learn which services it exposes (nmap). The answer to each probe
sorts the port: open (accepted), closed (a reset: reachable, nothing listening) or filtered (no answer:
something dropped it). UDP has no handshake, so a silent port reads as open|filtered. Silence is how a scan
reveals a firewall. A ping sweep (nmap -sn) first finds which hosts are up.
Read next
- Drop or reject Two ways to refuse a packet: silence, or an explicit answer.
- Port A 16-bit number that picks the program on a device: web 80 and 443, DNS 53, SSH 22.
- Firewall Rules deciding, packet by packet, what may reach or cross a device.
- Host discovery Finding which addresses on a network belong to a machine that is up, before looking at any port.
- Half-open scan Probing a TCP port with a SYN and hanging up after the reply, so no connection is ever made.
- NetFlow Flow records a router exports to a collector: who talked to whom, on which ports, how much and when.
- Honeypot A decoy host or service nobody legitimate uses, so any touch of it is a high-confidence alert.
- Kill chain and MITRE ATT&CK Models that break an intrusion into ordered stages, giving defenders shared language for what happened.
- Banner grabbing Reading the greeting a service sends on connect, to learn the real software and version behind a port.
- OS fingerprinting Guessing a machine's operating system from how its network code answers a few odd probes.
- Content discovery Finding the pages and files a web server holds but links to nowhere, by guessing common paths from a wordlist.
- Network discovery Mapping what a foothold can reach before acting on it — which segments, which hosts, which one box bridges to a network you cannot touch directly.
- Getting a foothold Turning reconnaissance of a target into the first shell on it, by picking the one opening worth attacking and using the move it calls for.