CyberHunter
// Monitoring & logging

Port 5987: WBEM RMI

Port 5987 is assigned by IANA to wbem-rmi (WBEM RMI).

5987

How wbem-rmi works

Monitoring & logging
monitoringdevicewbem-rmi monitoringdevicewbem-rmi

The monitoring server collects metrics, alerts or logs from devices over port 5987.

Transport
TCP · UDP
Exposure risk
not rated depends on the program listening
Encryption
Unknownnot stated by the registry
IANA status
Assigned1 registered service
Range
Registered (1024-49151)
01 Security

Is port 5987 dangerous?

We have no specific security note for port 5987. Its risk depends on the program actually listening on it. General advice for monitoring & logging services:

  • Restrict management and monitoring protocols to the monitoring network.
  • Replace community strings and default credentials.
  • Send logs over TLS.
02 Registry

IANA registry entries for port 5987

ServicePortTransportDescriptionReferenceUpdated
wbem-rmi 5987 TCP, UDP WBEM RMI - -

// source: IANA service name and port number registry

03 Check it

Which program uses port 5987, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :5987

Windows (PowerShell)

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

From another machine

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

Block it in the firewall

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

Port 5987 is assigned by IANA to wbem-rmi (WBEM RMI).

Is port 5987 TCP or UDP?

Port 5987 is registered for TCP and UDP.

Is it safe to open port 5987?

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. Restrict management and monitoring protocols to the monitoring network.

How do I check if port 5987 is open?

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

05 Related