SMB (Server Message Block)
What is SMB (Server Message Block)?
SMB (Server Message Block) is Microsoft's protocol for sharing files, printers and some remote administration between machines on a local network, most commonly reached on TCP port 445. AdminKit's guide explains why CISA still tells every network to block SMB at the internet-facing perimeter entirely.
By AdminKit team, Netbase JSC · Updated
SMB (Server Message Block) is Microsoft’s protocol, specified in MS-SMB2, for sharing files, printers and some remote-administration functions between machines on a network, with Samba providing a compatible implementation on Linux and other systems. IANA’s service name and port number registry lists TCP port 445 as microsoft-ds, the direct-hosted transport SMB uses without NetBIOS underneath it. SMB assumes it runs on a trusted local network: a host that answers on 445 from the open internet offers file shares, printer shares and NTLM authentication to anyone who finds it, not just intended local users. The 2017 EternalBlue exploit (CVE-2017-0144) targeted a flaw in the older SMBv1 version specifically, letting the WannaCry and NotPetya ransomware outbreaks spread between unpatched, internet-reachable hosts with no credentials needed at all — the reason CISA’s guidance still names SMB a high-risk service to block at the network boundary, regardless of version. The same guidance lists other Windows- and directory-oriented protocols like LDAP and remote-access protocols like RDP on the same reasoning: none of them were designed to authenticate strangers reaching in from the open internet. AdminKit’s open ports check can tell you whether port 445 answers from the internet before assuming it’s closed. NFS, the file-sharing protocol common on Linux and Unix servers, raises the same question on port 2049; see Is port 2049 (NFS) exposed?.
AdminKit groups sMB (Server Message Block) under its machine protocols cluster — browse the AdminKit glossary index for other related terms.
Frequently asked questions
Why does CISA recommend blocking SMB at the internet-facing perimeter?
SMB assumes it runs on a trusted local network, so a host answering on port 445 from the open internet offers file shares, printer shares and NTLM authentication to anyone who finds it.
What exploit made SMB a well-known ransomware target?
The 2017 EternalBlue exploit (CVE-2017-0144) targeted a flaw in the older SMBv1 version, letting WannaCry and NotPetya spread between unpatched, internet-reachable hosts with no credentials needed.
What port does SMB use, and what does IANA call it?
TCP port 445, which IANA's registry lists as microsoft-ds -- the direct-hosted transport SMB uses without NetBIOS underneath it.
Does updating past SMBv1 remove all risk of exposing port 445?
No -- CISA's guidance still names SMB a high-risk service to block at the network boundary regardless of version, since the protocol itself assumes a trusted local network.