Common attacks and weaknesses
- Spoofed or injected log messages.
- rsh trusts hosts without passwords.
UDP 514 is syslog; TCP 514 is the legacy rsh remote shell.
The monitoring server collects metrics, alerts or logs from devices over port 514. It travels in clear text: anyone on the path can read it.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| shell | 514 | TCP | cmd like exec, but automatic authentication is performed as for login server | - | - |
| syslog | 514 | UDP | RFC 5426 | 2020-06-01 |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :514' # process listening on 514
sudo lsof -nP -i :514macOS
sudo lsof -nP -i :514
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 514 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 514 netstat -ano | findstr :514
From another machine
nmap -p 514 -sV <host> sudo nmap -sU -p 514 <host> nc -zv <host> 514
Block it in the firewall
sudo ufw deny 514/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 514" -Direction Inbound -LocalPort 514 -Protocol TCP -Action Block # Windows
UDP 514 is syslog; TCP 514 is the legacy rsh remote shell.
Port 514 is registered for UDP and TCP.
It is rated 5/10 (moderate) when exposed to the Internet. Spoofed or injected log messages. Send logs over TLS (6514).
On Linux run "ss -ltnup 'sport = :514'", on macOS "lsof -nP -i :514", and on Windows "netstat -ano | findstr :514" to see the local process. From another machine, "nmap -p 514 <host>" shows whether it is reachable.