Common attacks and weaknesses
- Account brute force; clear text without STARTTLS.
XMPP (Jabber) client connections.
Messages go back and forth between clients through the chat server on port 5222. Encryption is optional: it only happens if both sides negotiate TLS (STARTTLS).
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| xmpp-client | 5222 | TCP | XMPP Client Connection | RFC 6120 | - |
| - | 5222 | - | Reserved | - | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :5222' # process listening on 5222
sudo lsof -nP -i :5222macOS
sudo lsof -nP -i :5222
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5222 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5222 netstat -ano | findstr :5222
From another machine
nmap -p 5222 -sV <host> nc -zv <host> 5222
Block it in the firewall
sudo ufw deny 5222/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5222" -Direction Inbound -LocalPort 5222 -Protocol TCP -Action Block # Windows
XMPP (Jabber) client connections.
Port 5222 is registered for TCP.
It is rated 3/10 (moderate) when exposed to the Internet. Account brute force; clear text without STARTTLS. Require TLS and rate-limit logins.
On Linux run "ss -ltnup 'sport = :5222'", on macOS "lsof -nP -i :5222", and on Windows "netstat -ano | findstr :5222" to see the local process. From another machine, "nmap -p 5222 <host>" shows whether it is reachable.