secure_linux_cis
Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x
- Puppet >= 5.0.0 < 7.0.0
- , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'fervid-secure_linux_cis', '3.0.0'
Learn more about managing modules with a PuppetfileDocumentation
secure_linux_cis
Table of Contents
- Description
- Setup - The basics of getting started
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
This Puppet module implements security controls defined in the Center for Internet Security (CIS) benchmarks for the following operating systems and benchmark versions:
Operating System | Benchmark Version |
---|---|
Aliyun 2 | 1.0.0 |
Amazon 2 | 1.0.0 |
CentOS 7 | 3.0.0 |
CentOS 8 | 1.0.0 |
Debian 8 | 2.0.1 |
Debian 9 | 1.0.1 |
Debian 10 | 1.0.0 |
Oracle 6 | 2.0.0 |
Oracle 7 | 3.0.0 |
Oracle 8 | 1.0.0 |
RedHat 6 | 3.0.0 |
RedHat 7 | 3.0.1 |
RedHat 8 | 1.0.0 |
SLES 12 | 2.1.0 |
SLES 15 | 1.0.0 |
Ubuntu 14.04 | 2.1.0 |
Ubuntu 16.04 | 1.1.0 |
Ubuntu 18.04 | 2.0.1 |
Ubuntu 20.04 | 1.0.0 |
CIS Benchmarks can be found here.
Setup
What secure_linux_cis affects
This module touches the:
- Kernel settings
- Bootloader configuration
- Update settings
- Firewall
- TCP wrappers
- File and directory permissions
These are good things. They keep you safe.
But, please run tests before slamming it into productions.
Beginning with secure_linux_cis
To start with Secure Linux and harden your server to CIS standards, declare the secure_linux_cis:
class.
NOTE: you will want to open up at least one firewall port. See Opening firewall ports.
Three parameters are required:
-
time_servers
Specify your enterprise's time server(s) -
profile_type
It will beworkstation
orserver
-
allow_users
At least one user needs to ssh in. NOT root
class {'::secure_linux_cis':
time_servers => ['tick.usno.navy.mil', 'tock.usno.navy.mil'],
profile_type => 'server',
allow_users => 'trusteduser',
}
Usage
Opening firewall ports
This module opens up port 22. Everythings else is shut down by default.
If using iptables (Everything but RedHat family version 8) you will need to add firewall rules.
For example we want to open up for 8080 for tomcat:
firewall { '010 tomcat http port':
chain => 'INPUT',
dport => 8080,
state => 'NEW',
action => 'accept',
proto => 'tcp',
tag => 'cis_firewall_rule',
}
Notice the tag
parameter. Include this on all firewall rules.
It ensures firewall rules are implemented in the proper order.
TCP wrappers
This module is very generous with tcp controls. It relies on firewall rules for enforecment.
You should tighten them down.
TODO: TCP wrapper example
Disabling rules with Hiera
As of enforcement for the Redhat 7 OS, there are 223 CIS rules that are either enforced or documented. Each rule relates to a class which can be turned on or off according to the needs of the system. By default, all vulnerabilities are turned ON to ensure maximum security out-of-box. This is how you would disable enforcement of a particular recommendation using Hiera:
# hieradata/common.yaml
secure_linux_cis::rules::ensure_mounting_of_squashfs_filesystems_is_disabled::enforced: false
Enabling rules with Hiera
Some recommendations are not enforced by default. For example, to enforce password-protected bootloader, a hash value for password must be present:
# hieradata/common.yaml
secure_linux_cis::rules::ensure_bootloader_password_is_set::enforced: true
secure_linux_cis::rules::ensure_bootloader_password_is_set::grub_username: root
secure_linux_cis::rules::ensure_bootloader_password_is_set::grub_pbkdf2_password_hash: grub.pbkdf2.sha512.10000.7D81626...ABC0123C616C3210CBA
NOTE: Don't use the example pbkdf2 string value. It needs to be a hash you've generated with the intended password.
See Limitations for a list of vulnerabilities that might not apply to certain system configurations
Any parameters that need to be explicitly defined can be done so in init.pp
Include usage examples for common use cases in the Usage section. Show your users how to use your module to solve problems, and be sure to include code examples. Include three to five examples of the most important or common tasks a user can accomplish with your module. Show users how to accomplish more complex tasks that involve different types, classes, and functions working in tandem.
No-Op Mode
It is possible to run the module in "No-Op Mode", which identifies detected Configuration Drifts without implementing any actual changes. This is useful for auditing the state of your system without making any changes.
puppet agent -t --noop
Limitations
RedHat family '8' OSes are not fully covered. Almost, but not quite.
Help getting this out the door would be appreciated. Also, we do not have acceptance testing completed for OracleLinux, Aliyun, or Amazon Linux.
Same deal. Any help appreciated.
Development
Please ensure PDK validation and unit tests pass.
Ideally make sure litmus tests pass too, but we understand this will be out of scope for some.
Reference
Table of Contents
Classes
secure_linux_cis
: CIS Red Hat Enterprise Linux 7 Benchmarksecure_linux_cis::distribution::centos7
: This wrapper class declares CIS controls for the CentOS Linux 7 Benchmark v2.2.0. Most of the classes are inherited from thesecure_linux_cis::distribution::centos7::cis_6_1_10
: 6.1.10 Ensure no world writable files exist (Scored)secure_linux_cis::redhat7
: This wrapper class declares CIS controls for the RedHat Enterprise Linux 7 Benchmark v2.2.0secure_linux_cis::distribution::redhat7::cis_1_1_10
: 1.1.10 Ensure noexec option set on /var/tmp partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_11
: 1.1.11 Ensure separate partition exists for /var/log (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_12
: 1.1.12 Ensure separate partition exists for /var/log/audit (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_13
: 1.1.13 Ensure separate partition exists for /home (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_14
: 1.1.14 Ensure nodev option set on /home partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_15
: 1.1.15 Ensure nodev option set on /dev/shm partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_16
: 1.1.16 Ensure nosuid option set on /dev/shm partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_17
: 1.1.17 Ensure noexec option set on /dev/shm partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_18
: 1.1.18 Ensure nodev option set on removable media partitions (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_1_19
: 1.1.19 Ensure nosuid option set on removable media partitions (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_1
: 1.1.1.1 Ensure mounting of cramfs filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_2
: 1.1.1.2 Ensure mounting of freevxfs filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_3
: 1.1.1.3 Ensure mounting of jffs2 filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_4
: 1.1.1.4 Ensure mounting of hfs filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_5
: 1.1.1.5 Ensure mounting of hfsplus filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_6
: 1.1.1.6 Ensure mounting of squashfs filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_7
: 1.1.1.7 Ensure mounting of udf filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_1_8
: 1.1.1.8 Ensure mounting of FAT filesystems is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_2
: 1.1.2 Ensure separate partition exists for /tmp (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_20
: 1.1.20 Ensure noexec option set on removable media partitions (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_1_21
: 1.1.21 Ensure sticky bit is set on all world-writable directories (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_22
: 1.1.22 Disable Automounting (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_3
: 1.1.3 Ensure nodev option set on /tmp partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_4
: 1.1.4 Ensure nosuid option set on /tmp partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_5
: 1.1.5 Ensure noexec option set on /tmp partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_6
: 1.1.6 Ensure separate partition exists for /var (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_7
: 1.1.7 Ensure separate partition exists for /var/tmp (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_8
: 1.1.8 Ensure nodev option set on /var/tmp partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_1_9
: 1.1.9 Ensure nosuid option set on /var/tmp partition (Scored)secure_linux_cis::distribution::redhat7::cis_1_2_1
: 1.2.1 Ensure package manager repositories are configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_2_2
: 1.2.2 Ensure gpgcheck is globally activated (Scored)secure_linux_cis::distribution::redhat7::cis_1_2_3
: 1.2.3 Ensure GPG keys are configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_2_4
: 1.2.4 Ensure Red Hat Subscription Manager connection is configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_2_5
: 1.2.5 Disable the rhnsd Daemon (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_3_1
: 1.3.1 Ensure AIDE is installed (Scored)secure_linux_cis::distribution::redhat7::cis_1_3_2
: 1.3.2 Ensure filesystem integrity is regularly checked (Scored)secure_linux_cis::distribution::redhat7::cis_1_4_1
: 1.4.1 Ensure permissions on bootloader config are configured (Scored)secure_linux_cis::distribution::redhat7::cis_1_4_2
: 1.4.2 Ensure bootloader password is set (Scored)secure_linux_cis::distribution::redhat7::cis_1_4_3
: 1.4.3 Ensure authentication required for single user mode (Scored)secure_linux_cis::distribution::redhat7::cis_1_5_1
: 1.5.1 Ensure core dumps are restricted (Scored)secure_linux_cis::distribution::redhat7::cis_1_5_2
: 1.5.2 Ensure XD/NX support is enabled (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_5_3
: 1.5.3 Ensure address space layout randomization (ASLR) is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_5_4
: 1.5.4 Ensure prelink is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_1_6_1_1
: 1.6.1.1 Ensure SELinux is not disabled in bootloader configuration (Scored)secure_linux_cis::distribution::redhat7::cis_1_6_1_2
: 1.6.1.2 Ensure the SELinux state is enforcing (Scored)secure_linux_cis::distribution::redhat7::cis_1_6_1_3
: 1.6.1.3 Ensure SELinux policy is configured (Scored)secure_linux_cis::distribution::redhat7::cis_1_6_1_4
: 1.6.1.4 Ensure SETroubleshoot is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_1_6_1_5
: 1.6.1.5 Ensure the MCS Translation Service (mcstrans) is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_1_6_1_6
: 1.6.1.6 Ensure no unconfined daemons exist (Scored)secure_linux_cis::distribution::redhat7::cis_1_6_2
: 1.6.2 Ensure SELinux is installed (Scored)secure_linux_cis::distribution::redhat7::cis_1_7_1_1
: 1.7.1.1 Ensure message of the day is configured properly (Scored)secure_linux_cis::distribution::redhat7::cis_1_7_1_2
: 1.7.1.2 Ensure local login warning banner is configured properly (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_7_1_3
: 1.7.1.3 Ensure remote login warning banner is configured properly (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_7_1_4
: 1.7.1.4 Ensure permissions on /etc/motd are configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_7_1_5
: 1.7.1.5 Ensure permissions on /etc/issue are configured (Scored)secure_linux_cis::distribution::redhat7::cis_1_7_1_6
: 1.7.1.6 Ensure permissions on /etc/issue.net are configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_1_7_2
: 1.7.2 Ensure GDM login banner is configured (Scored)secure_linux_cis::distribution::redhat7::cis_1_8
: 1.8 Ensure updates, patches, and additional security software are installed (Scored)secure_linux_cis::distribution::redhat7::cis_2_1_1
: 2.1.1 Ensure chargen services are not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_1_2
: 2.1.2 Ensure daytime services are not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_1_3
: 2.1.3 Ensure discard services are not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_1_4
: 2.1.4 Ensure echo services are not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_1_5
: 2.1.5 Ensure time services are not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_1_6
: 2.1.6 Ensure tftp server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_1_7
: 2.1.7 Ensure xinetd is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_10
: 2.2.10 Ensure HTTP server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_11
: 2.2.11 Ensure IMAP and POP3 server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_12
: 2.2.12 Ensure Samba is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_13
: 2.2.13 Ensure HTTP Proxy Server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_14
: 2.2.14 Ensure SNMP Server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_15
: 2.2.15 Ensure mail transfer agent is configured for local-only mode (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_16
: 2.2.16 Ensure NIS Server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_17
: 2.2.17 Ensure rsh server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_18
: 2.2.18 Ensure talk server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_19
: 2.2.19 Ensure telnet server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_1_1
: 2.2.1.1 Ensure time synchronization is in use (Not Scored)secure_linux_cis::distribution::redhat7::cis_2_2_1_2
: 2.2.1.2 Ensure ntp is configured (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_1_3
: 2.2.1.3 Ensure chrony is configured (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_2
: 2.2.2 Ensure X Window System is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_20
: 2.2.20 Ensure tftp server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_21
: 2.2.21 Ensure rsync service is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_3
: 2.2.3 Ensure Avahi Server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_4
: 2.2.4 Ensure CUPS is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_5
: 2.2.5 Ensure DHCP Server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_6
: 2.2.6 Ensure LDAP server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_7
: 2.2.7 Ensure NFS and RPC are not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_8
: 2.2.8 Ensure DNS Server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_2_9
: 2.2.9 Ensure FTP Server is not enabled (Scored)secure_linux_cis::distribution::redhat7::cis_2_3_1
: 2.3.1 Ensure NIS Client is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_2_3_2
: 2.3.2 Ensure rsh client is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_2_3_3
: 2.3.3 Ensure talk client is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_2_3_4
: 2.3.4 Ensure telnet client is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_2_3_5
: 2.3.5 Ensure LDAP client is not installed (Scored)secure_linux_cis::distribution::redhat7::cis_3_1_1
: 3.1.1 Ensure IP forwarding is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_3_1_2
: 3.1.2 Ensure packet redirect sending is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_1
: 3.2.1 Ensure source routed packets are not accepted (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_2
: 3.2.2 Ensure ICMP redirects are not accepted (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_3
: 3.2.3 Ensure secure ICMP redirects are not accepted (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_4
: 3.2.4 Ensure suspicious packets are logged (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_5
: 3.2.5 Ensure broadcast ICMP requests are ignored (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_6
: 3.2.6 Ensure bogus ICMP responses are ignored (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_7
: 3.2.7 Ensure Reverse Path Filtering is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_3_2_8
: 3.2.8 Ensure TCP SYN Cookies is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_3_3_1
: 3.3.1 Ensure IPv6 router advertisements are not accepted (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_3_2
: 3.3.2 Ensure IPv6 redirects are not accepted (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_3_3
: 3.3.3 Ensure IPv6 is disabled (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_4_1
: 3.4.1 Ensure TCP Wrappers is installed (Scored)secure_linux_cis::distribution::redhat7::cis_3_4_2
: 3.4.2 Ensure /etc/hosts.allow is configured (Scored)secure_linux_cis::distribution::redhat7::cis_3_4_3
: 3.4.3 Ensure /etc/hosts.deny is configured (Scored)secure_linux_cis::distribution::redhat7::cis_3_4_4
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_3_4_5
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_3_5_1
: 3.5.1 Ensure DCCP is disabled (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_5_2
: 3.5.2 Ensure SCTP is disabled (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_5_3
: 3.5.3 Ensure RDS is disabled (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_5_4
: 3.5.4 Ensure TIPC is disabled (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_6_1
: 3.6.1 Ensure iptables is installed (Scored)secure_linux_cis::distribution::redhat7::cis_3_6_2
: 3.6.2 Ensure default deny firewall policy (Scored)secure_linux_cis::distribution::redhat7::cis_3_6_3
: 3.6.3 Ensure loopback traffic is configured (Scored)secure_linux_cis::distribution::redhat7::cis_3_6_4
: 3.6.4 Ensure outbound and established connections are configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_3_6_5
: 3.6.5 Ensure firewall rules exist for all open ports (Scored)secure_linux_cis::distribution::redhat7::cis_3_7
: 3.7 Ensure wireless interfaces are disabled (Not Scored)secure_linux_cis::distribution::redhat7::cis_4_1_10
: 4.1.10 Ensure discretionary access control permission modification events are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_11
: 4.1.11 Ensure unsuccessful unauthorized file access attempts are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_12
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_4_1_13
: 4.1.13 Ensure successful file system mounts are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_14
: 4.1.14 Ensure file deletion events by users are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_15
: 4.1.15 Ensure changes to system administration scope (sudoers) is collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_16
: 4.1.16 Ensure system administrator actions (sudolog) are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_17
: 4.1.17 Ensure kernel module loading and unloading is collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_18
: 4.1.18 Ensure the audit configuration is immutable (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_1_1
: 4.1.1.1 Ensure audit log storage size is configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_4_1_1_2
: 4.1.1.2 Ensure system is disabled when audit logs are full (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_1_3
: 4.1.1.3 Ensure audit logs are not automatically deleted (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_2
: 4.1.2 Ensure auditd service is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_3
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_4_1_4
: 4.1.4 Ensure events that modify date and time information are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_5
: 4.1.5 Ensure events that modify user/group information are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_6
: 4.1.6 Ensure events that modify the system's network environment are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_7
: 4.1.7 Ensure events that modify the system's Mandatory Access Controls are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_8
: 4.1.8 Ensure login and logout events are collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_1_9
: 4.1.9 Ensure session initiation information is collected (Scored)secure_linux_cis::distribution::redhat7::cis_4_2_1_1
: 4.2.1.1 Ensure rsyslog Service is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_4_2_1_2
: 4.2.1.2 Ensure logging is configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_4_2_1_3
: 4.2.1.3 Ensure rsyslog default file permissions configured (Scored)secure_linux_cis::distribution::redhat7::cis_4_2_1_4
: 4.2.1.4 Ensure rsyslog is configured to send logs to a remote log host (Scored)secure_linux_cis::distribution::redhat7::cis_4_2_1_5
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_4_2_2_1
: 4.2.2.1 Ensure syslog-ng service is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_4_2_2_2
: 4.2.2.2 Ensure logging is configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_4_2_2_3
: 4.2.2.3 Ensure syslog-ng default file permissions configured (Scored)secure_linux_cis::distribution::redhat7::cis_4_2_2_4
: 4.2.2.4 Ensure syslog-ng is configured to send logs to a remote log host (Not Scored)secure_linux_cis::distribution::redhat7::cis_4_2_2_5
: 4.2.2.5 Ensure remote syslog-ng messages are only accepted on designated log hosts (Not Scored)secure_linux_cis::distribution::redhat7::cis_4_2_3
: 4.2.3 Ensure rsyslog or syslog-ng is installed (Scored)secure_linux_cis::distribution::redhat7::cis_4_2_4
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_4_3
: 4.3 Ensure logrotate is configured (Not Scored)secure_linux_cis::distribution::redhat7::cis_5_1_1
: 5.1.1 Ensure cron daemon is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_5_1_2
: 5.1.2 Ensure permissions on /etc/crontab are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_1_3
: 5.1.3 Ensure permissions on /etc/cron.hourly are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_1_4
: 5.1.4 Ensure permissions on /etc/cron.daily are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_1_5
: 5.1.5 Ensure permissions on /etc/cron.weekly are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_1_6
: 5.1.6 Ensure permissions on /etc/cron.monthly are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_1_7
: 5.1.7 Ensure permissions on /etc/cron.d are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_1_8
: 5.1.8 Ensure at/cron is restricted to authorized users (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_1
: 5.2.1 Ensure permissions on /etc/ssh/sshd_config are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_10
: 5.2.10 Ensure SSH PermitUserEnvironment is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_11
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_5_2_12
: 5.2.12 Ensure SSH Idle Timeout Interval is configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_13
: 5.2.13 Ensure SSH LoginGraceTime is set to one minute or less (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_14
: 5.2.14 Ensure SSH access is limited (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_15
: 5.2.15 Ensure SSH warning banner is configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_2
: 5.2.2 Ensure SSH Protocol is set to 2 (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_3
: 5.2.3 Ensure SSH LogLevel is set to INFO (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_4
: 5.2.4 Ensure SSH X11 forwarding is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_5
: 5.2.5 Ensure SSH MaxAuthTries is set to 4 or less (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_6
: 5.2.6 Ensure SSH IgnoreRhosts is enabled (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_7
: 5.2.7 Ensure SSH HostbasedAuthentication is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_8
: 5.2.8 Ensure SSH root login is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_5_2_9
: 5.2.9 Ensure SSH PermitEmptyPasswords is disabled (Scored)secure_linux_cis::distribution::redhat7::cis_5_3_1
: 5.3.1 Ensure password creation requirements are configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_3_2
: 5.3.2 Ensure lockout for failed password attempts is configured (Scored)secure_linux_cis::distribution::redhat7::cis_5_3_3
: 5.3.3 Ensure password reuse is limited (Scored)secure_linux_cis::distribution::redhat7::cis_5_3_4
: A short summary of the purpose of this classsecure_linux_cis::distribution::redhat7::cis_5_4_1_1
: 5.4.1.1 Ensure password expiration is 365 days or less (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_1_2
: 5.4.1.2 Ensure minimum days between password changes is 7 or more (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_1_3
: 5.4.1.3 Ensure password expiration warning days is 7 or more (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_1_4
: 5.4.1.4 Ensure inactive password lock is 30 days or less (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_1_5
: 5.4.1.5 Ensure all users last password change date is in the past (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_2
: 5.4.2 Ensure system accounts are non-login (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_3
: 5.4.3 Ensure default group for the root account is GID 0 (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_4
: 5.4.4 Ensure default user umask is 027 or more restrictive (Scored)secure_linux_cis::distribution::redhat7::cis_5_4_5
: The TMOUT parameter has been added in 5_4_4secure_linux_cis::distribution::redhat7::cis_5_6
: 5.6 Ensure access to the su command is restricted (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_10
: 6.1.10 Ensure no world writable files exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_11
: 6.1.11 Ensure no unowned files or directories exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_12
: 6.1.12 Ensure no ungrouped files or directories exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_2
: 6.1.2 Ensure permissions on /etc/passwd are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_3
: 6.1.3 Ensure permissions on /etc/shadow are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_4
: 6.1.4 Ensure permissions on /etc/group are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_5
: 6.1.5 Ensure permissions on /etc/gshadow are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_6
: 6.1.6 Ensure permissions on /etc/passwd- are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_7
: 6.1.7 Ensure permissions on /etc/shadow- are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_8
: 6.1.8 Ensure permissions on /etc/group- are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_1_9
: 6.1.9 Ensure permissions on /etc/gshadow- are configured (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_1
: 6.2.1 Ensure password fields are not empty (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_10
: 6.2.10 Ensure users' dot files are not group or world writable (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_11
: 6.2.11 Ensure no users have .forward files (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_12
: 6.2.12 Ensure no users have .netrc files (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_13
: 6.2.13 Ensure users' .netrc Files are not group or world accessiblesecure_linux_cis::distribution::redhat7::cis_6_2_14
: 6.2.14 Ensure no users have .rhosts files (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_15
: 6.2.15 Ensure all groups in /etc/passwd exist in /etc/group (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_16
: 6.2.16 Ensure no duplicate UIDs exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_17
: 6.2.17 Ensure no duplicate GIDs exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_18
: 6.2.18 Ensure no duplicate user names exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_19
: 6.2.19 Ensure no duplicate group names exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_2
: 6.2.2 Ensure no legacy "+" entries exist in /etc/passwd (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_3
: 6.2.3 Ensure no legacy "+" entries exist in /etc/shadow (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_4
: 6.2.4 Ensure no legacy "+" entries exist in /etc/group (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_5
: 6.2.5 Ensure root is the only UID 0 account (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_6
: 6.2.6 Ensure root PATH Integrity (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_7
: 6.2.7 Ensure all users' home directories exist (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_8
: 6.2.8 Ensure users' home directories permissions are 750 or more restrictive (Scored)secure_linux_cis::distribution::redhat7::cis_6_2_9
: 6.2.9 Ensure users own their home directories (Scored)
Defined types
secure_linux_cis::mount_options
: Check and fix a mount with a single option
Classes
secure_linux_cis
CIS Red Hat Enterprise Linux 7 Benchmark
Examples
include secure_linux_cis
Parameters
The following parameters are available in the secure_linux_cis
class.
time_servers
Data type: Array[String]
Array of valid NTP Time servers
Default value: []
logging
Data type: Enum['rsyslog', 'syslog-ng', 'none']
How logging is done
Default value: 'rsyslog'
logging_host
Data type: String
Which host should logging be sent to
Default value: ''
is_logging_host
Data type: Boolean
Is this host a logging host
Default value: false
max_log_file
Data type: Integer
Maximum log file
Default value: 8
max_auth_tries
Data type: Enum['1', '2', '3', '4']
How many authorization attempts to allow
Default value: '4'
time_sync
Data type: Enum['ntp', 'chrony', 'none']
Which NTP program to use
Default value: 'none'
ipv6_enabled
Data type: Boolean
Should ipv6 be enabled
Default value: false
approved_mac_algorithms
Data type: Array
Which algorigthms are approved for use
Default value: ['hmac-sha2-512-etm@openssh.com','hmac-sha2-256-etm@openssh.com','umac-128-etm@openssh.com', 'hmac-sha2-512','hmac-sha2-256','umac-128@openssh.com']
client_alive_interval
Data type: Integer
Client alive interval to use
Default value: 300
client_alive_count_max
Data type: Enum['0','1','2','3']
Maximum specificed client alive count
Default value: '0'
login_grace_time
Data type: Integer
Login grace time
Default value: 60
allow_users
Data type: Array[String]
Which users to allow
Default value: []
allow_groups
Data type: Array[String]
Which groups to allow
Default value: []
deny_users
Data type: Array[String]
Which users to deny
Default value: []
deny_groups
Data type: Array[String]
Which groups to deny
Default value: []
minlen
Data type: Integer
Minimum length
Default value: 14
dcredit
Data type: Integer
D Credit
Default value: -
ucredit
Data type: Integer
U Credit
Default value: -
ocredit
Data type: Integer
O Credit
Default value: -
lcredit
Data type: Integer
L Credit
Default value: -
attempts
Data type: Integer
Number of attempts
Default value: 5
lockout_time
Data type: Integer
Amount of time for lockout
Default value: 900
past_passwords
Data type: Integer
Number of previous passwords
Default value: 5
pass_max_days
Data type: Integer
Password maximum days
Default value: 90
pass_min_days
Data type: Integer
Password minimum days
Default value: 7
pass_warn_days
Data type: Integer
Password warning days
Default value: 7
repolist
Data type: Array
List of acceptable software repos
Default value: ['updates/7/x86_64','rhel-7-server-rpms/7Server/x86_64']
secure_linux_cis::distribution::centos7
This is a wrapper class that declares the CIS controls for CentOS Linux 7
The CentOS Linux 7 CIS Benchmark is updated for version: 2.2.0
The benchmark can be found here: https://downloads.cisecurity.org/
redhat7 manifest, as the two have nearly identical benchmarks
Examples
include secure_linux_cis::redhat7
Parameters
The following parameters are available in the secure_linux_cis::distribution::centos7
class.
time_servers
Data type: Array[String]
Array of valid NTP Time servers
Default value: []
logging
Data type: Enum['rsyslog', 'syslog-ng', 'none']
How logging is done
Default value: 'rsyslog'
logging_host
Data type: String
Which host should logging be sent to
Default value: ''
is_logging_host
Data type: Boolean
Is this host a logging host
Default value: false
max_log_file
Data type: Integer
Maximum log file
Default value: 8
max_auth_tries
Data type: Enum['1', '2', '3', '4']
How many authorization attempts to allow
Default value: '4'
time_sync
Data type: Enum['ntp', 'chrony', 'none']
Which NTP program to use
Default value: 'ntp'
ipv6_enabled
Data type: Boolean
Should ipv6 be enabled
Default value: false
approved_mac_algorithms
Data type: Array
Which algorigthms are approved for use
Default value: ['hmac-sha2-512-etm@openssh.com','hmac-sha2-256-etm@openssh.com','umac-128-etm@openssh.com', #lint:ignore:140chars 'hmac-sha2-512','hmac-sha2-256','umac-128@openssh.com']
client_alive_interval
Data type: Integer
Client alive interval to use
Default value: 300
client_alive_count_max
Data type: Enum['0','1','2','3']
Maximum specificed client alive count
Default value: '0'
login_grace_time
Data type: Integer
Login grace time
Default value: 60
allow_users
Data type: Array[String]
Which users to allow
Default value: []
allow_groups
Data type: Array[String]
Which groups to allow
Default value: []
deny_users
Data type: Array[String]
Which users to deny
Default value: []
deny_groups
Data type: Array[String]
Which groups to deny
Default value: []
minlen
Data type: Integer
Minimum length
Default value: 14
dcredit
Data type: Integer
D Credit
Default value: -
ucredit
Data type: Integer
U Credit
Default value: -
ocredit
Data type: Integer
O Credit
Default value: -
lcredit
Data type: Integer
L Credit
Default value: -
attempts
Data type: Integer
Number of attempts
Default value: 5
lockout_time
Data type: Integer
Amount of time for lockout
Default value: 900
past_passwords
Data type: Integer
Number of previous passwords
Default value: 5
pass_max_days
Data type: Integer
Password maximum days
Default value: 90
pass_min_days
Data type: Integer
Password minimum days
Default value: 7
pass_warn_days
Data type: Integer
Password warning days
Default value: 7
repolist
Data type: Array
List of acceptable software repos
Default value: ['updates/7/x86_64']
motd
Data type: Optional[String]
Optional content of /etc/motd. Falls back to optional value of $banner if not defined
Default value: undef
banner
Data type: Optional[String]
Content of /etc/issue and /etc/issue.net
Default value: undef
auto_restart
Data type: Boolean
Restart when defined classes make changes that require a reboot to take effect
Default value: false
secure_linux_cis::distribution::centos7::cis_6_1_10
6.1.10 Ensure no world writable files exist (Scored)
Description: Unix-based systems support variable settings to control access to files. World writable files are the least secure. See the chmod(2) man page for more information.
Examples
include secure_linux_cis::distribution::redhat7::cis_6_1_10
Parameters
The following parameters are available in the secure_linux_cis::distribution::centos7::cis_6_1_10
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::redhat7
This is a wrapper class that declares the CIS controls for RedHat Enterprise Linux 7
The RedHat 7 CIS Benchmark is updated for version: 2.2.0
The benchmark can be found here: https://downloads.cisecurity.org/
Examples
include secure_linux_cis::redhat7
Parameters
The following parameters are available in the secure_linux_cis::redhat7
class.
time_servers
Data type: Array[String]
Array of valid NTP Time servers
Default value: []
logging
Data type: Enum['rsyslog', 'syslog-ng', 'none']
How logging is done
Default value: 'rsyslog'
logging_host
Data type: String
Which host should logging be sent to
Default value: ''
is_logging_host
Data type: Boolean
Is this host a logging host
Default value: false
max_log_file
Data type: Integer
Maximum log file
Default value: 8
max_auth_tries
Data type: Enum['1', '2', '3', '4']
How many authorization attempts to allow
Default value: '4'
time_sync
Data type: Enum['ntp', 'chrony', 'none']
Which NTP program to use
Default value: 'ntp'
ipv6_enabled
Data type: Boolean
Should ipv6 be enabled
Default value: false
approved_mac_algorithms
Data type: Array
Which algorigthms are approved for use
Default value: ['hmac-sha2-512-etm@openssh.com','hmac-sha2-256-etm@openssh.com','umac-128-etm@openssh.com', #lint:ignore:140chars 'hmac-sha2-512','hmac-sha2-256','umac-128@openssh.com']
client_alive_interval
Data type: Integer
Client alive interval to use
Default value: 300
client_alive_count_max
Data type: Enum['0','1','2','3']
Maximum specificed client alive count
Default value: '0'
login_grace_time
Data type: Integer
Login grace time
Default value: 60
allow_users
Data type: Array[String]
Which users to allow
Default value: []
allow_groups
Data type: Array[String]
Which groups to allow
Default value: []
deny_users
Data type: Array[String]
Which users to deny
Default value: []
deny_groups
Data type: Array[String]
Which groups to deny
Default value: []
minlen
Data type: Integer
Minimum length
Default value: 14
dcredit
Data type: Integer
D Credit
Default value: -
ucredit
Data type: Integer
U Credit
Default value: -
ocredit
Data type: Integer
O Credit
Default value: -
lcredit
Data type: Integer
L Credit
Default value: -
attempts
Data type: Integer
Number of attempts
Default value: 5
lockout_time
Data type: Integer
Amount of time for lockout
Default value: 900
past_passwords
Data type: Integer
Number of previous passwords
Default value: 5
pass_max_days
Data type: Integer
Password maximum days
Default value: 90
pass_min_days
Data type: Integer
Password minimum days
Default value: 7
pass_warn_days
Data type: Integer
Password warning days
Default value: 7
pass_inactive_days
Data type: Integer
Password inactive days
Default value: 30
repolist
Data type: Array
List of acceptable software repos
Default value: ['rhel-7-server-rpms/7Server/x86_64']
motd
Data type: Optional[String]
Optional content of /etc/motd. Falls back to optional value of $banner if not defined
Default value: undef
banner
Data type: Optional[String]
Content of /etc/issue and /etc/issue.net
Default value: undef
auto_restart
Data type: Boolean
Restart when defined classes make changes that require a reboot to take effect
Default value: false
secure_linux_cis::distribution::redhat7::cis_1_1_10
1.1.10 Ensure noexec option set on /var/tmp partition (Scored)
Description: The noexec mount option specifies that the filesystem cannot contain executable binaries.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_10
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_10
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_11
1.1.11 Ensure separate partition exists for /var/log (Scored)
Description: The /var/log directory is used by system services to store log data
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_11
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_11
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_12
1.1.12 Ensure separate partition exists for /var/log/audit (Scored)
Description: The auditing daemon, auditd , stores log data in the /var/log/audit directory.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_12
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_12
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_13
1.1.13 Ensure separate partition exists for /home (Scored)
Description: The /home directory is used to support disk storage needs of local users.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_13
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_13
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_14
1.1.14 Ensure nodev option set on /home partition (Scored)
Description: The nodev mount option specifies that the filesystem cannot contain special devices.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_14
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_14
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_15
1.1.15 Ensure nodev option set on /dev/shm partition (Scored)
Description: The nodev mount option specifies that the filesystem cannot contain special devices.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_15
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_15
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_16
1.1.16 Ensure nosuid option set on /dev/shm partition (Scored)
Description: The nosuid mount option specifies that the filesystem cannot contain setuid files.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_16
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_16
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_17
1.1.17 Ensure noexec option set on /dev/shm partition (Scored)
Description: The noexec mount option specifies that the filesystem cannot contain executable binaries.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_17
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_17
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_18
1.1.18 Ensure nodev option set on removable media partitions (Not Scored)
Description: The nodev mount option specifies that the filesystem cannot contain special devices.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_18
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_18
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_19
1.1.19 Ensure nosuid option set on removable media partitions (Not Scored)
Description: The nosuid mount option specifies that the filesystem cannot contain setuid files.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_19
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_19
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_1
1.1.1.1 Ensure mounting of cramfs filesystems is disabled (Scored)
Description: The cramfs filesystem type is a compressed read-only Linux filesystem embedded in small footprint systems. A cramfs image can be used without having to first decompress the image.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the server. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_2
1.1.1.2 Ensure mounting of freevxfs filesystems is disabled (Scored)
Description: The freevxfs filesystem type is a free version of the Veritas type filesystem. This is the primary filesystem type for HP-UX operating systems.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_3
1.1.1.3 Ensure mounting of jffs2 filesystems is disabled (Scored)
Description: The jffs2 (journaling flash filesystem 2) filesystem type is a log-structured filesystem used in flash memory devices.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_4
1.1.1.4 Ensure mounting of hfs filesystems is disabled (Scored)
Description: The hfs filesystem type is a hierarchical filesystem that allows you to mount Mac OS filesystems.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_4
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_4
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_5
1.1.1.5 Ensure mounting of hfsplus filesystems is disabled (Scored)
Description: The hfsplus filesystem type is a hierarchical filesystem designed to replace hfs that allows you to mount Mac OS filesystems.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_5
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_5
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_6
1.1.1.6 Ensure mounting of squashfs filesystems is disabled (Scored)
Description: The squashfs filesystem type is a compressed read-only Linux filesystem embedded in small footprint systems (similar to cramfs ). A squashfs image can be used without having to first decompress the image.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_6
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_6
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_7
1.1.1.7 Ensure mounting of udf filesystems is disabled (Scored)
Description: The udf filesystem type is the universal disk format used to implement ISO/IEC 13346 and ECMA-167 specifications. This is an open vendor filesystem type for data storage on a broad range of media. This filesystem type is necessary to support writing DVDs and newer optical disc formats.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_7
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_7
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_1_8
1.1.1.8 Ensure mounting of FAT filesystems is disabled (Scored)
Description: The FAT filesystem format is primarily used on older windows systems and portable USB drives or flash modules. It comes in three types FAT12 , FAT16 , and FAT32 all of which are supported by the vfat kernel module.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_1_8
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_1_8
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_2
1.1.2 Ensure separate partition exists for /tmp (Scored)
Description: The /tmp directory is a world-writable directory used for temporary storage by all users and some applications.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_20
1.1.20 Ensure noexec option set on removable media partitions (Not Scored)
Description: The noexec mount option specifies that the filesystem cannot contain executable binaries.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_20
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_20
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_21
1.1.21 Ensure sticky bit is set on all world-writable directories (Scored)
Description: Setting the sticky bit on world writable directories prevents users from deleting or renaming files in that directory that are not owned by them.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_21
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_21
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_22
1.1.22 Disable Automounting (Scored)
Description: autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_22
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_22
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_3
1.1.3 Ensure nodev option set on /tmp partition (Scored)
Description: The nodev mount option specifies that the filesystem cannot contain special devices.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_4
1.1.4 Ensure nosuid option set on /tmp partition (Scored)
Description: The nosuid mount option specifies that the filesystem cannot contain setuid files.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_4
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_4
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_5
1.1.5 Ensure noexec option set on /tmp partition (Scored)
Description: The noexec mount option specifies that the filesystem cannot contain executable binaries.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_5
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_5
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_6
1.1.6 Ensure separate partition exists for /var (Scored)
Description: The /var directory is used by daemons and other system services to temporarily store dynamic data. Some directories created by these processes may be world-writable.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_6
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_6
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_7
1.1.7 Ensure separate partition exists for /var/tmp (Scored)
Description: The /var/tmp directory is a world-writable directory used for temporary storage by all users and some applications.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_7
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_7
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_8
1.1.8 Ensure nodev option set on /var/tmp partition (Scored)
Description: The nodev mount option specifies that the filesystem cannot contain special devices.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_8
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_8
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_1_9
1.1.9 Ensure nosuid option set on /var/tmp partition (Scored)
Description: The nosuid mount option specifies that the filesystem cannot contain setuid files.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_1_9
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_1_9
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_2_1
1.2.1 Ensure package manager repositories are configured (Not Scored)
Description: Systems need to have package manager repositories configured to ensure they receive the latest patches and updates.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_2_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_2_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_2_2
1.2.2 Ensure gpgcheck is globally activated (Scored)
Description: Most packages managers implement GPG key signing to verify package integrity during installation.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_2_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_2_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_2_3
1.2.3 Ensure GPG keys are configured (Not Scored)
Description: The gpgcheck option, found in the main section of the /etc/yum.conf and individual /etc/yum/repos.d/* files determines if an RPM package's signature is checked prior to its installation.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_2_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_2_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_2_4
1.2.4 Ensure Red Hat Subscription Manager connection is configured (Not Scored)
Description: Systems need to be registered with the Red Hat Subscription Manager (RHSM) to receive patch updates. This is usually configured during initial installation.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_2_4
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_2_4
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_2_5
1.2.5 Disable the rhnsd Daemon (Not Scored)
Description: The rhnsd daemon polls the Red Hat Network web site for scheduled actions and, if there are, executes those actions.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_2_5
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_2_5
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_3_1
1.3.1 Ensure AIDE is installed (Scored)
Description: AIDE takes a snapshot of filesystem state including modification times, permissions, and file hashes which can then be used to compare against the current state of the filesystem to detect modifications to the system.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_3_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_3_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_3_2
1.3.2 Ensure filesystem integrity is regularly checked (Scored)
Description: Periodic checking of the filesystem integrity is needed to detect changes to the filesystem.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_3_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_3_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_4_1
1.4.1 Ensure permissions on bootloader config are configured (Scored)
Description: The grub configuration file contains information on boot settings and passwords for unlocking boot options. The grub configuration is usually located at /boot/grub2/grub.cfg and linked as /etc/grub2.cfg. Additional settings can be found in the /boot/grub2/user.cfg file.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_4_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_4_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_4_2
1.4.2 Ensure bootloader password is set (Scored)
Description: Setting the boot loader password will require that anyone rebooting the system must enter a password before being able to set command line boot parameters
Examples
include secure_linux_cis::distribution::redhat7::cis_1_4_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_4_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_4_3
1.4.3 Ensure authentication required for single user mode (Scored)
Description: ingle user mode (rescue mode) is used for recovery when the system detects an issue during boot or by manual selection from the bootloader.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_4_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_4_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_5_1
1.5.1 Ensure core dumps are restricted (Scored)
Description: A core dump is the memory of an executable program. It is generally used to determine why a program aborted. It can also be used to glean confidential information from a core file. The system provides the ability to set a soft limit for core dumps, but this can be overridden by the user.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_5_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_5_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_5_2
1.5.2 Ensure XD/NX support is enabled (Not Scored)
Description: Recent processors in the x86 family support the ability to prevent code execution on a per memory page basis. Generically and on AMD processors, this ability is called No Execute (NX), while on Intel processors it is called Execute Disable (XD). This ability can help prevent exploitation of buffer overflow vulnerabilities and should be activated whenever possible. Extra steps must be taken to ensure that this protection is enabled, particularly on 32-bit x86 systems. Other processors, such as # Itanium and POWER, have included such support since inception and the standard kernel for those platforms supports the feature.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_5_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_5_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_5_3
1.5.3 Ensure address space layout randomization (ASLR) is enabled (Scored)
Description: Address space layout randomization (ASLR) is an exploit mitigation technique which randomly arranges the address space of key data areas of a process.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_5_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_5_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_5_4
1.5.4 Ensure prelink is disabled (Scored)
Description: prelinkis a program that modifies ELF shared libraries and ELF dynamically linked binaries in such a way that the time needed for the dynamic linker to perform relocations at startup significantly decreases.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_5_4
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_5_4
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_6_1_1
1.6.1.1 Ensure SELinux is not disabled in bootloader configuration (Scored)
Description: Configure SELINUX to be enabled at boot time and verify that it has not been overwritten by the grub boot parameters.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_6_1_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_6_1_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_6_1_2
1.6.1.2 Ensure the SELinux state is enforcing (Scored)
Description: Set SELinux to enable when the system is booted.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_6_1_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_6_1_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_6_1_3
1.6.1.3 Ensure SELinux policy is configured (Scored)
Description: Configure SELinux to meet or exceed the default targeted policy, which constrains daemons and system software only.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_6_1_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_6_1_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_6_1_4
1.6.1.4 Ensure SETroubleshoot is not installed (Scored)
Description: The SETroubleshoot service notifies desktop users of SELinux denials through a user- friendly interface. The service provides important information around configuration errors, unauthorized intrusions, and other potential errors.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_6_1_4
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_6_1_4
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_6_1_5
1.6.1.5 Ensure the MCS Translation Service (mcstrans) is not installed (Scored)
Description: The mcstransd daemon provides category label information to client processes requesting information. The label translations are defined in /etc/selinux/targeted/setrans.conf
Examples
include secure_linux_cis::distribution::redhat7::cis_1_6_1_5
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_6_1_5
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_6_1_6
1.6.1.6 Ensure no unconfined daemons exist (Scored)
Description: Daemons that are not defined in SELinux policy will inherit the security context of their parent process.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_6_1_6
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_6_1_6
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_6_2
1.6.2 Ensure SELinux is installed (Scored)
Description: SELinux provides Mandatory Access Controls.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_6_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_6_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_7_1_1
1.7.1.1 Ensure message of the day is configured properly (Scored)
Description: The contents of the /etc/motd file are displayed to users after login and function as a message of the day for authenticated users. Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If mingetty(8) supports the following options, they display operating system information: \m - machine architecture \r - operating system release \s - operating system name \v - operating system version
Examples
include secure_linux_cis::distribution::redhat7::cis_1_7_1_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_7_1_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_7_1_2
1.7.1.2 Ensure local login warning banner is configured properly (Not Scored)
Description: The contents of the /etc/issue file are displayed to users prior to login for local terminals. Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If mingetty(8) supports the following options, they display operating system information: \m - machine architecture \r - operating system release \s - operating system name \v - operating system version
Examples
include secure_linux_cis::distribution::redhat7::cis_1_7_1_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_7_1_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_7_1_3
1.7.1.3 Ensure remote login warning banner is configured properly (Not Scored)
Description: The contents of the /etc/issue.net file are displayed to users prior to login for remote connections from configured services. Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If mingetty(8) supports the following options, they display operating system information: \m - machine architecture \r - operating system release \s - operating system name \v - operating system version
Examples
include secure_linux_cis::distribution::redhat7::cis_1_7_1_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_7_1_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_7_1_4
1.7.1.4 Ensure permissions on /etc/motd are configured (Not Scored)
Description: The contents of the /etc/motd file are displayed to users after login and function as a message of the day for authenticated users.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_7_1_4
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_7_1_4
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
motd
Data type: Optional[String]
Optional content of /etc/motd. Falls back to optional value of $banner if not defined
Default value: undef
banner
Data type: Optional[String]
Content of /etc/issue and /etc/issue.net
Default value: undef
secure_linux_cis::distribution::redhat7::cis_1_7_1_5
1.7.1.5 Ensure permissions on /etc/issue are configured (Scored)
Description: The contents of the /etc/issue file are displayed to users prior to login for local terminals.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_7_1_5
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_7_1_5
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
banner
Data type: Optional[String]
Content of /etc/issue
Default value: undef
secure_linux_cis::distribution::redhat7::cis_1_7_1_6
1.7.1.6 Ensure permissions on /etc/issue.net are configured (Not Scored)
Description: The contents of the /etc/issue.net file are displayed to users prior to login for remote connections from configured services.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_7_1_6
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_7_1_6
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
banner
Data type: Optional[String]
Content of /etc/issue.net
Default value: undef
secure_linux_cis::distribution::redhat7::cis_1_7_2
1.7.2 Ensure GDM login banner is configured (Scored)
Description: GDM is the GNOME Display Manager which handles graphical login for GNOME based systems.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_7_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_7_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_1_8
1.8 Ensure updates, patches, and additional security software are installed (Scored)
Description: Periodically patches are released for included software either due to security flaws or to include additional functionality.
Examples
include secure_linux_cis::distribution::redhat7::cis_1_8
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_1_8
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_1_1
2.1.1 Ensure chargen services are not enabled (Scored)
Description: chargenis a network service that responds with 0 to 512 ASCII characters for each connection it receives. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.
Rationale: Disabling this service will reduce the remote attack surface of the system.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_1_1
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_1_1
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_1_2
2.1.2 Ensure daytime services are not enabled (Scored)
Description: daytime is a network service that responds with the server's current date and time. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.
Rationale: Disabling this service will reduce the remote attack surface of the system.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_1_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_1_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_1_3
2.1.3 Ensure discard services are not enabled (Scored)
Description: discard is a network service that simply discards all data it receives. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.
Rationale: Disabling this service will reduce the remote attack surface of the system.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_1_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_1_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_1_4
2.1.4 Ensure echo services are not enabled (Scored)
Description: echo is a network service that responds to clients with the data sent to it by the client. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.
Rationale: Disabling this service will reduce the remote attack surface of the system.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_1_4
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_1_4
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_1_5
2.1.5 Ensure time services are not enabled (Scored)
Description: time is a network service that responds with the server's current date and time as a 32 bit integer. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.
Rationale: Disabling this service will reduce the remote attack surface of the system.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_1_5
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_1_5
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_1_6
2.1.6 Ensure tftp server is not enabled (Scored)
Description: Trivial File Transfer Protocol (TFTP) is a simple file transfer protocol, typically used to automatically transfer configuration or boot machines from a boot server. The package tftp-server is used to define and support a TFTP server.
Rationale: TFTP does not support authentication nor does it ensure the confidentiality or integrity of data. It is recommended that TFTP be removed, unless there is a specific need for TFTP. In that case, extreme caution must be used when configuring the services.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_1_6
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_1_6
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_1_7
2.1.7 Ensure xinetd is not enabled (Scored)
Description: The eXtended InterNET Daemon ( xinetd ) is an open source super daemon that replaced the original inetd daemon. The xinetd daemon listens for well known services and dispatches the appropriate daemon to properly respond to service requests.
Rationale: If there are no xinetd services required, it is recommended that the daemon be disabled.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_1_7
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_1_7
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_10
2.2.10 Ensure HTTP server is not enabled (Scored)
Description: HTTP or web servers provide the ability to host web site content.
Rationale: Unless there is a need to run the system as a web server, it is recommended that the service be disabled to reduce the potential attack surface.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_10
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_10
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_11
2.2.11 Ensure IMAP and POP3 server is not enabled (Scored)
Description: dovecot is an open source IMAP and POP3 server for Linux based systems.
Rationale: Unless POP3 and/or IMAP servers are to be provided by this system, it is recommended that the service be disabled to reduce the potential attack surface.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_11
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_11
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_12
2.2.12 Ensure Samba is not enabled (Scored)
Description: The Samba daemon allows system administrators to configure their Linux systems to share file systems and directories with Windows desktops. Samba will advertise the file systems and directories via the Small Message Block (SMB) protocol. Windows desktop users will be able to mount these directories and file systems as letter drives on their systems.
Rationale: If there is no need to mount directories and file systems to Windows systems, then this service can be disabled to reduce the potential attack surface.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_12
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_12
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_13
2.2.13 Ensure HTTP Proxy Server is not enabled (Scored)
Description: Squid is a standard proxy server used in many distributions and environments.
Rationale: If there is no need for a proxy server, it is recommended that the squid proxy be disabled to reduce the potential attack surface.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_13
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_13
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_14
2.2.14 Ensure SNMP Server is not enabled (Scored)
Description: The Simple Network Management Protocol (SNMP) server is used to listen for SNMP commands from an SNMP management system, execute the commands or collect the information and then send results back to the requesting system.
Rationale: The SNMP server can communicate using SNMP v1, which transmits data in the clear and does not require authentication to execute commands. Unless absolutely necessary, it is recommended that the SNMP service not be used. If SNMP is required the server should be configured to disallow SNMP v1.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_14
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_14
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_15
2.2.15 Ensure mail transfer agent is configured for local-only mode (Scored)
Description: Mail Transfer Agents (MTA), such as sendmail and Postfix, are used to listen for incoming mail and transfer the messages to the appropriate user or mail server. If the system is not intended to be a mail server, it is recommended that the MTA be configured to only process local mail.
Rationale: The software for all Mail Transfer Agents is complex and most have a long history of security issues. While it is important to ensure that the system can process local mail messages, it is not necessary to have the MTA's daemon listening on a port unless the server is intended to be a mail server that receives and processes mail from other systems.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_15
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_15
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_16
2.2.16 Ensure NIS Server is not enabled (Scored)
Description: The Network Information Service (NIS) (formally known as Yellow Pages) is a client-server directory service protocol for distributing system configuration files. The NIS server is a collection of programs that allow for the distribution of configuration files.
Rationale: The NIS service is inherently an insecure system that has been vulnerable to DOS attacks, buffer overflows and has poor authentication for querying NIS maps. NIS generally been replaced by such protocols as Lightweight Directory Access Protocol (LDAP). It is recommended that the service be disabled and other, more secure services be used
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_16
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_16
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_17
2.2.17 Ensure rsh server is not enabled (Scored)
Description: The Berkeley rsh-server ( rsh , rlogin , rexec ) package contains legacy services that exchange credentials in clear-text.
Rationale: These legacy services contain numerous security exposures and have been replaced with the more secure SSH package.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_17
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_17
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_18
2.2.18 Ensure talk server is not enabled (Scored)
Description: The talk software makes it possible for users to send and receive messages across systems through a terminal session. The talk client (allows initiate of talk sessions) is installed by default.
Rationale: The software presents a security risk as it uses unencrypted protocols for communication.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_18
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_18
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_19
2.2.19 Ensure telnet server is not enabled (Scored)
Description: The telnet-server package contains the telnet daemon, which accepts connections from users from other systems via the telnet protocol.
Rationale: The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could allow a user with access to sniff network traffic the ability to steal credentials. The ssh package provides an encrypted session and stronger security.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_19
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_19
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
secure_linux_cis::distribution::redhat7::cis_2_2_1_1
2.2.1.1 Ensure time synchronization is in use (Not Scored)
Description: System time should be synchronized between all systems in an environment. This is typically done by establishing an authoritative time server or set of servers and having all systems synchronize their clocks to them. Rationale: Time synchronization is important to support time sensitive security mechanisms like Kerberos and also ensures log files have consistent time records across the enterprise, which aids in forensic investigations.
@param enforced Should this rule be enforced
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_1_1
secure_linux_cis::distribution::redhat7::cis_2_2_1_2
2.2.1.2 Ensure ntp is configured (Scored)
Description: ntp is a daemon which implements the Network Time Protocol (NTP). It is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on NTP can be found at http://www.ntp.org. ntp can be configured to be a client and/or a server. This recommendation only applies if ntp is in use on the system.
Rationale: If ntp is in use on the system proper configuration is vital to ensuring time synchronization is working properly.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_1_2
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_1_2
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
time_servers
Data type: Array[String]
Array of valid NTP Time servers
Default value: []
time_sync
Data type: Enum['ntp', 'chrony', 'none']
Which NTP program to use
Default value: 'ntp'
secure_linux_cis::distribution::redhat7::cis_2_2_1_3
2.2.1.3 Ensure chrony is configured (Scored)
Description: chrony is a daemon which implements the Network Time Protocol (NTP) is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on chrony can be found at http://chrony.tuxfamily.org/. chrony can be configured to be a client and/or a server.
Rationale: If chrony is in use on the system proper configuration is vital to ensuring time synchronization is working properly. This recommendation only applies if chrony is in use on the system.
Examples
include secure_linux_cis::distribution::redhat7::cis_2_2_1_3
Parameters
The following parameters are available in the secure_linux_cis::distribution::redhat7::cis_2_2_1_3
class.
enforced
Data type: Boolean
Should this rule be enforced
Default value: true
time_servers
Data type: Array[String]
Array of valid NTP Time servers
Default value: []
time_sync
Data type: Enum['ntp', 'chrony', 'none']
Which NTP program to use
Default value: 'chrony'
secure_linux_cis::distribution::redhat7::cis_2_2_2
2.2.2 Ensure X Window System is not installed (Scored)
Changelog
Release 2.0.18
- Ensure grub2 password is super user
Release 2.0.17
- Strengthened ciphers. Thanks to Tom Parker @tparkercbn.
Release 2.0.14
- Cleaned up and fixed the way /var/log directory is secured.
Release 2.0.13
- Important fixes
Release 2.0.12
- Fix for su command is restricted bug
Release 2.0.11
- Add whitelist for non-nologin shells
- Make TMOUT variable configurable
- Support for Debian10
- Add file test for tcp6 to pevent warning if tcp6 disabled
Release 2.0.10
- New updated documentation
- Apache license
- Litmus acceptance testing
Release 2.0.5 Release Candidate
- Added plan to harden OS's
- Separated Centos 7 and RHEL 7 into server / workstation profiles
Release 2.0.0 Release Candidate
- Major release adding Linux releases and refactoring
- Module level hiera now used with (optional) exclude_rules subtracted from include_rules
- Not all OS's supported as yet
Release 1.0.17
- Fix issue with logic in cis_1_7_2
- Correct syntax in rootpw fact
- Fix logic in cis_1_2_1
- Fix type for cis_6_2_6 in centos.pp
Release 1.0.16
- Add file_line management of /etc/default/useradd INACTIVE entry in cis_5_4_1_4 to meet Nessus scan requirement
- Expand puppetlabs/firewall version range to >= 1.15.0 < 3.0.0 as many other modules still have < 2.0.0 and this module will fail to install
- Added support for CIS 4.1.12
- Add newlines to the end of /etc/hosts.{allow,deny} in cis_3_4_2 and cis_3_4_3
- cis_5_4_1_4 now also covers the default setting
Release 1.0.15
- Activate use of cis_1_1_3, cis 1_1_4 and cis_1_1_5 to manage /tmp partition options in centos7.pp
- Change management of /dev/shm to use mount resource in cis_1_1_15 as not listed in /etc/fstab and mount_options.pp fails
- Move TMOUT setting from cis_5_4_4 to cis 5_4_5, add export and readonly lines to /etc/bashrc
- Add oboe/chrony to dependencies in metadata to allow time_sync to work with chrony
- Add puppetlabs/mount_core to metadata to maintain compliance with puppet 6
- Raise minimum version requirements for dependencies in metadata
- Raise Puppet version requirement to >= 5.0.0 < 7.0.0
Release 1.0.14
Thanks to Bart-Jan Vrielink for fixing our spec test.
Release 1.0.13
- Added AIDE database renaming to cis_1_3_1 as 'aide --init' command creates a new temporary file requiring renaming
- Change cis_1_6_11 to use kernel_parameter instead of file_line to set 'quiet' in grub.cfg, to avoid entire line being overwritten in /etc/default/grub.cfg
- Add optional $motd parameter to be sole content of /etc/motd in cis_1_7_1_4. If not defined and $banner is defined, $banner becomes content of /etc/motd
- Restore sysctl resources when disabling ipv6 in cis_3_3_1, cis_3_3_2 and cis_3_3_3, remove kernel_parameter from cis_3_3_3 as problematic when using sysctl to disable and check ipv6, add /etc/sysconfig/network entries
- Update cis_3_3_3 and cis_3_6_2 to allow ip6_tables to drop undefined traffic
- Fix typo in cis_5_3_1 of try_first_path instead of try_first_pass
- Remove nullok and add shadow to /etc/pam.d system-auth and password-auth in cis_5_3_3
- Remove all use of pkill, add rsyslog and rsyslog-ng classes to array of classes that trigger an opt-in reboot, as rsyslog can be (outside of this module) configured to halt system or boot into single mode if terminated
- Fix various custom fact scripts issues with missing .sh, false positives when home dir absent, reduce script file and directory permissions to 0700
- Update local_users custom fact to allow for users whose password needs to be changed
- Move location of custom fact scripts directory from /tmp/cis_scripts to /usr/share/cis_scripts as fail to execute if /tmp mounted noexec as per recommendations!
- Remove subscription_manager from dependencies as appears unused
Release 1.0.12
- Fix cis_5_2_14 ssh DenyGroups typo
- Refactor remaining bash scripts using Shellcheck and test functions
- Replace sysctl resources with file_line in cis_3_3_1, cis_3_3_2 and cis_3_3_3 as sysctl fails to write to /proc/sys/net/ipv6 when kernel_parameter ipv6.disable=1 in effect and system has been rebooted. Kernel_parameter requires a reboot to have effect.
- Add shared resources block to end of centos7.pp and redhat7.pp to invoke service/system reload or restart only when notified
- Add parameter for auto_restart when defined classes make changes that require a reboot to take effect (defaults to false)
- Add optional parameter for banner which becomes the sole content of /etc/issue, /etc/issue.net and /etc/motd
Release 1.0.11
- Create resource collector override to disable ip6tables in class cis_3_3_3 when ipv6 disabled
- Change default of ip6_enabled to false (ipv6 is now now opt-in)
- Increase max_log_file default size from 8 to 32Mb to satisfy Nessus scan
Release 1.0.10
- Fix multiple line issue with cis 5.2.10
Release 1.0.9
- Multiple cleanup
- Grub fixes
- Started plan
Release 1.0.8
- Refactoring by CanIHaveThisOne
- Change audit.rules entries to /etc/audit/rules.d/audit.rules so persistent across reboots
- Add '-e 2' to audit.rules to make immutable (activate class cis_4_1_18)
- Refactor and expand local_users fact and classes cis_5_4_1_1 to cis_5_4_1_5
- Reinstate confining facts to RedHat
- Re-fix typo in auditd rule cis_4_1_4
Release 1.0.7
- Added multiple enhancements by Dan Wittenberg
- Move to PDK 12
Release 1.0.5
- Confined facts to RedHat family
Release 1.0.1
Added selinux test and check by Patrick Picard (patpicos).
Made changes for Puppet 6.
Features
Bugfixes
Known Issues
Dependencies
- aboe/chrony (>= 0.3.0 < 1.0.0)
- camptocamp/augeas (>= 1.8.0 < 2.0.0)
- camptocamp/kmod (>= 2.3.0 < 3.0.0)
- camptocamp/postfix (>= 1.8.0 < 2.0.0)
- herculesteam/augeasproviders_core (>= 2.5.0 < 3.0.0)
- herculesteam/augeasproviders_grub (>= 3.0.0 < 4.0.0)
- herculesteam/augeasproviders_sysctl (>= 2.3.0 < 3.0.0)
- herculesteam/augeasproviders_shellvar (>= 4.0.0 < 5.0.0)
- herculesteam/augeasproviders_pam (>= 2.2.0 < 3.0.0)
- kemra102/auditd (>= 2.2.0 < 3.0.0)
- puppet/alternatives (>= 2.0.0 < 4.0.0)
- puppet/cron (>= 1.3.0 < 3.0.0)
- puppet/firewalld (>= 4.3.0 < 5.0.0)
- puppet/logrotate (>= 4.0.0 < 6.0.0)
- puppetlabs/augeas_core (>= 1.0.0 < 2.0.0)
- puppetlabs/firewall (>= 1.15.3 < 3.0.0)
- puppetlabs/mailalias_core (>= 1.0.0 < 2.0.0)
- puppetlabs/mount_core (>= 1.0.0 < 2.0.0)
- puppetlabs/nftables (>= 1.0.0 < 2.0.0)
- puppetlabs/ntp (>= 8.0.0 < 9.0.0)
- puppetlabs/reboot (>= 1.0.0 < 3.0.0)
- puppetlabs/stdlib (>= 4.0.0 <= 7.0.0)
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] 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.