Skip to content

Commit 5a103d1

Browse files
Merge pull request #14132 from teacup-on-rockingchair/fixes_for_auditing_sle15_sle16
Fixes for auditing rules in sle15 and sle16 previously disabled
2 parents 4008a90 + af9cb94 commit 5a103d1

File tree

11 files changed

+68
-21
lines changed

11 files changed

+68
-21
lines changed

linux_os/guide/auditing/auditd_configure_rules/audit_file_deletion_events/audit_rules_file_deletion_events_renameat2/rule.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ severity: medium
2525

2626
identifiers:
2727
cce@rhel10: CCE-86188-0
28+
cce@sle15: CCE-92695-6
2829

2930
references:
3031
hipaa: 164.308(a)(1)(ii)(D),164.308(a)(3)(ii)(A),164.308(a)(5)(ii)(C),164.312(a)(2)(i),164.312(b),164.312(d),164.312(e)

linux_os/guide/auditing/auditd_configure_rules/audit_rules_mac_modification_etc_selinux/rule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ severity: medium
1414

1515
identifiers:
1616
cce@rhel10: CCE-90737-8
17-
17+
cce@sle15: CCE-92694-9
1818

1919
references:
2020
hipaa: 164.308(a)(1)(ii)(D),164.308(a)(3)(ii)(A),164.308(a)(5)(ii)(C),164.312(a)(2)(i),164.312(b),164.312(d),164.312(e)

linux_os/guide/auditing/configure_auditd_data_retention/auditd_name_format/ansible/shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# platform = multi_platform_fedora,multi_platform_rhel,multi_platform_ol,multi_platform_almalinux
1+
# platform = multi_platform_almalinux,multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_sle
22
# reboot = false
33
# strategy = restrict
44
# complexity = low

linux_os/guide/auditing/configure_auditd_data_retention/auditd_name_format/bash/shared.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# platform = multi_platform_fedora,multi_platform_rhel,multi_platform_ol,multi_platform_almalinux
1+
# platform = multi_platform_almalinux,multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_sle
22
# reboot = true
33
# strategy = restrict
44
# complexity = low
@@ -23,5 +23,3 @@ var_auditd_name_format="$(echo $var_auditd_name_format | cut -d \| -f 1)"
2323
separator=" = ",
2424
separator_regex="\s*=\s*",
2525
prefix_regex="^\s*", rule_id=rule_id)}}}
26-
27-

linux_os/guide/auditing/configure_auditd_data_retention/auditd_name_format/rule.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ identifiers:
2121
cce@rhel8: CCE-82897-0
2222
cce@rhel9: CCE-83686-6
2323
cce@rhel10: CCE-87429-7
24+
cce@sle15: CCE-92696-4
2425

2526
references:
2627
nist: CM-6,AU-3

linux_os/guide/auditing/configure_auditd_data_retention/auditd_name_format/tests/correct_value.pass.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ config_file="/etc/audit/auditd.conf"
1212

1313
# remove any occurrence
1414
sed -i "s/^.*name_format.*$//" $config_file
15+
{{%- if product in ["sle15", "sle16"] %}}
16+
echo "name_format = fqd" >> $config_file
17+
{{%- else %}}
1518
echo "name_format = hostname" >> $config_file
19+
{{%- endif %}}

products/sle15/product.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ release_key_fingerprint: "FEAB502539D846DB2C0961CA70AF9E8139DB7C82"
2323
oval_feed_url: "https://ftp.suse.com/pub/projects/security/oval/suse.linux.enterprise.15-patch.xml.bz2"
2424

2525
aide_bin_path: "/usr/bin/aide"
26+
audisp_conf_path: "/etc/audit"
2627

2728
cpes_root: "../../shared/applicability"
2829
cpes:

products/sle15/profiles/pci-dss-4.profile

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ description: |-
1212
Ensures PCI-DSS v4 security configuration settings are applied.
1313

1414
selections:
15-
- pcidss_4:all:base
16-
- ensure_pam_wheel_group_empty
17-
- sshd_strong_kex=pcidss
18-
- sshd_approved_macs=cis_sle15
19-
- sshd_approved_ciphers=cis_sle15
20-
- var_multiple_time_servers=suse
21-
- var_multiple_time_pools=suse
15+
- pcidss_4:all:base
16+
- ensure_pam_wheel_group_empty
17+
- sshd_strong_kex=pcidss
18+
- sshd_approved_macs=cis_sle15
19+
- sshd_approved_ciphers=cis_sle15
20+
- var_multiple_time_servers=suse
21+
- var_multiple_time_pools=suse
22+
- audit_rules_enable_syscall_auditing
2223
# Exclude from PCI DISS profile all rules related to ntp and timesyncd and keep only
2324
# rules related to chrony
2425
- '!ntpd_specify_multiple_servers'
@@ -28,9 +29,9 @@ selections:
2829
- '!service_timesyncd_enabled'
2930
- '!package_libreswan_installed'
3031
- '!use_pam_wheel_for_su'
31-
- use_pam_wheel_group_for_su
32-
- var_pam_wheel_group_for_su=cis
33-
- var_accounts_tmout=15_min
32+
- use_pam_wheel_group_for_su
33+
- var_pam_wheel_group_for_su=cis
34+
- var_accounts_tmout=15_min
3435
# Following rules once had a prodtype incompatible with the sle15 product
3536
- '!aide_periodic_cron_checking'
3637
- '!accounts_password_pam_dcredit'
@@ -50,7 +51,6 @@ selections:
5051
- '!gnome_gdm_disable_guest_login'
5152
- '!accounts_password_pam_minlen'
5253
- '!no_password_auth_for_systemaccounts'
53-
- '!auditd_name_format'
5454
- '!file_groupowner_user_cfg'
5555
- '!directory_access_var_log_audit'
5656
- '!ensure_root_password_configured'
@@ -64,7 +64,5 @@ selections:
6464
- '!dconf_gnome_disable_automount_open'
6565
- '!network_nmcli_permissions'
6666
- '!package_cryptsetup-luks_installed'
67-
- '!audit_rules_file_deletion_events_renameat2'
68-
- '!audit_rules_mac_modification_etc_selinux'
6967
- '!audit_rules_dac_modification_fchmodat2'
7068
- '!accounts_password_pam_unix_remember'

products/sle16/controls/base_sle16/0500_audit.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,49 @@ controls:
3333
status: automated
3434
rules:
3535
- display_login_attempts
36+
37+
- id: SLES-16-16016520
38+
levels:
39+
- pcidss4
40+
title: SLE16 system should audit syscalls
41+
status: automated
42+
rules:
43+
- audit_rules_enable_syscall_auditing
44+
45+
- id: SLES-16-16016525
46+
levels:
47+
- pcidss4
48+
- anssi_minimal
49+
- hipaa
50+
title: SLE16 system should audit renameat2 syscalls
51+
status: automated
52+
rules:
53+
- audit_rules_file_deletion_events_renameat2
54+
55+
- id: SLES-16-16016530
56+
levels:
57+
- pcidss4
58+
- anssi_minimal
59+
title: SLE16 system should audit SELinux settings modifications
60+
status: automated
61+
rules:
62+
- audit_rules_mac_modification_etc_selinux
63+
64+
- id: SLES-16-16016535
65+
levels:
66+
- pcidss4
67+
title: SLE16 system should record the computer node name in the audit events
68+
status: automated
69+
rules:
70+
- var_auditd_name_format=fqd
71+
- auditd_name_format
72+
73+
- id: SLES-16-16016540
74+
levels:
75+
- pcidss4
76+
- anssi_minimal
77+
- hipaa
78+
title: SLE16 system should audit fchmodat2 syscalls
79+
status: automated
80+
rules:
81+
- audit_rules_dac_modification_fchmodat2

products/sle16/product.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pkg_manager: "zypper"
1818
pkg_manager_config_file: "/etc/zypp/zypp.conf"
1919

2020
aide_bin_path: "/usr/bin/aide"
21+
audisp_conf_path: "/etc/audit"
2122

2223
cpes_root: "../../shared/applicability"
2324
cpes:

0 commit comments

Comments
 (0)