nozaq / amazon-linux-cis

Bootstrap script for Amazon Linux to comply CIS Amazon Linux Benchmark v2.0.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repositry is no longer maintained in favor of CIS hardened AMIs.

amazon-linux-cis

CircleCI Codacy Badge

Bootstrap script for Amazon Linux to comply with CIS Amazon Linux Benchmark v2.0.0.

Usage

$ git clone https://github.com/nozaq/amazon-linux-cis.git .
$ python ./amazon-linux-cis

Available Arguments

Argument (default value) What it does
--time (169.254.169.123) Specify the upstream time server
--chrony boolean (true) Use chrony for time synchronization
--no-backup Automatic config backup is disabled
--clients comma seperate list Specify a comma separated list of hostnames and host IP addresses
-v --verbose Enable verbose logging of utility
--disable-tcp-wrappers Disable installation of TCP Wrappers package
--disable-pam Disable the hardening of the PAM module
--disable-iptables Disable the installation of IPtables
--disable-mount-options Disable replacing the default /etc/fstab mounting config file

Amazon Linux 2 Support

Although the differences between Amazon Linux and Amazon Linux 2 are extensive (listed here), the majority of the changes to reach CIS compliance for Amazon Linux 2 are minor. Here's the minimum required command line needed to install the hardening on Amazon Linux 2 instances.

python ./amazon-linux-cis --disable-mount-options

Tested Environments

  • Amazon Linux 2017.09
  • Amazon Linux AMI 2018.03.0 (HVM)
  • Amazon Linux 2 - 2017.12

About

Bootstrap script for Amazon Linux to comply CIS Amazon Linux Benchmark v2.0.0

License:MIT License


Languages

Language:Python 100.0%