Securing Group Policy Template and importing it to windows server 2016 Group Policy

Copper Contributor

Hi,

I'm working on the Security Hardening of windows server 2016 according to [CIS Benchmark V 1.2.0][1], for this I found a Security Compliance project from Microsoft which is [Microsoft Security Compliance Toolkit 1.0][2]. This project works on a preconfigured Group Policy for Member Server or Domain Controller and that group policy has a Hardened configuration that complies with the CIS Benchmark.

Microsoft Security Compliance Toolkit 1.0 has some tools and configurations that can be installed from [here][3]. the main problem with this toolkit and its group policy configuration is they are not implementing all the CIS Benchmark for windows server 2016 so I start working on my own Group Policy Template.

For building my Hardening Group Policy Template I started by taking snapshot from my windows server 2016 so I can work on a system, like the production, then deploying the Hardened Group policy that comes with the Toolkit (as a starting point) then check every point from the CIS Benchmark document and reflect the Recommended configuration on that Template Group Policy. after finishing some of those Security recommendations I took another snapshot from the production server and used the LGPO.exe (included in the toolkit) tool to import the Hardened Group Policy Template that I was working on and apply it to the new server snapshot. after importing the Hardened Group Policy to the test server I start facing many problems when trying to log in to my administrator account, as seen in the photos :

1. After login, I receive this error, and if log in again it doesn't occur again :
https://drive.google.com/file/d/1emPuoTKajuUmTifi8sSirb1vUJIhi9sI/view?usp=sharing

2. After login sometimes the server hangs on the following state :
https://drive.google.com/file/d/1Vp48d7sxdCfabs93IfRW10_T9xHo44R3/view?usp=sharing


3. receive this error sometimes :
https://drive.google.com/file/d/16BJEMn6OZAS8J5pTRFF4tGcFfGMAYRGN/view?usp=sharing


Note that the previous errors occur sometimes and if you try to access the same thing again it works,

4.this occurs every time I log in to the account :
https://drive.google.com/file/d/16W86tVTVgoo9amvhlsfCsmsMb-XMAFZl/view?usp=sharing


All of these errors start happening after deploying the Hardened Group Policy to the test server, Also I had another snapshot from the production server where I tried to do the same Security Recommendations Manually, so I did the same Security Recommendations that I configured in the Group Policy and caused all the previous errors but this time manually and everything was working as expected with no errors !!

So my Issue Is what goes wrong with having a tool such as LGPO.exe (official Microsoft tool) that imports Group Policy GPO to the current Group Policy, and why I had all the previous issues when doing that? but when doing manual works it worked well?

what is the best way to Make Secure Group Policy as per CIS Benchmark and export it then import to each Server you have ? what is the best way for doing this?

**Note:**
1. I have only one admin user that I'm using during the work
2. my win server 2016 is non-domain machine - stand alone

Thanks in advance


[1]: https://www.newnettechnologies.com/cis-benchmark.html?utm_campaign=Search+-+ROW+-+Quantity&utm_mediu...
[2]: https://docs.microsoft.com/en-us/windows/security/threat-protection/security-compliance-toolkit-10
[3]: https://www.microsoft.com/en-us/download/details.aspx?id=55319

1 Reply

@muradmomani - 

Are you applying the "Level 1" or "Level 2" CIS benchmark? The L2 benchmark shouldn't be used.

Also, why are you trying to mix the CIS and Microsoft baselines? Just pick one.

FWIW, the Microsoft one is more manageable and streamlined - see Microsoft's "Baseline criteria" as documented here:

https://techcommunity.microsoft.com/t5/microsoft-security-baselines/security-baseline-draft-windows-...

The DISA STIGs generally also follow that model.