Common attacks and weaknesses
- A listener on 31337 on a production host is a red flag.
Registered to eldim at IANA, but known as the "elite" port, historically used by the Back Orifice backdoor and by many CTF and malware tools.
The client sends a request to port 31337 and the Back Orifice / elite service answers. 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 |
|---|---|---|---|---|---|
| eldim | 31337 | TCP, UDP | eldim is a secure file upload proxy | - | 2021-05-14 |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :31337' # process listening on 31337
sudo lsof -nP -i :31337macOS
sudo lsof -nP -i :31337
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 31337 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 31337 netstat -ano | findstr :31337
From another machine
nmap -p 31337 -sV <host> sudo nmap -sU -p 31337 <host> nc -zv <host> 31337
Block it in the firewall
sudo ufw deny 31337/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 31337" -Direction Inbound -LocalPort 31337 -Protocol TCP -Action Block # Windows
Registered to eldim at IANA, but known as the "elite" port, historically used by the Back Orifice backdoor and by many CTF and malware tools.
Port 31337 is registered for TCP and UDP.
It is rated 8/10 (high) when exposed to the Internet. A listener on 31337 on a production host is a red flag. Investigate unexpected listeners.
On Linux run "ss -ltnup 'sport = :31337'", on macOS "lsof -nP -i :31337", and on Windows "netstat -ano | findstr :31337" to see the local process. From another machine, "nmap -p 31337 <host>" shows whether it is reachable.