Common attacks and weaknesses
- Default guest/guest account.
- Messages readable without TLS.
AMQP message broker (RabbitMQ); the management UI runs on 15672.
Producers publish messages into a queue on port 5672; consumers pick them up in order, at their own pace. Encryption is optional: traffic is only protected if TLS is enabled on the server and the client.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| amqp | 5672 | TCP, UDP, SCTP | AMQP | - | 2006-01 |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :5672' # process listening on 5672
sudo lsof -nP -i :5672macOS
sudo lsof -nP -i :5672
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5672 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5672 netstat -ano | findstr :5672
From another machine
nmap -p 5672 -sV <host> sudo nmap -sU -p 5672 <host> nc -zv <host> 5672
Block it in the firewall
sudo ufw deny 5672/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5672" -Direction Inbound -LocalPort 5672 -Protocol TCP -Action Block # Windows
AMQP message broker (RabbitMQ); the management UI runs on 15672.
Port 5672 is registered for TCP and UDP and SCTP. In practice the service mostly uses TCP.
It is rated 6/10 (high) when exposed to the Internet. Default guest/guest account. Delete the guest account, enable TLS (5671) and restrict clients.
On Linux run "ss -ltnup 'sport = :5672'", on macOS "lsof -nP -i :5672", and on Windows "netstat -ano | findstr :5672" to see the local process. From another machine, "nmap -p 5672 <host>" shows whether it is reachable.