Skip to content

Commit dffa3ee

Browse files
rumch-seteacup-on-rockingchair
authored andcommitted
Updated 10 rules to support SLE Micro 5
1 parent 597d9ab commit dffa3ee

File tree

18 files changed

+61
-49
lines changed

18 files changed

+61
-49
lines changed

controls/stig_slmicro5.yml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ controls:
1616
title: SLEM 5 must be a vendor-supported release.
1717
rules:
1818
- installed_OS_is_vendor_supported
19-
status: automated
19+
status: automated
2020
- id: SLEM-05-211015
2121
levels:
2222
- medium
@@ -1108,8 +1108,9 @@ controls:
11081108
levels:
11091109
- medium
11101110
title: SLEM 5 must generate audit records for all uses of the "chage" command.
1111-
rules: []
1112-
status: pending
1111+
rules:
1112+
- audit_rules_privileged_commands_chage
1113+
status: automated
11131114
- id: SLEM-05-654020
11141115
levels:
11151116
- medium
@@ -1120,8 +1121,9 @@ controls:
11201121
levels:
11211122
- medium
11221123
title: SLEM 5 must generate audit records for all uses of the "chfn" command.
1123-
rules: []
1124-
status: pending
1124+
rules:
1125+
- audit_rules_privileged_commands_chfn
1126+
status: automated
11251127
- id: SLEM-05-654030
11261128
levels:
11271129
- medium
@@ -1132,20 +1134,23 @@ controls:
11321134
levels:
11331135
- medium
11341136
title: SLEM 5 must generate audit records for a uses of the "chsh" command.
1135-
rules: []
1136-
status: pending
1137+
rules:
1138+
- audit_rules_privileged_commands_chsh
1139+
status: automated
11371140
- id: SLEM-05-654040
11381141
levels:
11391142
- medium
11401143
title: SLEM 5 must generate audit records for all uses of the "crontab" command.
1141-
rules: []
1142-
status: pending
1144+
rules:
1145+
- audit_rules_privileged_commands_crontab
1146+
status: automated
11431147
- id: SLEM-05-654045
11441148
levels:
11451149
- medium
11461150
title: SLEM 5 must generate audit records for all uses of the "gpasswd" command.
1147-
rules: []
1148-
status: pending
1151+
rules:
1152+
- audit_rules_privileged_commands_gpasswd
1153+
status: automated
11491154
- id: SLEM-05-654050
11501155
levels:
11511156
- medium
@@ -1168,8 +1173,9 @@ controls:
11681173
levels:
11691174
- medium
11701175
title: SLEM 5 must generate audit records for all uses of the "newgrp" command.
1171-
rules: []
1172-
status: pending
1176+
rules:
1177+
- audit_rules_privileged_commands_newgrp
1178+
status: automated
11731179
- id: SLEM-05-654070
11741180
levels:
11751181
- medium
@@ -1181,8 +1187,9 @@ controls:
11811187
levels:
11821188
- medium
11831189
title: SLEM 5 must generate audit records for all uses of the "passwd" command.
1184-
rules: []
1185-
status: pending
1190+
rules:
1191+
- audit_rules_privileged_commands_passwd
1192+
status: automated
11861193
- id: SLEM-05-654080
11871194
levels:
11881195
- medium
@@ -1205,14 +1212,15 @@ controls:
12051212
levels:
12061213
- medium
12071214
title: SLEM 5 must generate audit records for all uses of the "ssh-agent" command.
1208-
rules: []
1215+
rules: []
12091216
status: pending
12101217
- id: SLEM-05-654100
12111218
levels:
12121219
- medium
12131220
title: SLEM 5 must generate audit records for all uses of the "ssh-keysign" command.
1214-
rules: []
1215-
status: pending
1221+
rules:
1222+
- audit_rules_privileged_commands_ssh_keysign
1223+
status: automated
12161224
- id: SLEM-05-654105
12171225
levels:
12181226
- medium
@@ -1229,15 +1237,17 @@ controls:
12291237
levels:
12301238
- medium
12311239
title: SLEM 5 must generate audit records for all uses of the "sudoedit" command.
1232-
rules: []
1233-
status: pending
1240+
rules:
1241+
- audit_rules_privileged_commands_sudoedit
1242+
status: automated
12341243
- id: SLEM-05-654120
12351244
levels:
12361245
- medium
12371246
title: SLEM 5 must generate audit records for all uses of the "unix_chkpwd" or "unix2_chkpwd"
12381247
commands.
1239-
rules: []
1240-
status: pending
1248+
rules:
1249+
- audit_rules_privileged_commands_unix_chkpwd
1250+
status: automated
12411251
- id: SLEM-05-654125
12421252
levels:
12431253
- medium

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_chage/rule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"] %}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -40,6 +40,7 @@ identifiers:
4040
cce@rhel10: CCE-90143-9
4141
cce@sle12: CCE-83110-7
4242
cce@sle15: CCE-85587-4
43+
cce@slmicro5: CCE-93607-0
4344

4445
references:
4546
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_chfn/rule.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ severity: medium
2929
identifiers:
3030
cce@sle12: CCE-83187-5
3131
cce@sle15: CCE-85589-0
32+
cce@slmicro5: CCE-93610-4
3233

3334
references:
3435
cis@ubuntu2004: 4.1.11

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_chsh/rule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"] %}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -40,6 +40,7 @@ identifiers:
4040
cce@rhel10: CCE-89551-6
4141
cce@sle12: CCE-83163-6
4242
cce@sle15: CCE-85586-6
43+
cce@slmicro5: CCE-93605-4
4344

4445
references:
4546
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_crontab/rule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"] %}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -40,6 +40,7 @@ identifiers:
4040
cce@rhel10: CCE-89029-3
4141
cce@sle12: CCE-83126-3
4242
cce@sle15: CCE-85588-2
43+
cce@slmicro5: CCE-93608-8
4344

4445
references:
4546
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_gpasswd/rule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"]%}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5" ,"ubuntu2004", "ubuntu2204"]%}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -40,6 +40,7 @@ identifiers:
4040
cce@rhel10: CCE-89403-0
4141
cce@sle12: CCE-83161-0
4242
cce@sle15: CCE-85584-1
43+
cce@slmicro5: CCE-93603-9
4344

4445
references:
4546
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_newgrp/rule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"]%}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"]%}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -40,6 +40,7 @@ identifiers:
4040
cce@rhel10: CCE-88752-1
4141
cce@sle12: CCE-83162-8
4242
cce@sle15: CCE-85585-8
43+
cce@slmicro5: CCE-93604-7
4344

4445
references:
4546
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_passwd/rule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"]%}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"]%}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -40,6 +40,7 @@ identifiers:
4040
cce@rhel10: CCE-89215-8
4141
cce@sle12: CCE-83160-2
4242
cce@sle15: CCE-85583-3
43+
cce@slmicro5: CCE-93602-1
4344

4445
references:
4546
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_ssh_keysign/rule.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"] %}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

5-
{{%- if product in ["sle12", "sle15"] %}}
5+
{{%- if product in ["sle12", "sle15", "slmicro5"] %}}
66
{{%- set ssh_keysign_path="/usr/lib/ssh/ssh-keysign" %}}
77
{{%- elif 'ubuntu' in product %}}
88
{{%- set ssh_keysign_path="/usr/lib/openssh/ssh-keysign" %}}
@@ -48,6 +48,7 @@ identifiers:
4848
cce@rhel10: CCE-88874-3
4949
cce@sle12: CCE-83159-4
5050
cce@sle15: CCE-85582-5
51+
cce@susemicro5: CCE-93601-3
5152

5253
references:
5354
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9
@@ -80,5 +81,6 @@ template:
8081
path: /usr/libexec/openssh/ssh-keysign
8182
path@sle12: /usr/lib/ssh/ssh-keysign
8283
path@sle15: /usr/lib/ssh/ssh-keysign
84+
path@slmicro5: /usr/lib/ssh/ssh-keysign
8385
path@ubuntu2004: /usr/lib/openssh/ssh-keysign
8486
path@ubuntu2204: /usr/lib/openssh/ssh-keysign

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_sudoedit/rule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol8", "ol9", "rhel8", "rhel9", "sle12", "sle15", "ubuntu2004", "ubuntu2204"] %}}
1+
{{%- if product in ["fedora", "ol8", "ol9", "rhel8", "rhel9", "sle12", "sle15", "slmicro5" ,"ubuntu2004", "ubuntu2204"] %}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -39,6 +39,7 @@ identifiers:
3939
cce@rhel9: CCE-83764-1
4040
cce@rhel10: CCE-89601-9
4141
cce@sle15: CCE-85717-7
42+
cce@slmicro5: CCE-93609-6
4243

4344
references:
4445
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9

linux_os/guide/auditing/auditd_configure_rules/audit_privileged_commands/audit_rules_privileged_commands_unix_chkpwd/rule.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"]%}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"]%}}
22
{{%- set perm_x="-F perm=x " %}}
33
{{%- endif %}}
44

@@ -40,6 +40,7 @@ identifiers:
4040
cce@rhel10: CCE-89529-2
4141
cce@sle12: CCE-83109-9
4242
cce@sle15: CCE-85727-6
43+
cce@slmicro5: CCE-93606-2
4344

4445
references:
4546
cis-csc: 1,12,13,14,15,16,2,3,5,6,7,8,9
@@ -71,3 +72,4 @@ template:
7172
path: /usr/sbin/unix_chkpwd
7273
path@sle12: /sbin/unix_chkpwd
7374
path@sle15: /sbin/unix_chkpwd
75+
path@slmicro5: /sbin/unix_chkpwd

shared/references/cce-slmicro5-avail.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
CCE-93601-3
2-
CCE-93602-1
3-
CCE-93603-9
4-
CCE-93604-7
5-
CCE-93605-4
6-
CCE-93606-2
7-
CCE-93607-0
8-
CCE-93608-8
9-
CCE-93609-6
10-
CCE-93610-4
111
CCE-93611-2
122
CCE-93612-0
133
CCE-93613-8

shared/templates/audit_rules_privileged_commands/ansible.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"] %}}
22
{{%- set perm_x=" -F perm=x" %}}
33
{{%- endif %}}
4-
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_ubuntu
4+
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_slmicro,multi_platform_ubuntu
55
# reboot = false
66
# strategy = restrict
77
# complexity = low

shared/templates/audit_rules_privileged_commands/bash.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204", "debian12"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204", "debian12"] %}}
22
{{%- set perm_x=" -F perm=x" %}}
33
{{%- endif %}}
44
# platform = multi_platform_all

shared/templates/audit_rules_privileged_commands/oval.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204", "debian12"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204", "debian12"] %}}
22
{{%- set perm_x="(?:[\s]+-F[\s]+perm=x)" %}}
33
{{%- endif %}}
44
<def-group>

shared/templates/audit_rules_privileged_commands/tests/auditctl_missing_perm_x.fail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_sle,multi_platform_ubuntu
2+
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_sle,multi_platform_slmicro,multi_platform_ubuntu
33
# packages = audit
44

55
source common.sh

shared/templates/audit_rules_privileged_commands/tests/augenrules_missing_perm_x.fail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_sle,multi_platform_ubuntu
2+
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_sle,multi_platform_slmicro,multi_platform_ubuntu
33

44
source common.sh
55

shared/templates/audit_rules_privileged_commands/tests/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "ubuntu2004", "ubuntu2204"] %}}
1+
{{%- if product in ["fedora", "ol7", "ol8", "ol9", "rhel8", "rhel9", "rhel10", "sle12", "sle15", "slmicro5", "ubuntu2004", "ubuntu2204"] %}}
22
perm_x="-F perm=x"
33
{{%- endif %}}
44

0 commit comments

Comments
 (0)