CyberHunter
Local dataset, no network
// Messaging & queues

Port 5671: amqp protocol over TLS/SSL

Port 5671 is assigned by IANA to amqps (amqp protocol over TLS/SSL).

5671

How amqps works

Messaging & queues
producerconsumerqueueamqps producerconsumerqueueamqps

Producers publish messages into a queue on port 5671; consumers pick them up in order, at their own pace. Everything is encrypted: someone on the path only sees unreadable bytes.

Transport
TCP · UDP
Exposure risk
not rated depends on the program listening
Encryption
EncryptedTLS or built-in crypto
IANA status
Assigned1 registered service
Range
Registered (1024-49151)
01 Security

Is port 5671 dangerous?

We have no specific security note for port 5671. Its risk depends on the program actually listening on it. General advice for messaging & queues services:

  • Require authentication and TLS on brokers and coordination services.
  • Restrict clients by network and per-topic or per-queue permissions.
  • Remove default accounts.
02 Registry

IANA registry entries for port 5671

ServicePortTransportDescriptionReferenceUpdated
amqps 5671 TCP, UDP amqp protocol over TLS/SSL - 2008-03-26

// source: IANA service name and port number registry

03 Check it

Which program uses port 5671, and is it reachable?

Linux

sudo ss -ltnup 'sport = :5671'      # process listening on 5671
sudo lsof -nP -i :5671

macOS

sudo lsof -nP -i :5671

Windows (PowerShell)

Get-NetTCPConnection -LocalPort 5671 -State Listen | Select LocalAddress, OwningProcess
Get-NetUDPEndpoint -LocalPort 5671
netstat -ano | findstr :5671

From another machine

nmap -p 5671 -sV <host>
sudo nmap -sU -p 5671 <host>
nc -zv <host> 5671

Block it in the firewall

sudo ufw deny 5671/tcp                                         # Linux (ufw)
New-NetFirewallRule -DisplayName "Block 5671" -Direction Inbound -LocalPort 5671 -Protocol TCP -Action Block  # Windows
04 FAQ
What is port 5671 used for?

Port 5671 is assigned by IANA to amqps (amqp protocol over TLS/SSL).

Is port 5671 TCP or UDP?

Port 5671 is registered for TCP and UDP.

Is it safe to open port 5671?

It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Require authentication and TLS on brokers and coordination services.

How do I check if port 5671 is open?

On Linux run "ss -ltnup 'sport = :5671'", on macOS "lsof -nP -i :5671", and on Windows "netstat -ano | findstr :5671" to see the local process. From another machine, "nmap -p 5671 <host>" shows whether it is reachable.

05 Related

Latest vulnerability news

All news