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