dev-sec/windows-baseline
소개
DevSec Windows Baseline - InSpec Profile
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalwindows-baseline
This Baseline ensures, that all hardening projects keep the same quality.
- https://github.com/dev-sec/chef-windows-hardening
- https://github.com/dev-sec/ansible-windows-hardening
Description
This InSpec compliance profile is inspired by CIS Windows 2012R2 and 2016 Benchmark and implements such rules in an automated way to provide security best-practice tests around Windows Servers in a production environment.
Implements:
- CIS Microsoft Windows Server 2012 R2 Benchmark v2.3.0 - 03-30-2018
- CIS Microsoft Windows Server 2016 RTM (Release 1607) Benchmark v1.1.0 - 10-31-2018
InSpec is an open-source run-time framework and rule language used to specify compliance, security, and policy requirements for testing any node in your infrastructure.
Requirements
- at least InSpec Version 3.0.0
- WinRM activated (for inspec remote usage)
Platform
- Windows 2012R2
- Windows 2016
- Windows 2019
Attributes
We use a yml attribute file to steer the configuration, the following options are available:
level_1_or_2define which CIS Benchmark Level (1 or 2) you want to executems_or_dcdefine if you want to execute the profile in the context of a Member Server (MS) or Domain Controller (DC)password_history_sizedefine password history sizemaximum_password_agedefine MaximumPasswordAgese_network_logon_rightdefine which users are allowed to access this computer from the networkse_interactive_logon_rightdefine which users are allowed to log on locallyse_remote_interactive_logon_rightdefine which users are allowed to log on through Remote Desktop Servicesse_backup_privilegedefine which users are allowed to backup files and directoriesse_systemtime_privilegedefine which users are allowed to change system timese_time_zone_privilegedefine which users are allowed to change system time zonese_create_symbolic_link_privilegedefine which users are allowed to create symbolic linksse_deny_network_logon_rightdefine which users are not allowed to access this computer from the networkse_deny_remote_interactive_logon_rightdefine which users are not allowed to log on through Remote Desktop Servicesse_enable_delegation_privilegedefine which users are allowed to enable computer and user accounts to be trustedse_impersonate_privilegedefine which users are allowed to impersonate a client after authenticationse_load_driver_privilegedefine which users are allowed to load and unload device driversse_batch_logon_rightdefine which users are allowed to log on as a batch jobse_security_privilegedefine which users are allowed to manage auditing and security logsse_assign_primary_token_privilegedefine which users are allowed to replace a process level tokense_restore_privilegedefine which users are allowed to restore files and directories
Usage
InSpec makes it easy to run your tests wherever you need. More options listed here: InSpec cli
# run profile locally and directly from Github
$ inspec exec https://github.com/dev-sec/windows-baseline
# run profile locally
$ git clone https://github.com/dev-sec/windows-baseline
$ inspec exec windows-baseline
# run profile on remote host via WinRM
inspec exec windows-baseline -t winrm://<ip-address>:5985 --user=<username> --password=<password>
# run profile on remote host via WinRM and define attribute value
inspec exec windows-baseline -t winrm://<ip-address>:5985 --user=<username> --password=<password> --attrs sample_attributes.yml
# run profile direct from inspec supermarket
inspec supermarket exec dev-sec/windows-baseline -t winrm://<ip-address>:5985 --user=<username> --password=<password>
Run individual controls
In order to verify individual controls, just provide the control ids to InSpec:
inspec exec windows-baseline --controls 'windows-001'
ToDo
- adjust the inspec attributes according to the profile (Member Server or Domain Controller), because for the Domain Controller some attributes are different from a Member Server
Contributors + Kudos
- Patrick Muench atomic111
- Torsten Löbner TLoebner
- Karsten Mueller karstenmueller
License and Author
| Author: | Patrick Muench [email protected] |
| Author: | Torsten Loebner [email protected] |
| Copyright: | 2019 SVA System Vertrieb Alexander GmbH |
| Copyright: | 2019 Lichtblick SE |
| Copyright: | 2015-2016, Chef Software, Inc |
| Copyright: | DevSec Hardening Framework Team |
| License: | Apache License Version 2.0 |
관련 프로젝트 살펴보기
불러오는 중…