Common attacks and weaknesses
- Information leaks about devices; amplification when reachable from the Internet.
Local service discovery (Bonjour, Avahi).
A device asks the whole local network a question and the device that matches answers. It travels in clear text: anyone on the path can read it.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| mdns | 5353 | TCP, UDP | Multicast DNS | RFC 6762 | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :5353' # process listening on 5353
sudo lsof -nP -i :5353macOS
sudo lsof -nP -i :5353
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5353 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5353 netstat -ano | findstr :5353
From another machine
nmap -p 5353 -sV <host> sudo nmap -sU -p 5353 <host> nc -zv <host> 5353
Block it in the firewall
sudo ufw deny 5353/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5353" -Direction Inbound -LocalPort 5353 -Protocol TCP -Action Block # Windows
Local service discovery (Bonjour, Avahi).
Port 5353 is registered for UDP and TCP. In practice the service mostly uses UDP.
It is rated 4/10 (moderate) when exposed to the Internet. Information leaks about devices; amplification when reachable from the Internet. Block from outside the local network.
On Linux run "ss -ltnup 'sport = :5353'", on macOS "lsof -nP -i :5353", and on Windows "netstat -ano | findstr :5353" to see the local process. From another machine, "nmap -p 5353 <host>" shows whether it is reachable.