Skip to content

Commit 59cd2c8

Browse files
authored
VPN-7693: Turn on microsoft signature enforcement (#11451)
1 parent 82b05f7 commit 59cd2c8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/platforms/windows/windowsutils.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ void WindowsUtils::lockDownDLLSearchPath() {
171171
// Change the load order of DLLs to prefer system32 images
172172
PROCESS_MITIGATION_IMAGE_LOAD_POLICY pol = {};
173173
pol.PreferSystem32Images = 1;
174-
175174
SetProcessMitigationPolicy(ProcessImageLoadPolicy, &pol, sizeof(pol));
175+
176+
// Deny loading of DLLs unless they are signed by microsoft.
177+
PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY sig = {};
178+
sig.MicrosoftSignedOnly = 1;
179+
SetProcessMitigationPolicy(ProcessSignaturePolicy, &sig, sizeof(sig));
176180
}

0 commit comments

Comments
 (0)