Skip to content
New issue

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

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

Already on GitHub? # to your account

Update several controls and variables for Ubuntu 24.04 CIS #12624

Merged
merged 16 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
94 changes: 47 additions & 47 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,10 @@ controls:
levels:
- l1_server
- l2_workstation
related_rules:
rules:
- package_avahi_removed
- service_avahi-daemon_disabled
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.2.
status: automated

- id: 2.1.3
title: Ensure dhcp server services are not in use (Automated)
Expand All @@ -672,10 +671,10 @@ controls:
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_bind_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.7.
- service_named_disabled
status: automated

- id: 2.1.5
title: Ensure dnsmasq services are not in use (Automated)
Expand All @@ -690,31 +689,30 @@ controls:
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_vsftpd_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.8.
- service_vsftpd_disabled
status: automated

- id: 2.1.7
title: Ensure ldap server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_openldap-servers_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.5.
- service_slapd_disabled
status: automated

- id: 2.1.8
title: Ensure message access server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
- package_cyrus-imapd_removed
rules:
- package_dovecot_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.10.
- service_dovecot_disabled
status: automated

- id: 2.1.9
title: Ensure network file system services are not in use (Automated)
Expand All @@ -723,87 +721,88 @@ controls:
- l1_workstation
related_rules:
- package_nfs-kernel-server_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.6.
- service_nfs_disabled
status: automated

- id: 2.1.10
title: Ensure nis server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
- package_nis_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.14.
rules:
- package_ypserv_removed
- service_ypserv_disabled
status: automated

- id: 2.1.11
title: Ensure print server services are not in use (Automated)
levels:
- l1_server
- l2_workstation
related_rules:
rules:
- package_cups_removed
- service_cups_disabled
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.3.
status: automated

- id: 2.1.12
title: Ensure rpcbind services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_rpcbind_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.3.6.
- service_rpcbind_disabled
status: automated

- id: 2.1.13
title: Ensure rsync services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_rsync_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.16.
- service_rsyncd_disabled
status: automated

- id: 2.1.14
title: Ensure samba file server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_samba_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.11.
- service_smb_disabled
status: automated

- id: 2.1.15
title: Ensure snmp services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_net-snmp_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.13.
- service_snmpd_disabled
status: automated

- id: 2.1.16
title: Ensure tftp server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- package_tftp-server_removed
- service_tftp_disabled
status: automated

- id: 2.1.17
title: Ensure web proxy server services are not in use (Automated)
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- package_squid_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.12.
- service_squid_disabled
status: automated

- id: 2.1.18
title: Ensure web server services are not in use (Automated)
Expand All @@ -821,17 +820,18 @@ controls:
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- package_xinetd_removed
- service_xinetd_disabled
status: automated

- id: 2.1.20
title: Ensure X window server services are not in use (Automated)
levels:
- l2_server
related_rules:
rules:
- package_xorg-x11-server-common_removed
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/2.2.1.
status: automated

- id: 2.1.21
title: Ensure mail transfer agent is configured for local-only mode (Automated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ template:
pkgname: avahi
pkgname@ubuntu2004: avahi-daemon
pkgname@ubuntu2204: avahi-daemon
pkgname@ubuntu2404: avahi-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ template:
packagename@ubuntu1804: avahi-daemon
packagename@ubuntu2004: avahi-daemon
packagename@ubuntu2204: avahi-daemon
packagename@ubuntu2404: avahi-daemon
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
documentation_complete: true


title: 'Uninstall bind Package'

description: |-
Expand Down Expand Up @@ -44,3 +43,4 @@ template:
pkgname@ubuntu1804: bind9
pkgname@ubuntu2004: bind9
pkgname@ubuntu2204: bind9
pkgname@ubuntu2404: bind9
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
documentation_complete: true


title: 'Disable named Service'

description: |-
Expand Down Expand Up @@ -43,3 +42,4 @@ template:
vars:
servicename: named
packagename: bind
packagename@ubuntu2404: bind9
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
documentation_complete: true


title: 'Uninstall dovecot Package'

description: |-
Expand Down Expand Up @@ -43,3 +42,4 @@ template:
pkgname@ubuntu1804: dovecot-core
pkgname@ubuntu2004: dovecot-core
pkgname@ubuntu2204: dovecot-core
pkgname@ubuntu2404: dovecot-core
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
documentation_complete: true


title: 'Disable Dovecot Service'

description: |-
Expand Down Expand Up @@ -34,3 +33,4 @@ template:
name: service_disabled
vars:
servicename: dovecot
packagename@ubuntu2404: dovecot-core
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

documentation_complete: true


title: 'Uninstall openldap-servers Package'

description: |-
Expand Down Expand Up @@ -65,3 +64,4 @@ template:
pkgname@ubuntu1804: slapd
pkgname@ubuntu2004: slapd
pkgname@ubuntu2204: slapd
pkgname@ubuntu2404: slapd
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
documentation_complete: true


title: 'Disable LDAP Server (slapd)'

description: |-
The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up information from a central database.
The Lightweight Directory Access Protocol (LDAP) is a service that
provides a method for looking up information from a central database.

rationale: |-
If the system will not need to act as an LDAP server, it is recommended that the software be
disabled to reduce the potential attack surface.
If the system will not need to act as an LDAP server, it is recommended
that the software be disabled to reduce the potential attack surface.

severity: medium

Expand All @@ -29,3 +29,4 @@ template:
vars:
servicename: slapd
packagename: openldap-servers
packagename@ubuntu2404: slapd
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
documentation_complete: true


title: 'Disable Network File System (nfs)'

description: |-
Expand Down Expand Up @@ -44,3 +43,4 @@ template:
vars:
servicename: nfs-server
packagename: nfs-utils
packagename@ubuntu2404: nfs-kernel-server
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ template:
packagename@sle12: rsync
packagename@sle15: rsync
packagename@openeuler2203: rsync
packagename@kylinserver10: rsync
servicename@ubuntu2404: rsync
packagename@ubuntu2404: rsync
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
documentation_complete: true

{{% if product in ['ubuntu2404'] %}}
{{% set package_name = "tftpd-hpa" %}}
{{% else %}}
{{% set package_name = "tftp-server" %}}
{{% endif %}}

title: 'Uninstall tftp-server Package'
title: 'Uninstall {{{ package_name }}} Package'

description: '{{{ describe_package_remove(package="tftp-server") }}}'
description: '{{{ describe_package_remove(package=package_name) }}}'

rationale: |-
Removing the <tt>tftp-server</tt> package decreases the risk of the accidental
Removing the <tt>{{{ package_name }}}</tt> package decreases the risk of the accidental
(or intentional) activation of tftp services.
<br /><br />
If TFTP is required for operational support (such as transmission of router
Expand Down Expand Up @@ -37,13 +42,13 @@ references:
stigid@ol8: OL08-00-040190
stigid@rhel8: RHEL-08-040190

{{{ complete_ocil_entry_package(package="tftp-server") }}}
{{{ complete_ocil_entry_package(package=package_name) }}}

fixtext: '{{{ fixtext_package_removed("tftp-server") }}}'
fixtext: '{{{ fixtext_package_removed(package_name) }}}'

srg_requirement: 'The Trivial File Transfer Protocol (TFTP) server package must not be installed if not required for {{{ full_name }}} operational support.'

template:
name: package_removed
vars:
pkgname: tftp-server
pkgname: {{{ package_name }}}
Loading
Loading