SMB signing helps protect file-sharing traffic from tampering and certain relay attacks by adding a signature to SMB messages. Checking it tells you whether a computer requires signing, merely supports it, or is using it for a particular connection. These are different states: a policy setting alone does not prove that an active session is signed. You will need permission to inspect the computer or network, and administrative rights for some local policy checks.
What You’ll Need
- The name or IP address of the Windows or Samba server, and access to the client if you want to inspect a live connection.
- Administrator privileges for Windows policy and registry checks; a privileged account may be needed for Samba configuration.
- For network checks, a tool such as Nmap, or a packet capture tool such as Wireshark. Use scanning tools only on systems you own or are authorized to assess.
- A terminal or PowerShell. On Windows, the built-in SMB cmdlets are available on supported client and server versions.
Step-by-Step
- Decide what you need to verify. To check configuration, inspect the local client or server policy. To check actual behavior, inspect an SMB connection or negotiate with the remote server. If you are auditing both ends, check both: a client and server can have different requirements, and negotiation determines what the connection uses.
- Check an active Windows SMB connection. On the Windows client, open PowerShell and run
Get-SmbConnection. Find the row for the server in theServerNamecolumn, then readSigned.Truemeans that connection is signed;Falsemeans it is not. If no row appears, access a share on that server first, then run the command again. This reports the connection, not every server the computer could connect to. - Check Windows signing policy. In an elevated PowerShell window, run
Get-SmbClientConfiguration | Select-Object EnableSecuritySignature,RequireSecuritySignatureto check the client, orGet-SmbServerConfiguration | Select-Object EnableSecuritySignature,RequireSecuritySignatureto check the local server. The requirement setting is especially important:RequireSecuritySignatureset toTruemeans that side requires signing. The enable setting indicates whether signing is enabled, but by itself does not establish that every session is signed. On newer Windows versions, the cmdlets are the clearest way to check; older releases may expose different settings. - Check policy in the Windows interface if needed. Run
secpol.msc, then open Local Policies > Security Options. Look for the policies named Microsoft network client: Digitally sign communications (always), Microsoft network client: Digitally sign communications (if client agrees), and the corresponding Microsoft network server policies. “Always” is the requirement setting; “if client agrees” enables signing when negotiated. Domain Group Policy can override local choices, so usegpresult /h gp-report.htmlin an elevated Command Prompt and review the resulting report if settings appear inconsistent. - Check a remote server with Nmap. From an authorized system with Nmap installed, run
nmap -p 445 --script smb2-security-mode SERVER, replacingSERVERwith the hostname or IP address. In the output, look for the SMB2 security-mode result. It typically reports whether message signing is enabled and whether it is required. “Enabled but not required” means clients can negotiate signing, but the server does not insist on it; “required” means the server demands signing. If the host uses a different SMB port or network controls block port 445, this test may not reach it. - Check a Samba server’s configuration. If you administer the server, inspect its effective Samba configuration with
testparm -s. Check theserver signingsetting: values commonly includemandatory,auto, anddisabled.mandatoryrequires signing;autoallows negotiation and does not necessarily require it. Also check share-specific or included configuration files, since the effective settings can differ from what you expect. Samba versions and defaults vary, so confirm behavior with the installed version’s documentation and, if possible, a live connection test. - Confirm the result against real traffic if the distinction matters. Connect to the share, then inspect the session with
Get-SmbConnectionon Windows, or capture an authorized SMB exchange in Wireshark. In Wireshark, filter forsmb2and inspect the SMB2 header’s signature field and session negotiation. A packet showing a signature is useful evidence for that exchange; do not infer that all traffic is signed from a policy setting or a single unrelated packet. SMB encryption can also affect what is visible in a capture. - Record what you checked. Note the host, date, command or policy source, SMB version if known, and whether signing is enabled, required, and active on the tested connection. Report those as separate findings. This avoids describing a setting that permits signing as proof that signing is enforced.
Common Mistakes
- Confusing enabled with required. A device may support or enable signing without requiring every connection to use it. Look specifically at the requirement setting or the remote security-mode result.
- Treating policy as proof of a live session. Policy describes intended behavior; a connection check shows what happened on that connection. Check both when verifying security.
- Checking the wrong endpoint. Client settings describe outbound connections; server settings describe inbound connections. Neither automatically tells you the other side’s configuration.
- Assuming a missing result means signing is off. The host may be unreachable, use a different SMB version, have port 445 filtered, or have no active connection. Check connectivity and use a method compatible with the system.
- Ignoring managed policy and version differences. Domain policy can override local settings, and Windows or Samba behavior and command output vary by release. Verify the effective setting on the system you are assessing.
Tips
- For a quick Windows check, start with
Get-SmbConnectionfor active sessions and the relevantGet-Smb...Configurationcmdlet for local requirements. - Test a representative connection after applying a policy change; existing sessions may need to be disconnected and re-established before you can verify the new behavior.
- Check both client and server requirements when diagnosing failed connections. If one side requires signing and the other cannot sign, the connection may fail.
- For security audits, list “enabled,” “required,” and “observed on the tested session” separately rather than combining them into a single yes/no answer.
Troubleshooting
Get-SmbConnection returns no rows: Open the share in File Explorer or connect to it with an approved method, then rerun the command. Confirm that you are running it on the client that owns the session and that you have the correct server name.
The PowerShell cmdlet is not recognized: You may be on an older Windows version, a restricted installation, or a system missing the SMB management components. Try the Security Options policy interface or inspect policy with gpresult. Do not rely on a registry value copied from another Windows release without confirming its meaning for your version.
Nmap reports no SMB security information: First confirm that the host resolves and is reachable, then check whether TCP 445 is open and whether a firewall or VPN is blocking the scan. Try the correct host address and an up-to-date Nmap installation. A blocked probe is inconclusive; it does not show that signing is disabled.
Local settings differ from the effective policy: Run an elevated gpupdate /force if appropriate, then use gpresult /h to identify the winning policy. Coordinate changes with your domain administrator; do not weaken a managed security requirement to make a test pass.
Connections fail after requiring signing: Check that both endpoints support compatible SMB signing and review client and server logs for negotiation errors. Update or replace incompatible systems rather than disabling signing broadly. Test changes on a limited system first, since enforcement can affect older devices and applications.
Frequently Asked Questions
What does SMB signing protect against?
It adds integrity checks to SMB messages, helping detect tampering and reducing exposure to certain relay or man-in-the-middle attacks. It does not replace encryption or other network controls.
Does “signing enabled” mean every SMB connection is signed?
No. Enabled can mean signing is available or negotiated when supported. Check whether it is required, then verify the active connection where possible.
Can I check SMB signing without administrator access?
You may be able to see your own active Windows connections with Get-SmbConnection, but policy, server configuration, and some remote checks can require elevated or authorized access.
Does SMB signing encrypt files?
No. Signing provides integrity, not confidentiality. SMB encryption is a separate feature that protects the contents of SMB traffic.
Is SMB1 signing checked the same way as SMB2 or SMB3?
Not always. Commands and scan scripts can report different details by protocol version. Prefer current Windows cmdlets or a version-aware network tool, and identify the SMB dialect when interpreting results.
Should I require SMB signing everywhere?
Requiring it can improve protection, but first assess compatibility and performance for your environment, especially legacy devices. Apply the policy deliberately, test critical workflows, and monitor for connection failures.