Common attacks and weaknesses
- Packet loops with chargen (fraggle attacks).
Echo test service.
The client sends a request to port 7 and the Echo service answers. It travels in clear text: anyone on the path can read it.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| echo | 7 | TCP, UDP | Echo | - | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :7' # process listening on 7
sudo lsof -nP -i :7macOS
sudo lsof -nP -i :7
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 7 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 7 netstat -ano | findstr :7
From another machine
nmap -p 7 -sV <host> sudo nmap -sU -p 7 <host> nc -zv <host> 7
Block it in the firewall
sudo ufw deny 7/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 7" -Direction Inbound -LocalPort 7 -Protocol TCP -Action Block # Windows
Echo test service.
Port 7 is registered for TCP and UDP.
It is rated 4/10 (moderate) when exposed to the Internet. Packet loops with chargen (fraggle attacks). Disable it.
On Linux run "ss -ltnup 'sport = :7'", on macOS "lsof -nP -i :7", and on Windows "netstat -ano | findstr :7" to see the local process. From another machine, "nmap -p 7 <host>" shows whether it is reachable.