项目作者: nozaq

项目描述 :
Bootstrap script for Amazon Linux to comply CIS Amazon Linux Benchmark v2.0.0
高级语言: Python
项目地址: git://github.com/nozaq/amazon-linux-cis.git
创建时间: 2017-11-22T12:26:37Z
项目社区:https://github.com/nozaq/amazon-linux-cis

开源协议:MIT License

下载


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

  1. $ git clone https://github.com/nozaq/amazon-linux-cis.git .
  2. $ 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.

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