Port 445 is the SMB (Server Message Block) port for Windows file sharing, printer access, and named pipes. SMB on port 445 runs directly over TCP without NetBIOS. Exposing port 445 to the internet is critically dangerous – EternalBlue (MS17-010), WannaCry, and NotPetya all exploited SMB vulnerabilities.
Port Number
445
Protocol
TCP
Service
Server Message Block
Range
IANA Well-Known (0–1023)
Enumerate supported SMB protocol versions (SMBv1 should not be present)
nmap -p 445 --script smb-protocols targetTest null session share enumeration (should fail if anonymous access is disabled)
crackmapexec smb target --shares -u '' -p ''PowerShell: audit SMB server security settings
Get-SmbServerConfiguration | Select EnableSMB1Protocol,RequireSecuritySignature,EncryptDataCheck if target is vulnerable to EternalBlue
nmap -p 445 --script smb-vuln-ms17-010 targetsmbclient -L //host -U user
net use Z: \\server\share
nmap --script smb-vuln-ms17-010 -p 445 targetSMB (Server Message Block) was created by IBM in 1983, adopted by Microsoft for Windows networking. Port 445 was introduced in Windows 2000 for 'direct hosting' – SMB over TCP without the NetBIOS layer. CIFS (Common Internet File System) was Microsoft's 1996 rename. SMB2 (2006, Vista) and SMB3 (2012, Windows 8/Server 2012) added encryption, reduced chattiness, and multi-channel. EternalBlue (2017) remains the most impactful exploit in SMB history.
How do I completely disable SMBv1?
Windows Server: Remove-WindowsFeature FS-SMB1. Windows 10/11: Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol. Verify: Get-SmbServerConfiguration | Select EnableSMB1Protocol (should be False). Also check client-side: sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi and Set-SmbClientConfiguration -EnableSMB1Protocol $false. Samba: min protocol = SMB2 in smb.conf.
Is it safe to expose SMB3 to the internet with encryption?
No. Even with SMB3 encryption: (1) the authentication handshake exposes NTLM hashes (crackable offline), (2) brute-force attacks against credentials are trivial, (3) zero-days like SMBGhost affect even SMB3, (4) exposing 445 invites automated scanning. Always use VPN (WireGuard, OpenVPN) or Azure Files with private endpoints for remote file access. SMB is a LAN protocol – treat it as such.