Common attacks and weaknesses
- Passwords sent in clear text.
- Password spraying (legacy authentication bypasses MFA).
Mailbox access protocol. Clear text unless STARTTLS is used.
The mail client connects to port 143 to download or sync the messages waiting in the mailbox. Encryption is optional: it only happens if both sides negotiate TLS (STARTTLS).
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| imap | 143 | TCP | Internet Message Access Protocol | RFC 3501, RFC 9051 | 2021-02-22 |
| - | 143 | - | Reserved | - | - |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :143' # process listening on 143
sudo lsof -nP -i :143macOS
sudo lsof -nP -i :143
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 143 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 143 netstat -ano | findstr :143
From another machine
nmap -p 143 -sV <host> nc -zv <host> 143
Block it in the firewall
sudo ufw deny 143/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 143" -Direction Inbound -LocalPort 143 -Protocol TCP -Action Block # Windows
Mailbox access protocol. Clear text unless STARTTLS is used.
Port 143 is registered for TCP.
It is rated 6/10 (high) when exposed to the Internet. Passwords sent in clear text. Use IMAPS (993).
On Linux run "ss -ltnup 'sport = :143'", on macOS "lsof -nP -i :143", and on Windows "netstat -ano | findstr :143" to see the local process. From another machine, "nmap -p 143 <host>" shows whether it is reachable.