Common attacks and weaknesses
- Open proxies used to anonymize attacks.
- Pivoting tool left by attackers (SOCKS tunnels over compromised hosts).
SOCKS proxy.
Traffic is wrapped in a tunnel between the two ends, so the network in between only sees the tunnel. It travels in clear text: anyone on the path can read it.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| socks | 1080 | TCP, UDP | Socks | - | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :1080' # process listening on 1080
sudo lsof -nP -i :1080macOS
sudo lsof -nP -i :1080
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 1080 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 1080 netstat -ano | findstr :1080
From another machine
nmap -p 1080 -sV <host> sudo nmap -sU -p 1080 <host> nc -zv <host> 1080
Block it in the firewall
sudo ufw deny 1080/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 1080" -Direction Inbound -LocalPort 1080 -Protocol TCP -Action Block # Windows
SOCKS proxy.
Port 1080 is registered for TCP and UDP. In practice the service mostly uses TCP.
It is rated 7/10 (high) when exposed to the Internet. Open proxies used to anonymize attacks. Require authentication and restrict clients.
On Linux run "ss -ltnup 'sport = :1080'", on macOS "lsof -nP -i :1080", and on Windows "netstat -ano | findstr :1080" to see the local process. From another machine, "nmap -p 1080 <host>" shows whether it is reachable.