Port 139/tcp: NetBIOS Session Service
Category: Name Resolution & Directory Services. Range: well-known. Status: iana registered.
What runs here
NetBIOS Session Service provides the connection-oriented session layer NetBIOS applications use to exchange data. Historically this was how SMB file and print sharing operated, carried inside a NetBIOS session on 139, before Windows 2000 introduced direct-hosted SMB over TCP port 445 without a NetBIOS session wrapper. It is defined by RFC 1001/1002 and, per the IANA registry, formally listed on both TCP and UDP, though the session service itself is inherently connection-oriented and runs over TCP.
Why it matters
Port 139 matters in DFIR largely as SMB's legacy transport: the same file-share access, authentication, and lateral-movement activity that occurs over 445 can also occur over 139 on networks where NetBIOS has not been disabled, and it is the historical home of unauthenticated null-session enumeration, anonymous IPC$ connections used to enumerate users, shares, and policy without credentials, an old but still occasionally effective misconfiguration to check for.
Where you see it
Legitimately: legacy SMB and file-sharing access on networks that have not migrated fully to direct-hosted SMB on 445, NetBIOS-based printer or resource browsing. Anomalously/maliciously: null-session enumeration of users and shares via anonymous IPC$ connections, or lateral movement and file-share abuse riding the legacy NetBIOS transport instead of 445.
What to look for
| Signal | What it means |
|---|---|
| Anonymous/null session (IPC$) connections | A session authenticating as ANONYMOUS LOGON to IPC$ is the classic null-session enumeration pattern, historically used to pull user and share lists without any credentials. |
In practice
A legacy or misconfigured host that still permits anonymous IPC$ connections lets an attacker enumerate local user accounts and share names over port 139 without supplying any credentials at all, a technique that predates modern Active Directory hardening but still turns up in older environments.