Skip to main content

Security Exposure

A SOCKS server that offers the no-authentication method lets anyone relay traffic through it, which hides the true source of abuse behind the proxy's address. RFC 1929 notes that username/password authentication sends the password in cleartext. The FBI has warned that criminal proxy services install proxies on compromised end-of-life routers to conduct crimes anonymously.

Hardening

  • Bind SOCKS proxies to localhost or internal interfaces unless remote use is required.
  • Disable the no-authentication method and require GSSAPI or username/password over an encrypted tunnel.
  • Restrict allowed client addresses and destination ports on the proxy.
  • Replace end-of-life routers and disable remote administration, as the FBI recommends.

Monitoring

Alert on unexpected listeners on TCP 1080 and on hosts relaying large numbers of outbound connections to many destinations. Review proxy logs for client addresses outside approved ranges.

Frequently Asked Questions

Is SOCKS on port 1080 encrypted?→

Not by default. Under RFC 1928, traffic is encrypted only when the negotiated authentication method adds encapsulation for confidentiality, and RFC 1929 notes its username/password method carries the password in cleartext.

Does SOCKS5 support UDP?→

Yes. RFC 1928 defines a UDP ASSOCIATE command, while the client connects to the SOCKS server over TCP, conventionally on port 1080.

Port assignments from the IANA Service Name and Transport Protocol Port Number Registry. Services can be configured to run on any port, so traffic on port 1080 is not guaranteed to be SOCKS. Exploited-in-the-wild data from the CISA KEV catalog (CC0).