Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 8: align with CIS 3, section 2 #11457

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
984f35c
update section 2.1.1
vojtapolasek Jan 15, 2024
bff3523
update control 2.1.2
vojtapolasek Jan 15, 2024
0278945
update control 2.1.3
vojtapolasek Jan 15, 2024
947a279
update control 2.2.1
vojtapolasek Jan 15, 2024
78214e3
update control 2.2.2
vojtapolasek Jan 15, 2024
e5a40a2
update control 2.2.3
vojtapolasek Jan 15, 2024
8c3f13c
update control 2.2.4
vojtapolasek Jan 15, 2024
6bf3588
update control 2.2.5
vojtapolasek Jan 15, 2024
315fb50
update control 2.2.6
vojtapolasek Jan 15, 2024
86c127f
update control 2.2.7
vojtapolasek Jan 16, 2024
16009f4
update control 2.2.8
vojtapolasek Jan 16, 2024
0ab2614
update control 2.2.9
vojtapolasek Jan 16, 2024
977ca39
update control 2.2.10
vojtapolasek Jan 16, 2024
c49f3c2
update control 2.2.11
vojtapolasek Jan 16, 2024
5105c27
update control 2.2.12
vojtapolasek Jan 16, 2024
b587262
update control 2.2.13
vojtapolasek Jan 16, 2024
5b627e4
update control 2.2.14
vojtapolasek Jan 16, 2024
7a6d950
update control 2.2.15
vojtapolasek Jan 16, 2024
37291d8
update control 2.2.16
vojtapolasek Jan 16, 2024
d812ef1
update control 2.2.17
vojtapolasek Jan 16, 2024
0005ef9
update control 2.2.18
vojtapolasek Jan 16, 2024
16e570f
update control 2.2.19
vojtapolasek Jan 16, 2024
957007d
update control 2.2.20
vojtapolasek Jan 16, 2024
29fd2d7
update control 2.2.21
vojtapolasek Jan 16, 2024
c2e7f07
update control 2.2.22
vojtapolasek Jan 16, 2024
23c4f7e
update control 2.3.1
vojtapolasek Jan 16, 2024
5b97893
update control 2.3.2
vojtapolasek Jan 16, 2024
52938a8
update control 2.3.3
vojtapolasek Jan 16, 2024
8dcabcd
update control 2.3.5
vojtapolasek Jan 16, 2024
c383fa7
remove control 2.4
vojtapolasek Jan 16, 2024
a81204a
remove CIS references in rules which were removed from the profile
vojtapolasek Jan 18, 2024
4622477
modify profile stability test of RHEL 8 PCI-DSS
vojtapolasek Jan 18, 2024
c25538f
change status of 2.2.1
vojtapolasek Jan 23, 2024
59e00e6
include reference also in related rule for 2.2.2
vojtapolasek Jan 23, 2024
769bbe4
update refernce in related rule of 2.2.3
vojtapolasek Jan 23, 2024
a5a8c74
update control 2.2.20 to set correct runlevel
vojtapolasek Jan 23, 2024
f0aa2d5
remove cis reference from xwindows_remove_packages
vojtapolasek Jan 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
211 changes: 126 additions & 85 deletions controls/cis_rhel8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ controls:
- l1_server
- l1_workstation
status: automated
related_rules:
rules:
- package_chrony_installed

- id: 2.1.2
Expand All @@ -742,234 +742,291 @@ controls:
status: automated
rules:
- chronyd_specify_remote_server
- chronyd_run_as_chrony_user
- var_multiple_time_servers=rhel

- id: 2.2.1
title: Ensure xinetd is not installed (Automated)
- id: 2.1.3
title: Ensure chrony is not run as the root user (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_xinetd_removed
- chronyd_run_as_chrony_user

- id: 2.2.2
title: Ensure xorg-x11-server-common is not installed (Automated)
- id: 2.2.1
title: Ensure autofs services are not in use (Automated)
levels:
- l1_server
- l2_workstation
status: automated
rules:
- package_xorg-x11-server-common_removed
- service_autofs_disabled

- id: 2.2.3
title: Ensure Avahi Server is not installed (Automated)
- id: 2.2.2
title: Ensure avahi daemon services are not in use (Automated)
levels:
- l1_server
- l2_workstation
status: automated
rules:
- package_avahi_removed
- package_avahi-autoipd_removed
related_rules:
- service_avahi-daemon_disabled
vojtapolasek marked this conversation as resolved.
Show resolved Hide resolved

- id: 2.2.3
title: Ensure dhcp server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_dhcp_removed
related_rules:
- service_dhcpd_disabled
vojtapolasek marked this conversation as resolved.
Show resolved Hide resolved

- id: 2.2.4
title: Ensure CUPS is not installed (Automated)
title: Ensure dns server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_cups_removed
- package_bind_removed
related_rules:
- service_cups_disabled
- service_named_disabled

- id: 2.2.5
title: Ensure DHCP Server is not installed (Automated)
title: Ensure dnsmasq services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_dhcp_removed
related_rules:
- service_dhcpd_disabled
- package_dnsmasq_removed

- id: 2.2.6
title: Ensure DNS Server is not installed (Automated)
title: Ensure samba file server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_bind_removed
- package_samba_removed
related_rules:
- service_named_disabled
- service_smb_disabled

# NEEDS RULE
- id: 2.2.7
title: Ensure FTP Server is not installed (Automated)
title: Ensure ftp server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: planned
status: automated
rules:
- package_vsftpd_removed
related_rules:
- service_vsftpd_disabled

- id: 2.2.8
title: Ensure VSFTP Server is not installed (Automated)
title: Ensure message access server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_vsftpd_removed
- package_dovecot_removed
- package_cyrus-imapd_removed
related_rules:
- service_dovecot_disabled
# new rule would be nice to disable cyrus-imapd service

- id: 2.2.9
title: Ensure TFTP Server is not installed (Automated)
title: Ensure network file system services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_tftp-server_removed
- service_nfs_disabled
related_rules:
- package_nfs-utils_removed
notes: |-
Many of the libvirt packages used by Enterprise Linux virtualization are
dependent on the nfs-utils package.

- id: 2.2.10
title: Ensure a web server is not installed (Automated)
title: Ensure nis server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_httpd_removed
- package_nginx_removed
- package_ypserv_removed
related_rules:
- service_ypserv_disabled

- id: 2.2.11
title: Ensure IMAP and POP3 server is not installed (Automated)
title: Ensure print server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_dovecot_removed
- package_cyrus-imapd_removed
- package_cups_removed
related_rules:
- service_cups_disabled

- id: 2.2.12
title: Ensure Samba is not installed (Automated)
title: Ensure rpcbind services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_samba_removed
- service_rpcbind_disabled
related_rules:
- package_rpcbind_removed
notes: |-
Many of the libvirt packages used by Enterprise Linux virtualization, and
the nfs-utils
package used for The Network File System (NFS), are dependent on the rpcbind
package.

- id: 2.2.13
title: Ensure HTTP Proxy Server is not installed (Automated)
title: Ensure rsync services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_squid_removed
- package_rsync_removed
related_rules:
- service_rsyncd_disabled

- id: 2.2.14
title: Ensure net-snmp is not installed (Automated)
title: Ensure snmp services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_net-snmp_removed
related_rules:
- service_snmpd_disabled

- id: 2.2.15
title: Ensure NIS server is not installed (Automated)
title: Ensure telnet server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_ypserv_removed
- package_telnet-server_removed
related_rules:
- service_telnet_disabled

- id: 2.2.16
title: Ensure telnet-server is not installed (Automated)
title: Ensure tftp server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_telnet-server_removed
- package_tftp-server_removed
related_rules:
- service_tftp_disabled

- id: 2.2.17
title: Ensure mail transfer agent is configured for local-only mode (Automated)
title: Ensure web proxy server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- postfix_network_listening_disabled
- var_postfix_inet_interfaces=loopback-only
- has_nonlocal_mta
- package_squid_removed
related_rules:
- service_squid_disabled

- id: 2.2.18
title: Ensure nfs-utils is not installed or the nfs-server service is masked (Automated)
title: Ensure web server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- service_nfs_disabled
- package_httpd_removed
- package_nginx_removed
related_rules:
- package_nfs-utils_removed
# The nfs-utils package is required for systems with GUI or by some libvirt packages
- service_httpd_disabled
# rule would be nice to disable nginx service

- id: 2.2.19
title: Ensure rpcbind is not installed or the rpcbind services are masked (Automated)
title: Ensure xinetd services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- service_rpcbind_disabled
- package_xinetd_removed
related_rules:
- package_rpcbind_removed
- service_xinetd_disabled

- id: 2.2.20
title: Ensure rsync is not installed or the rsyncd service is masked (Automated)
title: Ensure X window server services are not in use (Automated)
levels:
- l2_server
status: automated
notes: >-
The rule also configures correct run level to prevent unbootable system.
vojtapolasek marked this conversation as resolved.
Show resolved Hide resolved
rules:
- package_xorg-x11-server-common_removed
marcusburghardt marked this conversation as resolved.
Show resolved Hide resolved
- xwindows_runlevel_target

- id: 2.2.21
title: Ensure mail transfer agents are configured for local-only mode (Automated)
levels:
- l1_server
- l1_workstation
status: automated
status: partial
notes: |-
The rule has_nonlocal_mta currently checks for services listening only on
port 25, but the policy checks also for ports 465 and 587
rules:
- package_rsync_removed
related_rules:
- service_rsyncd_disabled
- postfix_network_listening_disabled
- var_postfix_inet_interfaces=loopback-only
- has_nonlocal_mta

- id: 2.2.22
title: Ensure only approved services are listening on a network interface (Manual)
levels:
- l1_server
- l1_workstation
status: manual

- id: 2.3.1
title: Ensure NIS Client is not installed (Automated)
title: Ensure ftp client is not installed (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_ypbind_removed
- package_ftp_removed

- id: 2.3.2
title: Ensure rsh client is not installed (Automated)
title: Ensure LDAP client is not installed (Automated)
levels:
- l1_server
- l1_workstation
- l2_server
- l2_workstation
status: automated
rules:
- package_rsh_removed
- package_openldap-clients_removed

- id: 2.3.3
title: Ensure talk client is not installed (Automated)
title: Ensure NIS Client is not installed (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_talk_removed
- package_ypbind_removed

- id: 2.3.4
title: Ensure telnet client is not installed (Automated)
Expand All @@ -981,30 +1038,14 @@ controls:
- package_telnet_removed

- id: 2.3.5
title: Ensure LDAP client is not installed (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_openldap-clients_removed

- id: 2.3.6
title: Ensure TFTP client is not installed (Automated)
title: Ensure tftp client is not installed (Automated)
levels:
- l1_server
- l1_workstation
status: automated
rules:
- package_tftp_removed

- id: 2.4
title: Ensure nonessential services are removed or masked (Manual)
levels:
- l1_server
- l1_workstation
status: manual

- id: 3.1.1
title: Verify if IPv6 is enabled on the system (Manual)
levels:
Expand Down
Loading
Loading