Enforce SMB Signing for Outgoing Connections in Regedit
Server Message Block (SMB) signing protects network traffic against
tampering and relay attacks by verifying packet authenticity.
Configuring strict SMB signing on outgoing connections ensures your
Windows client will only communicate with servers that also support and
require SMB signing, dropping any unsigned sessions. This article
details the exact registry keys and steps required to enforce strict SMB
signing across all outgoing connections using the Windows Registry
Editor (regedit).
Registry Configuration Details
To enforce SMB signing for outgoing connections, you must configure
the SMB Client (LanmanWorkstation) parameters:
- Registry Path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters - Value Name:
RequireSecuritySignature - Value Type:
REG_DWORD - Value Data:
1
(Optional but recommended) Ensure the companion value
EnableSecuritySignature is also present: * Value
Name: EnableSecuritySignature * Value
Type: REG_DWORD * Value Data:
1
Step-by-Step Instructions
- Open the Registry Editor:
- Press
Win + R, typeregedit, and press Enter. - Click Yes if prompted by User Account Control (UAC).
- Press
- Navigate to the Target Key:
In the address bar, paste the following path and press Enter:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
- Modify or Create
RequireSecuritySignature:- Look for the
RequireSecuritySignatureDWORD entry in the right pane. - If it exists, double-click it, set the Value data
to
1, ensure the Base is set to Hexadecimal, and click OK. - If it does not exist:
- Right-click an empty space in the right pane.
- Select New > DWORD (32-bit) Value.
- Name the value
RequireSecuritySignature. - Double-click it, set the Value data to
1, and click OK.
- Look for the
- Verify
EnableSecuritySignature:- Locate
EnableSecuritySignaturein the same key. - Ensure its value is also set to
1. If missing, create it as a DWORD (32-bit) Value and assign it data1.
- Locate
- Apply Changes:
Close the Registry Editor.
Restart the computer or restart the
Workstationservice via PowerShell/Command Prompt:net stop lanmanworkstation /y net start lanmanworkstation
Quick Enforcement via Command Line
Alternatively, you can apply these registry values instantly by opening an elevated Command Prompt or PowerShell terminal and executing:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v RequireSecuritySignature /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v EnableSecuritySignature /t REG_DWORD /d 1 /fOnce applied, the machine will refuse to establish outgoing SMB sessions with any remote server that does not support or actively employ SMB signing.