-
Notifications
You must be signed in to change notification settings - Fork 19
/
section_04.yml
303 lines (237 loc) · 13.6 KB
/
section_04.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
---
# Default Variables for CIS Ubuntu Linux 20.04 LTS Benchmark v1.1.0 Section 4
# Variables for 4.1.1.1
ubuntu_2004_cis_section4_rule_4_1_1_1: true
ubuntu_2004_cis_section4_rule_4_1_1_1_params_name:
- auditd
- audispd-plugins
ubuntu_2004_cis_section4_rule_4_1_1_1_params_state: present
# Variables for 4.1.1.2
ubuntu_2004_cis_section4_rule_4_1_1_2: true
ubuntu_2004_cis_section4_rule_4_1_1_2_params_auditd_service_name: auditd
ubuntu_2004_cis_section4_rule_4_1_1_2_params_auditd_service_enabled: yes
# Variables for 4.1.1.3
ubuntu_2004_cis_section4_rule_4_1_1_3: true
ubuntu_2004_cis_section4_rule_4_1_1_3_params_auditd_enabled_path: /etc/default/grub
ubuntu_2004_cis_section4_rule_4_1_1_3_params_auditd_enabled_regex: '^GRUB_CMDLINE_LINUX="(((?!audit=1).)*)"$'
ubuntu_2004_cis_section4_rule_4_1_1_3_params_auditd_enabled_replace: 'GRUB_CMDLINE_LINUX="\1 audit=1"'
ubuntu_2004_cis_section4_rule_4_1_1_3_params_auditd_enabled_owner: root
ubuntu_2004_cis_section4_rule_4_1_1_3_params_auditd_enabled_group: root
ubuntu_2004_cis_section4_rule_4_1_1_3_params_auditd_enabled_mode: '0644'
# Variables for 4.1.1.4
ubuntu_2004_cis_section4_rule_4_1_1_4: true
ubuntu_2004_cis_section4_rule_4_1_1_4_params_auditd_backlog_path: /etc/default/grub
ubuntu_2004_cis_section4_rule_4_1_1_4_params_auditd_backlog_regex: '^GRUB_CMDLINE_LINUX="(((?!audit_backlog_limit).)*)"$'
ubuntu_2004_cis_section4_rule_4_1_1_4_params_auditd_backlog_replace: 'GRUB_CMDLINE_LINUX="\1 audit_backlog_limit={{ ubuntu_2004_cis_auditd_backloglimit }}"'
ubuntu_2004_cis_section4_rule_4_1_1_4_params_auditd_backlog_owner: root
ubuntu_2004_cis_section4_rule_4_1_1_4_params_auditd_backlog_group: root
ubuntu_2004_cis_section4_rule_4_1_1_4_params_auditd_backlog_mode: '0644'
# Variables for 4.1.2.1
ubuntu_2004_cis_section4_rule_4_1_2_1: true
ubuntu_2004_cis_section4_rule_4_1_2_1_params_path: /etc/audit/auditd.conf
ubuntu_2004_cis_section4_rule_4_1_2_1_params_line: max_log_file = {{ ubuntu_2004_cis_auditd_maxlogfile }}
ubuntu_2004_cis_section4_rule_4_1_2_1_params_regexp: ^max_log_file .*
ubuntu_2004_cis_section4_rule_4_1_2_1_params_state: present
ubuntu_2004_cis_section4_rule_4_1_2_1_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_2_1_params_group: root
ubuntu_2004_cis_section4_rule_4_1_2_1_params_mode: '0640'
# Variables for 4.1.2.2
ubuntu_2004_cis_section4_rule_4_1_2_2: true
ubuntu_2004_cis_section4_rule_4_1_2_2_params_path: /etc/audit/auditd.conf
ubuntu_2004_cis_section4_rule_4_1_2_2_params_line: max_log_file_action = {{ ubuntu_2004_cis_auditd_maxlogfileaction }}
ubuntu_2004_cis_section4_rule_4_1_2_2_params_regexp: ^max_log_file_action .*
ubuntu_2004_cis_section4_rule_4_1_2_2_params_state: present
ubuntu_2004_cis_section4_rule_4_1_2_2_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_2_2_params_group: root
ubuntu_2004_cis_section4_rule_4_1_2_2_params_mode: '0640'
# Variables for 4.1.2.3
ubuntu_2004_cis_section4_rule_4_1_2_3: true
ubuntu_2004_cis_section4_rule_4_1_2_3_params_path: /etc/audit/auditd.conf
ubuntu_2004_cis_section4_rule_4_1_2_3_params_space_left_action_line: space_left_action = {{ ubuntu_2004_cis_auditd_spaceleftaction }}
ubuntu_2004_cis_section4_rule_4_1_2_3_params_space_left_action_regexp: ^space_left_action .*
ubuntu_2004_cis_section4_rule_4_1_2_3_params_action_mail_acct_line: action_mail_acct = {{ ubuntu_2004_cis_auditd_actionmailacct }}
ubuntu_2004_cis_section4_rule_4_1_2_3_params_action_mail_acct_regexp: ^action_mail_acct .*
ubuntu_2004_cis_section4_rule_4_1_2_3_params_admin_space_left_action_line: admin_space_left_action = {{ ubuntu_2004_cis_auditd_adminspaceleftaction }}
ubuntu_2004_cis_section4_rule_4_1_2_3_params_admin_space_left_action_regexp: ^admin_space_left_action .*
ubuntu_2004_cis_section4_rule_4_1_2_3_params_state: present
ubuntu_2004_cis_section4_rule_4_1_2_3_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_2_3_params_group: root
ubuntu_2004_cis_section4_rule_4_1_2_3_params_mode: '0640'
ubuntu_2004_cis_section4_rule_4_1_2_3_params_audit_rules_path: /etc/audit/rules.d/audit.rules
ubuntu_2004_cis_section4_rule_4_1_2_3_params_audit_rules_state: absent
ubuntu_2004_cis_section4_rule_4_1_2_3_params_audit_rules_mode: '0640'
# Variables for 4.1.3
ubuntu_2004_cis_section4_rule_4_1_3: true
ubuntu_2004_cis_section4_rule_4_1_3_params_source: section_04/4.1.3.rules.j2
ubuntu_2004_cis_section4_rule_4_1_3_params_dest: /etc/audit/rules.d/4.1.3.rules
ubuntu_2004_cis_section4_rule_4_1_3_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_3_params_group: root
ubuntu_2004_cis_section4_rule_4_1_3_params_mode: '0640'
# Variables for 4.1.4
ubuntu_2004_cis_section4_rule_4_1_4: true
ubuntu_2004_cis_section4_rule_4_1_4_params_source: section_04/4.1.4.rules.j2
ubuntu_2004_cis_section4_rule_4_1_4_params_dest: /etc/audit/rules.d/4.1.4.rules
ubuntu_2004_cis_section4_rule_4_1_4_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_4_params_group: root
ubuntu_2004_cis_section4_rule_4_1_4_params_mode: '0640'
# Variables for 4.1.5
ubuntu_2004_cis_section4_rule_4_1_5: true
ubuntu_2004_cis_section4_rule_4_1_5_params_source: section_04/4.1.5.rules.j2
ubuntu_2004_cis_section4_rule_4_1_5_params_dest: /etc/audit/rules.d/4.1.5.rules
ubuntu_2004_cis_section4_rule_4_1_5_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_5_params_group: root
ubuntu_2004_cis_section4_rule_4_1_5_params_mode: '0640'
# Variables for 4.1.6
ubuntu_2004_cis_section4_rule_4_1_6: true
ubuntu_2004_cis_section4_rule_4_1_6_params_source: section_04/4.1.6.rules.j2
ubuntu_2004_cis_section4_rule_4_1_6_params_dest: /etc/audit/rules.d/4.1.6.rules
ubuntu_2004_cis_section4_rule_4_1_6_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_6_params_group: root
ubuntu_2004_cis_section4_rule_4_1_6_params_mode: '0640'
# Variables for 4.1.7
ubuntu_2004_cis_section4_rule_4_1_7: true
ubuntu_2004_cis_section4_rule_4_1_7_params_source: section_04/4.1.7.rules.j2
ubuntu_2004_cis_section4_rule_4_1_7_params_dest: /etc/audit/rules.d/4.1.7.rules
ubuntu_2004_cis_section4_rule_4_1_7_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_7_params_group: root
ubuntu_2004_cis_section4_rule_4_1_7_params_mode: '0640'
# Variables for 4.1.8
ubuntu_2004_cis_section4_rule_4_1_8: true
ubuntu_2004_cis_section4_rule_4_1_8_params_source: section_04/4.1.8.rules.j2
ubuntu_2004_cis_section4_rule_4_1_8_params_dest: /etc/audit/rules.d/4.1.8.rules
ubuntu_2004_cis_section4_rule_4_1_8_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_8_params_group: root
ubuntu_2004_cis_section4_rule_4_1_8_params_mode: '0640'
# Variables for 4.1.9
ubuntu_2004_cis_section4_rule_4_1_9: true
ubuntu_2004_cis_section4_rule_4_1_9_params_source: section_04/4.1.9.rules.j2
ubuntu_2004_cis_section4_rule_4_1_9_params_dest: /etc/audit/rules.d/4.1.9.rules
ubuntu_2004_cis_section4_rule_4_1_9_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_9_params_group: root
ubuntu_2004_cis_section4_rule_4_1_9_params_mode: '0640'
# Variables for 4.1.10
ubuntu_2004_cis_section4_rule_4_1_10: true
ubuntu_2004_cis_section4_rule_4_1_10_params_source: section_04/4.1.10.rules.j2
ubuntu_2004_cis_section4_rule_4_1_10_params_dest: /etc/audit/rules.d/4.1.10.rules
ubuntu_2004_cis_section4_rule_4_1_10_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_10_params_group: root
ubuntu_2004_cis_section4_rule_4_1_10_params_mode: '0640'
# Variables for 4.1.11
ubuntu_2004_cis_section4_rule_4_1_11: true
ubuntu_2004_cis_section4_rule_4_1_11_params_script: 4.1.11.audit_priveleged_commands.sh
ubuntu_2004_cis_section4_rule_4_1_11_params_source: section_04/4.1.11.rules.j2
ubuntu_2004_cis_section4_rule_4_1_11_params_dest: /etc/audit/rules.d/4.1.11.rules
ubuntu_2004_cis_section4_rule_4_1_11_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_11_params_group: root
ubuntu_2004_cis_section4_rule_4_1_11_params_mode: '0640'
# Variables for 4.1.12
ubuntu_2004_cis_section4_rule_4_1_12: true
ubuntu_2004_cis_section4_rule_4_1_12_params_source: section_04/4.1.12.rules.j2
ubuntu_2004_cis_section4_rule_4_1_12_params_dest: /etc/audit/rules.d/4.1.12.rules
ubuntu_2004_cis_section4_rule_4_1_12_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_12_params_group: root
ubuntu_2004_cis_section4_rule_4_1_12_params_mode: '0640'
# Variables for 4.1.13
ubuntu_2004_cis_section4_rule_4_1_13: true
ubuntu_2004_cis_section4_rule_4_1_13_params_source: section_04/4.1.13.rules.j2
ubuntu_2004_cis_section4_rule_4_1_13_params_dest: /etc/audit/rules.d/4.1.13.rules
ubuntu_2004_cis_section4_rule_4_1_13_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_13_params_group: root
ubuntu_2004_cis_section4_rule_4_1_13_params_mode: '0640'
# Variables for 4.1.14
ubuntu_2004_cis_section4_rule_4_1_14: true
ubuntu_2004_cis_section4_rule_4_1_14_params_source: section_04/4.1.14.rules.j2
ubuntu_2004_cis_section4_rule_4_1_14_params_dest: /etc/audit/rules.d/4.1.14.rules
ubuntu_2004_cis_section4_rule_4_1_14_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_14_params_group: root
ubuntu_2004_cis_section4_rule_4_1_14_params_mode: '0640'
# Variables for 4.1.15
ubuntu_2004_cis_section4_rule_4_1_15: true
ubuntu_2004_cis_section4_rule_4_1_15_params_source: section_04/4.1.15.rules.j2
ubuntu_2004_cis_section4_rule_4_1_15_params_dest: /etc/audit/rules.d/4.1.15.rules
ubuntu_2004_cis_section4_rule_4_1_15_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_15_params_group: root
ubuntu_2004_cis_section4_rule_4_1_15_params_mode: '0640'
# Variables for 4.1.16
ubuntu_2004_cis_section4_rule_4_1_16: true
ubuntu_2004_cis_section4_rule_4_1_16_params_source: section_04/4.1.16.rules.j2
ubuntu_2004_cis_section4_rule_4_1_16_params_dest: /etc/audit/rules.d/4.1.16.rules
ubuntu_2004_cis_section4_rule_4_1_16_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_16_params_group: root
ubuntu_2004_cis_section4_rule_4_1_16_params_mode: '0640'
# Variables for 4.1.17
ubuntu_2004_cis_section4_rule_4_1_17: true
ubuntu_2004_cis_section4_rule_4_1_17_params_source: section_04/99_4.1.17.rules.j2
ubuntu_2004_cis_section4_rule_4_1_17_params_dest: /etc/audit/rules.d/99_4.1.17.rules
ubuntu_2004_cis_section4_rule_4_1_17_params_owner: root
ubuntu_2004_cis_section4_rule_4_1_17_params_group: root
ubuntu_2004_cis_section4_rule_4_1_17_params_mode: '0640'
# Variables for 4.2.1.1
ubuntu_2004_cis_section4_rule_4_2_1_1: true
ubuntu_2004_cis_section4_rule_4_2_1_1_params_name: rsyslog
ubuntu_2004_cis_section4_rule_4_2_1_1_params_state: present
# Variables for 4.2.1.2
ubuntu_2004_cis_section4_rule_4_2_1_2: true
ubuntu_2004_cis_section4_rule_4_2_1_2_params_rsyslog_service_name: rsyslog
ubuntu_2004_cis_section4_rule_4_2_1_2_params_rsyslog_service_enabled: yes
# Variables for 4.2.1.3
ubuntu_2004_cis_section4_rule_4_2_1_3: true
ubuntu_2004_cis_section4_rule_4_2_1_3_params_source: section_04/4.2.1.3_50-default.conf.j2
ubuntu_2004_cis_section4_rule_4_2_1_3_params_dest: /etc/rsyslog.d/50-default.conf
ubuntu_2004_cis_section4_rule_4_2_1_3_params_owner: root
ubuntu_2004_cis_section4_rule_4_2_1_3_params_group: root
ubuntu_2004_cis_section4_rule_4_2_1_3_params_mode: '0644'
# Variables for 4.2.1.4
ubuntu_2004_cis_section4_rule_4_2_1_4: true
ubuntu_2004_cis_section4_rule_4_2_1_4_params_path: /etc/rsyslog.conf
ubuntu_2004_cis_section4_rule_4_2_1_4_params_line: $FileCreateMode 0640
ubuntu_2004_cis_section4_rule_4_2_1_4_params_regexp: ^$FileCreateMode.*
ubuntu_2004_cis_section4_rule_4_2_1_4_params_state: present
ubuntu_2004_cis_section4_rule_4_2_1_4_params_owner: root
ubuntu_2004_cis_section4_rule_4_2_1_4_params_group: root
ubuntu_2004_cis_section4_rule_4_2_1_4_params_mode: '0644'
# Variables for 4.2.1.5
ubuntu_2004_cis_section4_rule_4_2_1_5: true
# Variables for 4.2.1.5
ubuntu_2004_cis_section4_rule_4_2_1_6: true
# Variables for 4.2.2.1
ubuntu_2004_cis_section4_rule_4_2_2_1: true
ubuntu_2004_cis_section4_rule_4_2_2_1_params_path: /etc/systemd/journald.conf
ubuntu_2004_cis_section4_rule_4_2_2_1_params_line: ForwardToSyslog=yes
ubuntu_2004_cis_section4_rule_4_2_2_1_params_regexp: .*ForwardToSyslog.*
ubuntu_2004_cis_section4_rule_4_2_2_1_params_state: present
ubuntu_2004_cis_section4_rule_4_2_2_1_params_owner: root
ubuntu_2004_cis_section4_rule_4_2_2_1_params_group: root
ubuntu_2004_cis_section4_rule_4_2_2_1_params_mode: '0644'
# Variables for 4.2.2.2
ubuntu_2004_cis_section4_rule_4_2_2_2: true
ubuntu_2004_cis_section4_rule_4_2_2_2_params_path: /etc/systemd/journald.conf
ubuntu_2004_cis_section4_rule_4_2_2_2_params_line: Compress=yes
ubuntu_2004_cis_section4_rule_4_2_2_2_params_regexp: .*Compress.*
ubuntu_2004_cis_section4_rule_4_2_2_2_params_state: present
ubuntu_2004_cis_section4_rule_4_2_2_2_params_owner: root
ubuntu_2004_cis_section4_rule_4_2_2_2_params_group: root
ubuntu_2004_cis_section4_rule_4_2_2_2_params_mode: '0644'
# Variables for 4.2.2.3
ubuntu_2004_cis_section4_rule_4_2_2_3: true
ubuntu_2004_cis_section4_rule_4_2_2_3_params_path: /etc/systemd/journald.conf
ubuntu_2004_cis_section4_rule_4_2_2_3_params_line: Storage=persistent
ubuntu_2004_cis_section4_rule_4_2_2_3_params_regexp: .*Storage.*
ubuntu_2004_cis_section4_rule_4_2_2_3_params_state: present
ubuntu_2004_cis_section4_rule_4_2_2_3_params_owner: root
ubuntu_2004_cis_section4_rule_4_2_2_3_params_group: root
ubuntu_2004_cis_section4_rule_4_2_2_3_params_mode: '0644'
# Variables for 4.2.2.3
ubuntu_2004_cis_section4_rule_4_2_3: true
ubuntu_2004_cis_section4_rule_4_2_3_params_command: find /var/log -type f -exec chmod g-wx,o-rwx "{}" + -o -type d -exec chmod g-w,o-rwx "{}" +
# Variables for 4.3
ubuntu_2004_cis_section4_rule_4_3: true
# Variables for 4.4
ubuntu_2004_cis_section4_rule_4_4: true
ubuntu_2004_cis_section4_rule_4_4_params_path: /etc/logrotate.conf
ubuntu_2004_cis_section4_rule_4_4_params_line: create 0640 root utmp
ubuntu_2004_cis_section4_rule_4_4_params_regexp: ^create.*
ubuntu_2004_cis_section4_rule_4_4_params_state: present
ubuntu_2004_cis_section4_rule_4_4_params_owner: root
ubuntu_2004_cis_section4_rule_4_4_params_group: root
ubuntu_2004_cis_section4_rule_4_4_params_mode: '0644'