ayohrling / local_security_policy

Apache License 2.0
6 stars 28 forks source link

18.5.14.1 Ensure 'Hardened UNC Paths' is set #57

Open pillarsdotnet opened 5 years ago

pillarsdotnet commented 5 years ago

18.5.14.1 Ensure 'Hardened UNC Paths' is set

Info

This policy setting configures secure access to UNC paths. The recommended state for this setting is: 'Enabled, with 'Require Mutual Authentication' and 'Require Integrity' set for all NETLOGON and SYSVOL shares'. Note: If the environment exclusively contains Windows 8.0 / Server 2012 (non-R2) or newer systems, then the ''Privacy'' setting may (optionally) also be set to enable SMB encryption. However, using SMB encryption will render the targeted share paths completely inaccessible by older OSes, so only use this additional option with caution and thorough testing. Rationale: In February 2015, Microsoft released a new control mechanism to mitigate a security risk in Group Policy as part of the MS15-011 / MSKB 3000483 security update. This mechanism requires both the installation of the new security update and also the deployment of specific group policy settings to all computers on the domain from Windows Vista / Server 2008 (non-R2) or newer (the associated security patch to enable this feature was not released for Server 2003). A new group policy template ('NetworkProvider.admx/adml') was also provided with the security update. Once the new GPO template is in place, the following are the minimum requirements to remediate the Group Policy security risk: '\\*\NETLOGON RequireMutualAuthentication=1, RequireIntegrity=1' '\\*\SYSVOL RequireMutualAuthentication=1, RequireIntegrity=1' Note: A reboot may be required after the setting is applied to a client machine to access the above paths. Additional guidance on the deployment of this security setting is available from the Microsoft Premier Field Engineering (PFE) Platforms TechNet Blog here: Guidance on Deployment of MS15-011 and MS15-014.

Solution

To establish the recommended configuration via GP, set the following UI path to 'Enabled' with the following paths configured, at a minimum: '\\*\NETLOGON RequireMutualAuthentication=1, RequireIntegrity=1' '\\*\SYSVOL RequireMutualAuthentication=1, RequireIntegrity=1' Computer Configuration\Policies\Administrative Templates\Network\Network Provider\Hardened UNC Paths Note: This Group Policy path does not exist by default. An additional Group Policy template ('NetworkProvider.admx/adml') is required - it is included with the MS15-011 / MSKB 3000483 security update or with the Microsoft Windows 10 RTM (Release 1507) Administrative Templates (or newer). Impact: Windows only allows access to the specified UNC paths after fulfilling additional security requirements.

pillarsdotnet commented 5 years ago

This setting requires one or more registry keys with embedded backslash characters. Since backslash characters are also used as registry path delimiters, I am unsure how to proceed, or whether this module can even support such use-cases without a major re-write.

ayohrling commented 5 years ago

I think you should be able to escape through it to set this, but would have to give it a try. Something like 'Computer Configuration\Policies\Administrative Templates\Network\Network Provider\Hardened UNC Paths\\*\NETLOGON RequireMutualAuthentication=1, RequireIntegrity=1'