Common attacks and weaknesses
- Unauthenticated access to every log and indexed document; prototype pollution RCE on old versions.
Kibana web interface for Elasticsearch.
A search query goes to port 5601 and the engine returns the matching documents, ranked. It travels in clear text: anyone on the path can read it.
Unofficial use. The IANA assignment below differs from what is usually found on this port in practice.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| esmagent | 5601 | TCP, UDP | Enterprise Security Agent | - | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :5601' # process listening on 5601
sudo lsof -nP -i :5601macOS
sudo lsof -nP -i :5601
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5601 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5601 netstat -ano | findstr :5601
From another machine
nmap -p 5601 -sV <host> sudo nmap -sU -p 5601 <host> nc -zv <host> 5601
Block it in the firewall
sudo ufw deny 5601/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5601" -Direction Inbound -LocalPort 5601 -Protocol TCP -Action Block # Windows
Kibana web interface for Elasticsearch.
Port 5601 is registered for TCP and UDP. In practice the service mostly uses TCP.
It is rated 7/10 (high) when exposed to the Internet. Unauthenticated access to every log and indexed document; prototype pollution RCE on old versions. Enable Elastic security and put Kibana behind SSO.
On Linux run "ss -ltnup 'sport = :5601'", on macOS "lsof -nP -i :5601", and on Windows "netstat -ano | findstr :5601" to see the local process. From another machine, "nmap -p 5601 <host>" shows whether it is reachable.