Common attacks and weaknesses
- monlist amplification DDoS on old servers.
- Time spoofing affecting certificates and Kerberos.
Time synchronization.
The client sends a request to port 123 and the NTP service answers. It travels in clear text: anyone on the path can read it.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| ntp | 123 | TCP, UDP | Network Time Protocol | RFC 5905 | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :123' # process listening on 123
sudo lsof -nP -i :123macOS
sudo lsof -nP -i :123
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 123 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 123 netstat -ano | findstr :123
From another machine
nmap -p 123 -sV <host> sudo nmap -sU -p 123 <host> nc -zv <host> 123
Block it in the firewall
sudo ufw deny 123/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 123" -Direction Inbound -LocalPort 123 -Protocol TCP -Action Block # Windows
Time synchronization.
Port 123 is registered for UDP and TCP. In practice the service mostly uses UDP.
It is rated 5/10 (moderate) when exposed to the Internet. monlist amplification DDoS on old servers. Disable monlist (noquery) and restrict queries.
On Linux run "ss -ltnup 'sport = :123'", on macOS "lsof -nP -i :123", and on Windows "netstat -ano | findstr :123" to see the local process. From another machine, "nmap -p 123 <host>" shows whether it is reachable.