/cis-windows-level2

CIS Level 2 Benchmark Windows Server (built on top of CIS Level 1)

Primary LanguageRuby

cis-windows-level2

This role sets up Cis-windows-level2

Created for and tested on Windows 2012R2

Should work for Windows 2016 (untested)

TODO

There's plenty of room for optimizing and consolidating regedits, etc.

Requirements

Requires Ansible 2.5+ as the win_audit_policy_system module is required and it's new in 2.5

You'll need to pull the cis-windows-level1 role first using ansible-galaxy install -r requirements.yml -p ../.

Dependencies

cis-windows-level1 role

Notes & Rule Omittance

My testing was done on a Windows 2012R2 Vagrant box I built using this

Inspec controls taken from Chef Automate's CIS Windows Level 1 profile.

  • some of inspec 'describe' statements were modified (read as: fixed). I've left the original rule in the control commented out (and my modified/corrected one underneath it)

  • 2.3.1.5 Administrator account was not renamed; changed to disabled

  • 2.3.1.6 Guest account was not renamed; changed disabled

  • 18.6.1: LocalAccountTokenFilterPolicy was not set to 0 as I use a local user to WinRM into run the ansible role so if that gets set to 1 then the role breaks

  • 2.2.x: User Rights rules moved to the end as setting them early will prevent some of the other changes in the "later" rules sets from being applied due to stripped rights

Rules for 19.x.x aren't run as they modify HKEY_USERS and that's apparently not allowed :( And as such, the Inspec controls are in the files/ folder rather than in controls/ (easier than commenting out the rules)

Maintainer

Glen Yu

E-mail

glen.yu@gmail.com

License

MIT