All Projects → dev-sec → Chef Windows Hardening

dev-sec / Chef Windows Hardening

This chef cookbook provides windows hardening configurations for the DevSec Windows baseline profile.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Chef Windows Hardening

Chef Os Hardening
This chef cookbook provides numerous security-related configurations, providing all-round base protection.
Stars: ✭ 386 (+382.5%)
Mutual labels:  chef, chef-cookbook, devops, hardening
Chef Ssh Hardening
This chef cookbook provides secure ssh-client and ssh-server configurations.
Stars: ✭ 144 (+80%)
Mutual labels:  chef, chef-cookbook, devops, hardening
chef-apache-hardening
dev-sec.io/
Stars: ✭ 24 (-70%)
Mutual labels:  chef-cookbook, chef, hardening
chef-nginx-hardening
This chef cookbook provides secure nginx configurations.
Stars: ✭ 50 (-37.5%)
Mutual labels:  chef-cookbook, chef, hardening
chef-mysql-hardening
This chef cookbook provides security configuration for mysql.
Stars: ✭ 23 (-71.25%)
Mutual labels:  chef-cookbook, chef, hardening
chef-jenkins-hardening
⛔ DEPRECATED: A secure jenkins installation
Stars: ✭ 18 (-77.5%)
Mutual labels:  chef-cookbook, chef, hardening
Chef Crowd
Chef cookbook to install Atlassian Crowd
Stars: ✭ 5 (-93.75%)
Mutual labels:  chef, chef-cookbook
Fullstack
Full-stack DevOps demo
Stars: ✭ 19 (-76.25%)
Mutual labels:  chef, devops
Mac os x
This cookbook has been deprecated
Stars: ✭ 78 (-2.5%)
Mutual labels:  chef, chef-cookbook
Kitchen In Travis
Chef cookbook example to run test-kitchen inside Travis CI.
Stars: ✭ 36 (-55%)
Mutual labels:  chef, devops
Rvm
Development repository for the rvm cookbook
Stars: ✭ 525 (+556.25%)
Mutual labels:  chef, chef-cookbook
Osquery Cookbook
A Chef Cookbook to install and configure osquery.
Stars: ✭ 11 (-86.25%)
Mutual labels:  chef, chef-cookbook
Erlang
Development repository for the erlang cookbook
Stars: ✭ 78 (-2.5%)
Mutual labels:  chef, chef-cookbook
Chef
Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale
Stars: ✭ 6,766 (+8357.5%)
Mutual labels:  chef, devops
Terraform Aws Secure Baseline
Terraform module to set up your AWS account with the secure baseline configuration based on CIS Amazon Web Services Foundations and AWS Foundational Security Best Practices.
Stars: ✭ 596 (+645%)
Mutual labels:  devops, hardening
Dotnetcore Cookbook
Chef cookbook for managing .NET Core (http://dotnet.github.io/) installation and applications on all supported platforms.
Stars: ✭ 9 (-88.75%)
Mutual labels:  chef, chef-cookbook
Nginx
Development repository for the nginx cookbook
Stars: ✭ 528 (+560%)
Mutual labels:  chef, chef-cookbook
Chef Umami
A tool to automatically generate test code for Chef cookbooks and policies.
Stars: ✭ 35 (-56.25%)
Mutual labels:  chef, chef-cookbook
Rsyslog
Development repository for the rsyslog cookbook
Stars: ✭ 66 (-17.5%)
Mutual labels:  chef, chef-cookbook
Lynis
Lynis - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional.
Stars: ✭ 9,137 (+11321.25%)
Mutual labels:  devops, hardening

windows-hardening (Chef Cookbook)

This cookbook provides recipes for ensuring that a Windows 2012 R2 system is compliant with the DevSec Windows Baseline.

Platforms

  • Windows Server 2012
  • Windows Server 2012 R2
  • Windows Server 2016
  • Windows Server 2016 Nano Server

Roadmap

This cookbook aims to be the go-to-resource to implement hardening for Windows environments. In order to achieve that plan to cover the requirements of

  • CIS Windows 2012R2
  • CIS Windows 2016
  • STIG Windows 2012R2

Any contributions to achieve that are welcome!

Coding guidelines

Use Chef resources wherever possible. Some Chef resources we use to manage Windows:

If no Chef resource is available, we prefer to use Powershell or Powershell DSC.

Testing the cookbook

Test-Kitchen

This cookbooks ships with a test-kitchen setup to verify that the implementation follows the DevSec Windows Baseline:

kitchen test

Chef Server and Chef Compliance

If you use Chef Server, you can bootstrap a node and run a Chef Compliance against them it. It is recommended to use an EC2 instance in a Chef environment, made up of a Chef Server and a Compliance Server. The following command can be used for bootstrapping a node.

knife ec2 server create --node-name windows-test --flavor t2.medium --image ami-29eb7e5a --security-group-ids sg-238e5744 --user-data win-userdata.ps1 --winrm-user Administrator --winrm-password Ch4ng3m3 --ssh-key emea-sa-shared -r 'recipe[base-win2012-hardening::enable_winrm_access]'

Please note the following:

  • To bootstrap a Windows node using Knife you need a predictable password. The win-userdata.ps1 file, in this repo, provides this.
  • You need a security group that allows winrm access and RDP access.
  • We set a run-list. The enable_winrm_access recipe prepares the node for a manual Compliance scan.

Applying at scale

This cookbook is currently in development. It does not cover all requirements to provide a fully hardened Windows environment yet. Any contributions are welcome to improve the cookbook. If you wish to apply this at scale, use a role and add the cookbook to its runlist, there is no need to apply a specific recipe.

Contributors + Kudos

Contributing

See contributor guideline.

License and Author

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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].