CyberHunter
// Directory & authentication

Port 5725: Microsoft Identity Lifecycle Manager

Port 5725 is assigned by IANA to ms-ilm (Microsoft Identity Lifecycle Manager).

5725

How ms-ilm works

Directory & authentication
userdirectoryms-ilmresponse userdirectoryms-ilmresponse

The client proves who it is on port 5725 and gets an answer (or a ticket) it can use with other services.

Transport
TCP
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 5725 dangerous?

We have no specific security note for port 5725. Its risk depends on the program actually listening on it. General advice for directory & authentication services:

  • Keep directory and authentication services on internal networks.
  • Require signing or TLS and disable anonymous queries.
  • Monitor authentication failures for spraying and brute force.
02 Registry

IANA registry entries for port 5725

ServicePortTransportDescriptionReferenceUpdated
ms-ilm 5725 TCP Microsoft Identity Lifecycle Manager - -
-5725-Reserved--

// source: IANA service name and port number registry

03 Check it

Which program uses port 5725, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :5725

Windows (PowerShell)

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

From another machine

nmap -p 5725 -sV <host>
nc -zv <host> 5725

Block it in the firewall

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

Port 5725 is assigned by IANA to ms-ilm (Microsoft Identity Lifecycle Manager).

Is port 5725 TCP or UDP?

Port 5725 is registered for TCP.

Is it safe to open port 5725?

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. Keep directory and authentication services on internal networks.

How do I check if port 5725 is open?

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

05 Related