CyberHunter
Local dataset, no network
// Network services

Port 5058: Locus Discovery

Port 5058 is assigned by IANA to locus-disc (Locus Discovery).

5058

How locus-disc works

Network services
client:5058locus-discresponse client:5058locus-discresponse

The client sends a request to port 5058 and the locus-disc service answers.

Transport
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 5058 dangerous?

We have no specific security note for port 5058. Its risk depends on the program actually listening on it. General advice for network services services:

  • Answer only the networks that need the service (no open resolvers, relays or reflectors).
  • UDP services can be abused for DDoS amplification: rate-limit or block them at the edge.
  • Disable legacy test services that have no use in production.
02 Registry

IANA registry entries for port 5058

ServicePortTransportDescriptionReferenceUpdated
locus-disc 5058 UDP Locus Discovery - 2009-08-13
-5058-Reserved--

// source: IANA service name and port number registry

03 Check it

Which program uses port 5058, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :5058

Windows (PowerShell)

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

From another machine

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

Block it in the firewall

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

Port 5058 is assigned by IANA to locus-disc (Locus Discovery).

Is port 5058 TCP or UDP?

Port 5058 is registered for UDP.

Is it safe to open port 5058?

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. Answer only the networks that need the service (no open resolvers, relays or reflectors).

How do I check if port 5058 is open?

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

05 Related

Latest vulnerability news

All news