Common attacks and weaknesses
- Enumeration of RPC services.
- DDoS amplification over UDP.
ONC RPC port mapper, used by NFS.
The client sends a request to port 111 and the rpcbind service answers. It travels in clear text: anyone on the path can read it.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| sunrpc | 111 | TCP, UDP | SUN Remote Procedure Call | - | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :111' # process listening on 111
sudo lsof -nP -i :111macOS
sudo lsof -nP -i :111
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 111 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 111 netstat -ano | findstr :111
From another machine
nmap -p 111 -sV <host> sudo nmap -sU -p 111 <host> nc -zv <host> 111
Block it in the firewall
sudo ufw deny 111/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 111" -Direction Inbound -LocalPort 111 -Protocol TCP -Action Block # Windows
ONC RPC port mapper, used by NFS.
Port 111 is registered for TCP and UDP.
It is rated 6/10 (high) when exposed to the Internet. Enumeration of RPC services. Block at the edge; disable when NFS is not used.
On Linux run "ss -ltnup 'sport = :111'", on macOS "lsof -nP -i :111", and on Windows "netstat -ano | findstr :111" to see the local process. From another machine, "nmap -p 111 <host>" shows whether it is reachable.