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

Update ANSSI BP28 profiles in rhel10 product #12351

Merged
merged 7 commits into from
Sep 17, 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
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ severity: medium

identifiers:
cce@rhel8: CCE-85919-9
cce@rhel10: CCE-90738-6
cce@sle12: CCE-92258-3
cce@sle15: CCE-85744-1
cce@slmicro5: CCE-93612-0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ severity: low

identifiers:
cce@rhel8: CCE-83744-3
cce@rhel10: CCE-90739-4
cce@sle12: CCE-91505-8
cce@sle15: CCE-91196-6

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ platform: machine

identifiers:
cce@rhel8: CCE-83336-8
cce@rhel10: CCE-90755-0
cce@sle12: CCE-91484-6
cce@sle15: CCE-91176-8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ platform: machine

identifiers:
cce@rhel8: CCE-83340-0
cce@rhel10: CCE-90750-1
cce@sle12: CCE-91485-3
cce@sle15: CCE-91177-6

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ platform: machine

identifiers:
cce@rhel8: CCE-83343-4
cce@rhel10: CCE-90748-5
cce@sle12: CCE-91488-7
cce@sle15: CCE-91180-0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<ind:filepath>/etc/aide.conf</ind:filepath>
{{% if 'sle' in product or 'slmicro' in product %}}
<ind:pattern operation="pattern match">^database=file:/([/a-z.]+)$</ind:pattern>
{{% elif product == 'rhel10' %}}
<ind:pattern operation="pattern match">^database_in=file:@@{DBDIR}/([a-z.]+)$</ind:pattern>
{{% else %}}
<ind:pattern operation="pattern match">^database=file:@@{DBDIR}/([a-z.]+)$</ind:pattern>
{{% endif %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ severity: medium

identifiers:
cce@rhel8: CCE-83820-1
cce@rhel10: CCE-90747-7
cce@sle12: CCE-91492-9
cce@sle15: CCE-91184-2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ severity: medium

identifiers:
cce@rhel8: CCE-83810-2
cce@rhel10: CCE-90743-6
cce@sle12: CCE-91493-7
cce@sle15: CCE-91185-9

Expand Down
4 changes: 0 additions & 4 deletions products/rhel10/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ init_system: "systemd"

# EFI and non-EFI configs are stored in same path, see https://fedoraproject.org/wiki/Changes/UnifyGrubConfig

groups:
dedicated_ssh_keyowner:
name: ssh_keys

sshd_distributed_config: "true"

dconf_gdm_dir: "distro.d"
Expand Down
45 changes: 29 additions & 16 deletions products/rhel10/profiles/anssi_bp28_enhanced.profile
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,31 @@ description: |-

selections:
- anssi:all:enhanced
# Following rules are incompatible with the rhel10 product
- '!partition_for_opt'
# Following rules are incompatible with rhel10 product
# tally2 is deprecated, replaced by faillock
- '!accounts_passwords_pam_tally2_deny_root'
- '!accounts_passwords_pam_tally2'
- '!accounts_passwords_pam_tally2_unlock_time'
# RHEL 10 does not support 32 bit architecture
- '!install_PAE_kernel_on_x86-32'
- '!partition_for_boot'
- '!sudo_add_ignore_dot'
- '!audit_rules_privileged_commands_rmmod'
- '!audit_rules_privileged_commands_modprobe'
# the package does not exist in RHEL 10
- '!package_dracut-fips-aesni_installed'
# pam_cracklib is not used in RHEL 10
- '!cracklib_accounts_password_pam_lcredit'
- '!partition_for_usr'
- '!cracklib_accounts_password_pam_ocredit'
- '!enable_pam_namespace'
- '!audit_rules_privileged_commands_insmod'
- '!service_chronyd_or_ntpd_enabled'
- '!chronyd_configure_pool_and_server'
- '!accounts_passwords_pam_tally2'
- '!cracklib_accounts_password_pam_ucredit'
- '!accounts_passwords_pam_tally2_unlock_time'
- '!sudo_add_umask'
- '!sudo_add_env_reset'
- '!cracklib_accounts_password_pam_minlen'
- '!cracklib_accounts_password_pam_dcredit'
# umask is configured at a different place in RHEL 10
- '!sudo_add_umask'
# Oracle key is not relevant on RHEL 10
- '!ensure_oracle_gpgkey_installed'
# this rule is not automated anymore
- '!security_patches_up_to_date'
# RHEL10 unified the paths for grub2 files. These rules are selected in control file by R29.
# There is only chrony package on RHEL 10, no ntpd
- '!service_chronyd_or_ntpd_enabled'
- 'service_chronyd_enabled'
# RHEL 10 unified the paths for grub2 files. These rules are selected in control file by R29.
- '!file_groupowner_efi_grub2_cfg'
- '!file_owner_efi_grub2_cfg'
- '!file_permissions_efi_grub2_cfg'
Expand All @@ -60,3 +59,17 @@ selections:
- '!grub2_enable_apparmor'
- '!package_apparmor_installed'
- '!package_pam_apparmor_installed'
# these packages do not exist in rhel10 (R62)
- '!package_dhcp_removed'
- '!package_rsh_removed'
- '!package_rsh-server_removed'
- '!package_sendmail_removed'
- '!package_talk_removed'
- '!package_xinetd_removed'
- '!package_ypserv_removed'
# these rules are failing when they are remediated with Ansible, removing them temporarily until they are fixed
- '!accounts_password_pam_retry'
# These rules are being modified and they are causing trouble in their current state (R67)
- '!sssd_enable_pam_services'
- '!sssd_ldap_configure_tls_reqcert'
- '!sssd_ldap_start_tls'
51 changes: 36 additions & 15 deletions products/rhel10/profiles/anssi_bp28_high.profile
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,56 @@ selections:
- anssi:all:high
# the following rule renders UEFI systems unbootable
- '!sebool_secure_mode_insmod'
# Thuse rules are incompatible rhel10 product
- '!partition_for_opt'
# Following rules are incompatible with rhel10 product
# tally2 is deprecated, replaced by faillock
- '!accounts_passwords_pam_tally2_deny_root'
- '!accounts_passwords_pam_tally2'
- '!accounts_passwords_pam_tally2_unlock_time'
# RHEL 10 does not support 32 bit architecture
- '!install_PAE_kernel_on_x86-32'
- '!partition_for_boot'
# this timer does not exist in RHEL 10
- '!aide_periodic_checking_systemd_timer'
- '!sudo_add_ignore_dot'
- '!audit_rules_privileged_commands_rmmod'
- '!audit_rules_privileged_commands_modprobe'
# the package does not exist in RHEL 10
- '!package_dracut-fips-aesni_installed'
# pam_cracklib is not used in RHEL 10
- '!cracklib_accounts_password_pam_lcredit'
- '!partition_for_usr'
- '!cracklib_accounts_password_pam_ocredit'
- '!enable_pam_namespace'
- '!audit_rules_privileged_commands_insmod'
- '!service_chronyd_or_ntpd_enabled'
- '!chronyd_configure_pool_and_server'
- '!accounts_passwords_pam_tally2'
- '!cracklib_accounts_password_pam_ucredit'
- '!accounts_passwords_pam_tally2_unlock_time'
- '!sudo_add_umask'
- '!sudo_add_env_reset'
- '!cracklib_accounts_password_pam_minlen'
- '!cracklib_accounts_password_pam_dcredit'
# umask is configured at a different place in RHEL 10
- '!sudo_add_umask'
# Oracle key is not relevant on RHEL 10
- '!ensure_oracle_gpgkey_installed'
# this rule is not automated anymore
- '!security_patches_up_to_date'
# There is only chrony package on RHEL 10, no ntpd
- '!service_chronyd_or_ntpd_enabled'
- 'service_chronyd_enabled'
# RHEL 10 unified the paths for grub2 files. These rules are selected in control file by R29.
- '!file_groupowner_efi_grub2_cfg'
- '!file_owner_efi_grub2_cfg'
- '!file_permissions_efi_grub2_cfg'
- '!file_groupowner_efi_user_cfg'
- '!file_owner_efi_user_cfg'
- '!file_permissions_efi_user_cfg'
# disable R45: Enable AppArmor security profiles
- '!apparmor_configured'
- '!all_apparmor_profiles_enforced'
- '!grub2_enable_apparmor'
- '!package_apparmor_installed'
- '!package_pam_apparmor_installed'
# these packages do not exist in rhel10 (R62)
- '!package_dhcp_removed'
- '!package_rsh_removed'
- '!package_rsh-server_removed'
- '!package_sendmail_removed'
- '!package_talk_removed'
- '!package_xinetd_removed'
- '!package_ypserv_removed'
# these rules are failing when they are remediated with Ansible, removing them temporarily until they are fixed
- '!accounts_password_pam_retry'
# These rules are being modified and they are causing trouble in their current state (R67)
- '!sssd_enable_pam_services'
- '!sssd_ldap_configure_tls_reqcert'
- '!sssd_ldap_start_tls'
51 changes: 32 additions & 19 deletions products/rhel10/profiles/anssi_bp28_intermediary.profile
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,35 @@ description: |-
https://cyber.gouv.fr/publications/configuration-recommendations-gnulinux-system

selections:
- anssi:all:intermediary
# Following rules are incompatible with the rhel10 product
- '!partition_for_opt'
- '!cracklib_accounts_password_pam_minlen'
- '!accounts_passwords_pam_tally2_deny_root'
- '!accounts_passwords_pam_tally2'
- '!cracklib_accounts_password_pam_ucredit'
- '!cracklib_accounts_password_pam_dcredit'
- '!cracklib_accounts_password_pam_lcredit'
- '!partition_for_usr'
- '!partition_for_boot'
- '!cracklib_accounts_password_pam_ocredit'
- '!enable_pam_namespace'
- '!accounts_passwords_pam_tally2_unlock_time'
- '!sudo_add_umask'
- '!sudo_add_ignore_dot'
- '!sudo_add_env_reset'
- '!ensure_oracle_gpgkey_installed'
- '!security_patches_up_to_date'
- anssi:all:intermediary
# Following rules are incompatible with rhel10 product
# tally2 is deprecated, replaced by faillock
- '!accounts_passwords_pam_tally2_deny_root'
- '!accounts_passwords_pam_tally2'
- '!accounts_passwords_pam_tally2_unlock_time'
# pam_cracklib is not used in RHEL 10
- '!cracklib_accounts_password_pam_minlen'
- '!cracklib_accounts_password_pam_ucredit'
- '!cracklib_accounts_password_pam_dcredit'
- '!cracklib_accounts_password_pam_lcredit'
- '!cracklib_accounts_password_pam_ocredit'
# umask is configured at a different place in RHEL 10
- '!sudo_add_umask'
# Oracle key is not relevant on RHEL 10
- '!ensure_oracle_gpgkey_installed'
# this rule is not automated anymore
- '!security_patches_up_to_date'
# these packages do not exist in rhel10 (R62)
- '!package_dhcp_removed'
- '!package_rsh_removed'
- '!package_rsh-server_removed'
- '!package_sendmail_removed'
- '!package_talk_removed'
- '!package_xinetd_removed'
- '!package_ypserv_removed'
# these rules are failing when they are remediated with Ansible, removing them temporarily until they are fixed
- '!accounts_password_pam_retry'
# These rules are being modified and they are causing trouble in their current state (R67)
- '!sssd_enable_pam_services'
- '!sssd_ldap_configure_tls_reqcert'
- '!sssd_ldap_start_tls'
38 changes: 26 additions & 12 deletions products/rhel10/profiles/anssi_bp28_minimal.profile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,29 @@ description: |-
https://cyber.gouv.fr/publications/configuration-recommendations-gnulinux-system

selections:
- anssi:all:minimal
# Following are incompatible with the rhel9 product
- '!cracklib_accounts_password_pam_minlen'
- '!accounts_passwords_pam_tally2_deny_root'
- '!accounts_passwords_pam_tally2'
- '!cracklib_accounts_password_pam_ucredit'
- '!cracklib_accounts_password_pam_dcredit'
- '!cracklib_accounts_password_pam_lcredit'
- '!cracklib_accounts_password_pam_ocredit'
- '!accounts_passwords_pam_tally2_unlock_time'
- '!ensure_oracle_gpgkey_installed'
- '!security_patches_up_to_date'
- anssi:all:minimal
# Following rules are incompatible with rhel10 product
# tally2 is deprecated, replaced by faillock
- '!accounts_passwords_pam_tally2_deny_root'
- '!accounts_passwords_pam_tally2'
- '!accounts_passwords_pam_tally2_unlock_time'
# pam_cracklib is not used in RHEL 10
- '!cracklib_accounts_password_pam_minlen'
- '!cracklib_accounts_password_pam_ucredit'
- '!cracklib_accounts_password_pam_dcredit'
- '!cracklib_accounts_password_pam_lcredit'
- '!cracklib_accounts_password_pam_ocredit'
# Oracle key is not relevant on RHEL 10
- '!ensure_oracle_gpgkey_installed'
# this rule is not automated anymore
- '!security_patches_up_to_date'
# these packages do not exist in rhel10 (R62)
- '!package_dhcp_removed'
- '!package_rsh_removed'
- '!package_rsh-server_removed'
- '!package_sendmail_removed'
- '!package_talk_removed'
- '!package_xinetd_removed'
- '!package_ypserv_removed'
# these rules are failing when they are remediated with Ansible, removing then temporarily until they are fixed
- '!accounts_password_pam_retry'
7 changes: 0 additions & 7 deletions shared/references/cce-redhat-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2622,10 +2622,3 @@ CCE-90728-7
CCE-90732-9
CCE-90735-2
CCE-90737-8
CCE-90738-6
CCE-90739-4
CCE-90743-6
CCE-90747-7
CCE-90748-5
CCE-90750-1
CCE-90755-0
Loading