All Projects → dev-sec → Windows Baseline

dev-sec / Windows Baseline

Licence: apache-2.0
DevSec Windows Baseline - InSpec Profile

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Windows Baseline

postgres-baseline
DevSec PostgreSQL Baseline - InSpec Profile
Stars: ✭ 47 (-70.62%)
Mutual labels:  audit, baseline, hardening
apache-baseline
DevSec Apache Baseline - InSpec Profile
Stars: ✭ 37 (-76.87%)
Mutual labels:  audit, baseline, hardening
cis-dil-benchmark
CIS Distribution Independent Linux Benchmark - InSpec Profile
Stars: ✭ 120 (-25%)
Mutual labels:  audit, baseline, hardening
Nginx Baseline
DevSec Nginx Baseline - InSpec Profile
Stars: ✭ 71 (-55.62%)
Mutual labels:  baseline, audit, hardening
Ssl Baseline
DevSec SSL/TLS Baseline - InSpec Profile
Stars: ✭ 56 (-65%)
Mutual labels:  baseline, audit, hardening
Ssh Baseline
DevSec SSH Baseline - InSpec Profile
Stars: ✭ 192 (+20%)
Mutual labels:  baseline, audit, hardening
Linux Baseline
DevSec Linux Baseline - InSpec Profile
Stars: ✭ 524 (+227.5%)
Mutual labels:  baseline, audit, hardening
cis benchmarks audit
Simple command line tool to check for compliance against CIS Benchmarks
Stars: ✭ 182 (+13.75%)
Mutual labels:  audit, hardening
cis-benchmark-centOS-8
Auditing Script based on CIS-BENCHMARK CENTOS 8
Stars: ✭ 34 (-78.75%)
Mutual labels:  audit, hardening
The Practical Linux Hardening Guide
This guide details creating a secure Linux production system. OpenSCAP (C2S/CIS, STIG).
Stars: ✭ 8,790 (+5393.75%)
Mutual labels:  audit, hardening
Windows hardening
Windows Hardening settings and configurations
Stars: ✭ 148 (-7.5%)
Mutual labels:  audit, hardening
Css Analyzer
Analytics for CSS
Stars: ✭ 146 (-8.75%)
Mutual labels:  audit
Ansible Mysql Hardening
This Ansible role provides security configuration for MySQL.
Stars: ✭ 132 (-17.5%)
Mutual labels:  hardening
Sysctl
K4YT3X's Hardened sysctl Configuration
Stars: ✭ 128 (-20%)
Mutual labels:  hardening
Suhosin7
Suhosin Extension for PHP 7.x
Stars: ✭ 122 (-23.75%)
Mutual labels:  hardening
Niui
Lightweight, feature-rich, accessible front-end library
Stars: ✭ 152 (-5%)
Mutual labels:  baseline
How To Secure A Linux Server
An evolving how-to guide for securing a Linux server.
Stars: ✭ 11,939 (+7361.88%)
Mutual labels:  hardening
Maplesyrup
Assesses CPU security of embedded devices. #nsacyber
Stars: ✭ 121 (-24.37%)
Mutual labels:  audit
Ssh Login Alert Telegram
Recieive telegram notfications when user connect to a server
Stars: ✭ 117 (-26.87%)
Mutual labels:  audit
Openbsm
OpenBSM open audit implementation
Stars: ✭ 116 (-27.5%)
Mutual labels:  audit

windows-baseline

Build Status Supermarket

This Baseline ensures, that all hardening projects keep the same quality.

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_2 define which CIS Benchmark Level (1 or 2) you want to execute

  • ms_or_dc define if you want to execute the profile in the context of a Memeber Server (MS) or Domain Controler (DC)

  • password_history_size define password history size

  • maximum_password_age define MaximumPasswordAge

  • se_network_logon_right define which users are allowed to access this computer from the network

  • se_interactive_logon_right define which users are allowed to log on locally

  • se_remote_interactive_logon_right define which users are allowed to log on through Remote Desktop Services

  • se_backup_privilege define which users are allowed to backup files and directories

  • se_systemtime_privilege define which users are allowed to change system time

  • se_time_zone_privilege define which users are allowed to change system time zone

  • se_create_symbolic_link_privilege define which users are allowed to create symbolic links

  • se_deny_network_logon_right define which users are not allowed to access this computer from the network

  • se_deny_remote_interactive_logon_right define which users are not allowed to log on through Remote Desktop Services

  • se_enable_delegation_privilege define which users are allowed to enable computer and user accounts to be trusted

  • se_impersonate_privilege define which users are allowed to impersonate a client after authentication

  • se_load_driver_privilege define which users are allowed to load and unload device drivers

  • se_batch_logon_right define which users are allowed to log on as a batch job

  • se_security_privilege define which users are allowed to manage auditing and security logs

  • se_assign_primary_token_privilege define which users are allowed to replace a process level token

  • se_restore_privilege define 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 Memeber Server

Contributors + Kudos

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].