Common attacks and weaknesses
- Brute force and password spraying against mailboxes.
POP3 over TLS.
The mail client connects to port 995 to download or sync the messages waiting in the mailbox. Everything is encrypted: someone on the path only sees unreadable bytes.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| pop3s | 995 | TCP, UDP | POP3 over TLS protocol | RFC 8314 | 2017-12-12 |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :995' # process listening on 995
sudo lsof -nP -i :995macOS
sudo lsof -nP -i :995
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 995 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 995 netstat -ano | findstr :995
From another machine
nmap -p 995 -sV <host> sudo nmap -sU -p 995 <host> nc -zv <host> 995
Block it in the firewall
sudo ufw deny 995/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 995" -Direction Inbound -LocalPort 995 -Protocol TCP -Action Block # Windows
POP3 over TLS.
Port 995 is registered for TCP and UDP. In practice the service mostly uses TCP.
It is rated 3/10 (moderate) when exposed to the Internet. Brute force and password spraying against mailboxes. Rate-limit logins and require MFA or app passwords.
On Linux run "ss -ltnup 'sport = :995'", on macOS "lsof -nP -i :995", and on Windows "netstat -ano | findstr :995" to see the local process. From another machine, "nmap -p 995 <host>" shows whether it is reachable.