Port 139NetBIOS Session Service
Port 139 is primarily used by the NetBIOS Session Service, enabling communication between devices on a local network using the NetBIOS protocol. It facilitates file and printer sharing over Windows networks by allowing sessions over TCP/IP. Historically integral to Windows networking, it allows systems to identify each other and establish resource-sharing connections..
- transport
- tcp · udp
- in transit
- cleartext
- assignment
- official
- risk
- 4/10
- lookups
- 13,276
2 transports registered
payload readable on path
registered with iana
caution
rank 278 of 993 · top 28%
Technical Details
what runs on :139Port 139 corresponds to the NetBIOS Session Service, which establishes and maintains sessions for communication over NetBIOS on TCP/IP networks. This port is a vital part of the legacy SMB (Server Message Block) protocol stack, specifically SMB over NetBIOS framing. It allows devices within the same local segment to exchange session-based data, performing operations such as file and printer sharing and inter-process communications.
When a connection is initiated on port 139, the NetBIOS Session Service facilitates session establishment, maintenance, and termination. It transmits session-control packets to manage the communication between hosts. Name resolution and datagram distribution are handled by related NetBIOS services on other ports (like 137 and 138), whereas port 139 focuses solely on session-level data exchange.
Modern implementations have moved towards using port 445 (Direct hosted SMB) that bypasses legacy NetBIOS framing for efficiency and security. Nevertheless, port 139 remains operational in many environments for backward compatibility, especially where mixed or older Windows systems are present.
Security Information
exposure of :139risk score
4/ 10caution
worth attention. how exposed you are depends on configuration — don't leave it reachable from the internet without a reason.
file transfer averages 4.1 across 114 ports — this one sits 0.1 below.
in transit
cleartext
credentials and payloads are readable by anyone on path
assignment
official
registered with iana for this service — scanners fingerprint it by number
reachable over
tcp · udp
udp is connectionless — source addresses are trivially spoofed and it is a reflection favourite
security overview
Common Vulnerabilities:
- Exposure can lead to information disclosure such as NetBIOS names and shares enumeration.
- Susceptible to exploitation using tools that gather usernames, machine accounts, and share lists which can aid lateral movement.
- Historically associated with worms like Conficker and vulnerabilities such as null session attacks that allow unauthenticated resource enumeration.
- Open to brute force attacks targeting weak SMB credentials.
Mitigations:
- Disable NetBIOS over TCP/IP where not required to minimize attack surface.
- Employ firewalls to block external access to port 139 and limit it strictly to trusted internal hosts.
- Enforce strong authentication policies and disable null sessions through system hardening.
- Keep systems updated with security patches addressing SMB and NetBIOS vulnerabilities.
- Consider migration to SMB over port 445 with appropriate hardening and encrypted transport (SMB signing or encryption).
Related Ports
the 8 most looked-up other ports in file transfer — 114 ports carry that label.
| port | service | risk | |||
|---|---|---|---|---|---|
| :9080 | Groove RPC | TCPUDP | Web Services | caution | 70.8k |
| :17500 | Dropbox LAN Sync | TCPUDP | File Transfer | caution | 43.7k |
| :548 | Apple Filing Protocol | TCP | File Transfer | caution | 36.8k |
| :7000 | Vuze HTTPS Tracker | TCPtls | Security | caution | 28.9k |
| :1337 | PowerFolder P2P | TCP | Security | caution | 27.1k |
| :9001 | SharePoint Authoring | Web Services | caution | 26.3k | |
| :8080 | FilePhile Relay | UDP | File Transfer | caution | 25.6k |
| :1337 | WASTE Encrypted Sharing | TCP | Security | caution | 22.9k |
risk mix of the 8 listed
- caution100%
1 of 8 encrypted