NetBIOS Name Service
termKept in this browser · My desk
Stands for: NBT-NS
The name service of NetBIOS over TCP/IP, defined in RFCs 1001 and 1002 of March 1987, on port 137, with which hosts register and resolve 16-byte NetBIOS names by broadcast or through a NetBIOS name server such as Microsoft's WINS.
Windows still falls back to it for short names, and a broadcast query can be answered by any host on the segment. Together with LLMNR it is the classic route to stolen NTLM exchanges; CISA and NSA (2023) list it among misconfigurations found enabled in production. Microsoft fixed a NetBIOS response-validation flaw and WPAD's fallback to NetBIOS in MS16-077 (June 2016), and since 2022 has been moving NetBIOS name resolution towards off by default.
What it is. NetBIOS, in RFC 1001's words, 'defines a software interface not a protocol', a vendor-independent interface for the IBM PC and compatibles; RFCs 1001 ('Concepts and Methods') and 1002 ('Detailed Specifications'), written in March 1987 by the NetBIOS Working Group, carried it over TCP/IP. The name service runs on UDP and TCP port 137, and the session service on TCP port 139. RFC 1001 defines node types by how they resolve: B nodes broadcast, P nodes ask a NetBIOS Name Server (NBNS) point to point, and M nodes mix the two. Microsoft's NBNS is the Windows Internet Name Service (WINS), and Windows resolves single-label names 'as both a DNS name and a NetBIOS name' (MS-WPO 7.1.4).
How names look. A NetBIOS name is 16 bytes: in Microsoft's use the first 15 are the name padded with spaces and the 16th a suffix naming the service, '[00h]WorkStation, [03h]Messenger, and [20h] File Server' (MS-NBTE). On the wire RFC 1001's first-level encoding splits each byte into two half-bytes and adds each to the letter A, giving 32 characters from A to P. FILESRV<20> becomes EGEJEMEFFDFCFGCACACACACACACACACA: F (0x46) is E G, I (0x49) E J, L (0x4C) E M, and each space or the 0x20 suffix C A. Decoding the RFC's own example by the same rule yields 'Tge NetBIOS tame', two letters off the 'The NetBIOS name' the text claims, a slip the arithmetic exposes.
Security history. A broadcast query is heard by every host on the segment, and nothing in the 1987 design authenticates an answer. Microsoft's bulletin MS16-077 (14 June 2016) fixed CVE-2016-3299, a spoofing flaw 'when NetBIOS improperly handles responses' that let an attacker on the local network 'hijack network traffic', and CVE-2016-3213, in which WPAD 'falls back to a vulnerable proxy discovery process' exploitable by responding 'to NetBIOS name requests for WPAD'. MITRE's T1557.001 lists NBT-NS (UDP 137) beside LLMNR and mDNS as the protocols poisoned to collect or relay NTLM; CISA and NSA's AA23-278A (October 2023) reports NBT-NS observed enabled in production.
Turning it off. Microsoft's networking blog (April 2022) said NetBIOS name resolution was already off by default on cellular interfaces and had been put, in Insider builds, into a 'learning mode' used only after mDNS and LLMNR fail; the 'Configure NetBIOS settings' policy (Network, DNS Client) offers disabled, disabled-on-public-networks and learning modes. On the network side, a Windows DHCP server can disable NetBIOS over TCP/IP on its clients with the Microsoft vendor-class option '001 Microsoft Disable Netbios Option' set to 0x2, provided the clients take their NetBIOS setting from DHCP (KB 313314, updated February 2026). What goes wrong: old file servers, printers or applications that still resolve by NetBIOS names, and WINS left running long after the last dependent was retired.
The settings, precisely. Microsoft's 2022 post gives the registry value behind the policy, EnableNetbios under the DNS client's parameters, with the modes disabled, disabled on public networks and learning mode, the last being then 'the current default in Insider builds', and notes that NetBIOS name resolution had long been off on cellular interfaces 'because it should never be applicable there'. The DHCP route in KB 313314 has two halves: on the server, the Microsoft vendor class option 001 'Microsoft Disable Netbios Option' with the value 0x2; on each client, the WINS tab of the IPv4 properties set to 'Use NetBIOS setting from the DHCP server', which is how Windows 7, 10 and 11 are told to obey. CISA and NSA's 2023 advisory frames the decision the same way for NetBIOS as for LLMNR: determine whether it is 'required for essential business operations' and, if not, disable it by local policy or Group Policy. Bulletin MS16-077 itself carried three CVEs, CVE-2016-3213, CVE-2016-3236 and CVE-2016-3299, all rated Important, elevation of privilege.
Neighbours. LLMNR and mDNS, WINS, WPAD, SMB and NTLM, DHCP (which can switch NetBIOS off), and name resolution poisoning.
Also known as: nbt-ns, nbns, netbios name resolution, netbios over tcp/ip, udp 137
Sources
- NetBIOS Working Group, RFC 1001, March 1987: B, P and M nodes; section 14.1 first level encoding (read 2026-11-23)
- NetBIOS Working Group, RFC 1002, March 1987: name service on UDP and TCP port 137 (read 2026-11-23)
- Microsoft Open Specifications, MS-NBTE, Appendix A: NetBIOS suffixes, [00h] workstation, [03h] messenger, [20h] file server (read 2026-11-23)
- Microsoft Open Specifications, MS-WPO 7.1.4 Windows Name Resolution: single-label names resolved by DNS and NetBIOS; WINS as Microsoft's NBNS; LLMNR (read 2026-11-23)
- Microsoft Security Bulletin MS16-077, 14 June 2016, updated 9 August 2016: CVE-2016-3213 (WPAD falls back to a vulnerable discovery process; respond to NetBIOS requests for WPAD), CVE-2016-3299 (NetBIOS response validation) (read 2026-11-23)
- Microsoft Learn, How to disable NetBIOS over TCP/IP by using DHCP server options, KB 313314, updated 12 February 2026: vendor option 001 Microsoft Disable Netbios Option, value 0x2 (read 2026-11-23)
- Microsoft Networking Blog, Aligning on mDNS: ramping down NetBIOS name resolution and LLMNR, 22 April 2022: both rarely used, needless attack surface; NetBIOS learning mode in Insider builds; LLMNR default unchanged; goal of mDNS as the only multicast protocol on by default (read 2026-11-23)
- CISA and NSA, Advisory AA23-278A, Top Ten Cybersecurity Misconfigurations, 5 October 2023: LLMNR and NBT-NS observed enabled; spoofing, poisoning and relay; unsigned SMB; determine need, then disable (read 2026-11-23)