-
Notifications
You must be signed in to change notification settings - Fork 19
/
section_05.yml
543 lines (440 loc) · 26.4 KB
/
section_05.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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
---
# Default Variables for CIS Ubuntu Linux 20.04 LTS Benchmark v1.1.0 Section 5
# Variables for 5.1.1
ubuntu_2004_cis_section5_rule_5_1_1: true
ubuntu_2004_cis_section5_rule_5_1_1_params_cron_service_name: cron
ubuntu_2004_cis_section5_rule_5_1_1_params_cron_service_state: started
ubuntu_2004_cis_section5_rule_5_1_1_params_cron_service_enabled: yes
# Variables for 5.1.2
ubuntu_2004_cis_section5_rule_5_1_2: true
ubuntu_2004_cis_section5_rule_5_1_2_params_path: /etc/crontab
ubuntu_2004_cis_section5_rule_5_1_2_params_state: file
ubuntu_2004_cis_section5_rule_5_1_2_params_owner: root
ubuntu_2004_cis_section5_rule_5_1_2_params_group: root
ubuntu_2004_cis_section5_rule_5_1_2_params_mode: '0600'
# Variables for 5.1.3
ubuntu_2004_cis_section5_rule_5_1_3: true
ubuntu_2004_cis_section5_rule_5_1_3_params_path: /etc/cron.hourly
ubuntu_2004_cis_section5_rule_5_1_3_params_state: directory
ubuntu_2004_cis_section5_rule_5_1_3_params_recurse: yes
ubuntu_2004_cis_section5_rule_5_1_3_params_owner: root
ubuntu_2004_cis_section5_rule_5_1_3_params_group: root
ubuntu_2004_cis_section5_rule_5_1_3_params_mode: '0700'
# Variables for 5.1.4
ubuntu_2004_cis_section5_rule_5_1_4: true
ubuntu_2004_cis_section5_rule_5_1_4_params_path: /etc/cron.daily
ubuntu_2004_cis_section5_rule_5_1_4_params_state: directory
ubuntu_2004_cis_section5_rule_5_1_4_params_recurse: yes
ubuntu_2004_cis_section5_rule_5_1_4_params_owner: root
ubuntu_2004_cis_section5_rule_5_1_4_params_group: root
ubuntu_2004_cis_section5_rule_5_1_4_params_mode: '0700'
# Variables for 5.1.5
ubuntu_2004_cis_section5_rule_5_1_5: true
ubuntu_2004_cis_section5_rule_5_1_5_params_path: /etc/cron.weekly
ubuntu_2004_cis_section5_rule_5_1_5_params_state: directory
ubuntu_2004_cis_section5_rule_5_1_5_params_recurse: yes
ubuntu_2004_cis_section5_rule_5_1_5_params_owner: root
ubuntu_2004_cis_section5_rule_5_1_5_params_group: root
ubuntu_2004_cis_section5_rule_5_1_5_params_mode: '0700'
# Variables for 5.1.6
ubuntu_2004_cis_section5_rule_5_1_6: true
ubuntu_2004_cis_section5_rule_5_1_6_params_path: /etc/cron.monthly
ubuntu_2004_cis_section5_rule_5_1_6_params_state: directory
ubuntu_2004_cis_section5_rule_5_1_6_params_recurse: yes
ubuntu_2004_cis_section5_rule_5_1_6_params_owner: root
ubuntu_2004_cis_section5_rule_5_1_6_params_group: root
ubuntu_2004_cis_section5_rule_5_1_6_params_mode: '0700'
# Variables for 5.1.7
ubuntu_2004_cis_section5_rule_5_1_7: true
ubuntu_2004_cis_section5_rule_5_1_7_params_path: /etc/cron.d
ubuntu_2004_cis_section5_rule_5_1_7_params_state: directory
ubuntu_2004_cis_section5_rule_5_1_7_params_recurse: yes
ubuntu_2004_cis_section5_rule_5_1_7_params_owner: root
ubuntu_2004_cis_section5_rule_5_1_7_params_group: root
ubuntu_2004_cis_section5_rule_5_1_7_params_mode: '0700'
# Variables for 5.1.8
ubuntu_2004_cis_section5_rule_5_1_8: true
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_deny_path: /etc/cron.deny
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_deny_state: absent
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_deny_mode: '0640'
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_allow_source: section_05/5.1.8.cron.allow.j2
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_allow_dest: /etc/cron.allow
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_allows_owner: root
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_allow_group: root
ubuntu_2004_cis_section5_rule_5_1_8_params_cron_allow_mode: '0640'
# Variables for 5.1.9
ubuntu_2004_cis_section5_rule_5_1_9: true
ubuntu_2004_cis_section5_rule_5_1_9_params_at_deny_path: /etc/at.deny
ubuntu_2004_cis_section5_rule_5_1_9_params_at_deny_state: absent
ubuntu_2004_cis_section5_rule_5_1_9_params_at_deny_mode: '0640'
ubuntu_2004_cis_section5_rule_5_1_9_params_at_allow_source: section_05/5.1.9.at.allow.j2
ubuntu_2004_cis_section5_rule_5_1_9_params_at_allow_dest: /etc/at.allow
ubuntu_2004_cis_section5_rule_5_1_9_params_at_allows_owner: root
ubuntu_2004_cis_section5_rule_5_1_9_params_at_allow_group: root
ubuntu_2004_cis_section5_rule_5_1_9_params_at_allow_mode: '0640'
# Variables for 5.2.1
ubuntu_2004_cis_section5_rule_5_2_1: true
ubuntu_2004_cis_section5_rule_5_2_1_params_package_name: sudo
ubuntu_2004_cis_section5_rule_5_2_1_params_package_state: present
# Variables for 5.2.2
ubuntu_2004_cis_section5_rule_5_2_2: true
ubuntu_2004_cis_section5_rule_5_2_2_params_path: /etc/sudoers
ubuntu_2004_cis_section5_rule_5_2_2_params_line: Defaults use_pty
ubuntu_2004_cis_section5_rule_5_2_2_params_regexp: ^Defaults.*use_pty
ubuntu_2004_cis_section5_rule_5_2_2_params_state: present
ubuntu_2004_cis_section5_rule_5_2_2_params_owner: root
ubuntu_2004_cis_section5_rule_5_2_2_params_group: root
ubuntu_2004_cis_section5_rule_5_2_2_params_mode: '0640'
ubuntu_2004_cis_section5_rule_5_2_2_params_validate: visudo -cf %s
# Variables for 5.2.3
ubuntu_2004_cis_section5_rule_5_2_3: true
ubuntu_2004_cis_section5_rule_5_2_3_params_path: /etc/sudoers
ubuntu_2004_cis_section5_rule_5_2_3_params_line: Defaults logfile="/var/log/sudo.log"
ubuntu_2004_cis_section5_rule_5_2_3_params_regexp: ^Defaults.*logfile
ubuntu_2004_cis_section5_rule_5_2_3_params_state: present
ubuntu_2004_cis_section5_rule_5_2_3_params_owner: root
ubuntu_2004_cis_section5_rule_5_2_3_params_group: root
ubuntu_2004_cis_section5_rule_5_2_3_params_mode: '0640'
ubuntu_2004_cis_section5_rule_5_2_3_params_validate: visudo -cf %s
# Variables for 5.3.1
ubuntu_2004_cis_section5_rule_5_3_1: true
ubuntu_2004_cis_section5_rule_5_3_1_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_1_params_state: file
ubuntu_2004_cis_section5_rule_5_3_1_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_1_params_group: root
ubuntu_2004_cis_section5_rule_5_3_1_params_mode: '0600'
# Variables for 5.3.2
ubuntu_2004_cis_section5_rule_5_3_2: true
ubuntu_2004_cis_section5_rule_5_3_2_params_onwership_command: find /etc/ssh -xdev -type f -name 'ssh_host_*_key' -exec chown root:root {} \;
ubuntu_2004_cis_section5_rule_5_3_2_params_permissions_command: find /etc/ssh -xdev -type f -name 'ssh_host_*_key' -exec chmod 0600 {} \;
# Variables for 5.3.3
ubuntu_2004_cis_section5_rule_5_3_3: true
ubuntu_2004_cis_section5_rule_5_3_3_params_onwership_command: find /etc/ssh -xdev -type f -name 'ssh_host_*_key.pub' -exec chown root:root {} \;
ubuntu_2004_cis_section5_rule_5_3_3_params_permissions_command: find /etc/ssh -xdev -type f -name 'ssh_host_*_key.pub' -exec chmod 0600 {} \;
# Variables for 5.3.4
ubuntu_2004_cis_section5_rule_5_3_4: true
ubuntu_2004_cis_section5_rule_5_3_4_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_4_params_allowusers_line: "AllowUsers {{ ubuntu_2004_cis_require_ssh_allowusers }}"
ubuntu_2004_cis_section5_rule_5_3_4_params_allowusers_regexp: ^AllowUsers.*
ubuntu_2004_cis_section5_rule_5_3_4_params_allowgroups_line: "AllowGroups {{ ubuntu_2004_cis_require_ssh_allowgroups }}"
ubuntu_2004_cis_section5_rule_5_3_4_params_allowgroups_regexp: ^AllowGroups.*
ubuntu_2004_cis_section5_rule_5_3_4_params_denyusers_line: "DenyUsers {{ ubuntu_2004_cis_require_ssh_denyusers }}"
ubuntu_2004_cis_section5_rule_5_3_4_params_denyusers_regexp: ^DenyUsers.*
ubuntu_2004_cis_section5_rule_5_3_4_params_denygroups_line: "DenyGroups {{ ubuntu_2004_cis_require_ssh_denygroups }}"
ubuntu_2004_cis_section5_rule_5_3_4_params_denygroups_regexp: ^DenyGroups.*
ubuntu_2004_cis_section5_rule_5_3_4_params_state: present
ubuntu_2004_cis_section5_rule_5_3_4_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_4_params_group: root
ubuntu_2004_cis_section5_rule_5_3_4_params_mode: '0600'
# Variables for 5.3.5
ubuntu_2004_cis_section5_rule_5_3_5: true
ubuntu_2004_cis_section5_rule_5_3_5_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_5_params_line: LogLevel INFO
ubuntu_2004_cis_section5_rule_5_3_5_params_regexp: ^LogLevel.*
ubuntu_2004_cis_section5_rule_5_3_5_params_state: present
ubuntu_2004_cis_section5_rule_5_3_5_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_5_params_group: root
ubuntu_2004_cis_section5_rule_5_3_5_params_mode: '0600'
# Variables for 5.3.6
ubuntu_2004_cis_section5_rule_5_3_6: true
ubuntu_2004_cis_section5_rule_5_3_6_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_6_params_line: X11Forwarding no
ubuntu_2004_cis_section5_rule_5_3_6_params_regexp: ^X11Forwarding.*
ubuntu_2004_cis_section5_rule_5_3_6_params_state: present
ubuntu_2004_cis_section5_rule_5_3_6_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_6_params_group: root
ubuntu_2004_cis_section5_rule_5_3_6_params_mode: '0600'
# Variables for 5.3.7
ubuntu_2004_cis_section5_rule_5_3_7: true
ubuntu_2004_cis_section5_rule_5_3_7_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_7_params_line: MaxAuthTries 4
ubuntu_2004_cis_section5_rule_5_3_7_params_regexp: ^MaxAuthTries.*
ubuntu_2004_cis_section5_rule_5_3_7_params_state: present
ubuntu_2004_cis_section5_rule_5_3_7_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_7_params_group: root
ubuntu_2004_cis_section5_rule_5_3_7_params_mode: '0600'
# Variables for 5.3.8
ubuntu_2004_cis_section5_rule_5_3_8: true
ubuntu_2004_cis_section5_rule_5_3_8_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_8_params_line: IgnoreRhosts yes
ubuntu_2004_cis_section5_rule_5_3_8_params_regexp: ^IgnoreRhosts.*
ubuntu_2004_cis_section5_rule_5_3_8_params_state: present
ubuntu_2004_cis_section5_rule_5_3_8_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_8_params_group: root
ubuntu_2004_cis_section5_rule_5_3_8_params_mode: '0600'
# Variables for 5.3.9
ubuntu_2004_cis_section5_rule_5_3_9: true
ubuntu_2004_cis_section5_rule_5_3_9_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_9_params_line: HostbasedAuthentication no
ubuntu_2004_cis_section5_rule_5_3_9_params_regexp: ^HostbasedAuthentication.*
ubuntu_2004_cis_section5_rule_5_3_9_params_state: present
ubuntu_2004_cis_section5_rule_5_3_9_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_9_params_group: root
ubuntu_2004_cis_section5_rule_5_3_9_params_mode: '0600'
# Variables for 5.3.10
ubuntu_2004_cis_section5_rule_5_3_10: true
ubuntu_2004_cis_section5_rule_5_3_10_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_10_params_line: PermitRootLogin no
ubuntu_2004_cis_section5_rule_5_3_10_params_regexp: ^PermitRootLogin.*
ubuntu_2004_cis_section5_rule_5_3_10_params_state: present
ubuntu_2004_cis_section5_rule_5_3_10_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_10_params_group: root
ubuntu_2004_cis_section5_rule_5_3_10_params_mode: '0600'
# Variables for 5.3.11
ubuntu_2004_cis_section5_rule_5_3_11: true
ubuntu_2004_cis_section5_rule_5_3_11_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_11_params_line: PermitEmptyPasswords no
ubuntu_2004_cis_section5_rule_5_3_11_params_regexp: ^PermitEmptyPasswords.*
ubuntu_2004_cis_section5_rule_5_3_11_params_state: present
ubuntu_2004_cis_section5_rule_5_3_11_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_11_params_group: root
ubuntu_2004_cis_section5_rule_5_3_11_params_mode: '0600'
# Variables for 5.3.12
ubuntu_2004_cis_section5_rule_5_3_12: true
ubuntu_2004_cis_section5_rule_5_3_12_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_12_params_line: PermitUserEnvironment no
ubuntu_2004_cis_section5_rule_5_3_12_params_regexp: ^PermitUserEnvironment.*
ubuntu_2004_cis_section5_rule_5_3_12_params_state: present
ubuntu_2004_cis_section5_rule_5_3_12_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_12_params_group: root
ubuntu_2004_cis_section5_rule_5_3_12_params_mode: '0600'
# Variables for 5.3.13
ubuntu_2004_cis_section5_rule_5_3_13: true
ubuntu_2004_cis_section5_rule_5_3_13_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_13_params_line: "Ciphers {{ ubuntu_2004_cis_require_ssh_ciphers }}"
ubuntu_2004_cis_section5_rule_5_3_13_params_regexp: ^Ciphers.*
ubuntu_2004_cis_section5_rule_5_3_13_params_state: present
ubuntu_2004_cis_section5_rule_5_3_13_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_13_params_group: root
ubuntu_2004_cis_section5_rule_5_3_13_params_mode: '0600'
# Variables for 5.3.14
ubuntu_2004_cis_section5_rule_5_3_14: true
ubuntu_2004_cis_section5_rule_5_3_14_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_14_params_line: "MACs {{ ubuntu_2004_cis_require_ssh_macs }}"
ubuntu_2004_cis_section5_rule_5_3_14_params_regexp: ^MACs.*
ubuntu_2004_cis_section5_rule_5_3_14_params_state: present
ubuntu_2004_cis_section5_rule_5_3_14_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_14_params_group: root
ubuntu_2004_cis_section5_rule_5_3_14_params_mode: '0600'
# Variables for 5.3.15
ubuntu_2004_cis_section5_rule_5_3_15: true
ubuntu_2004_cis_section5_rule_5_3_15_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_15_params_line: "KexAlgorithms {{ ubuntu_2004_cis_require_ssh_kexalgorithms }}"
ubuntu_2004_cis_section5_rule_5_3_15_params_regexp: ^KexAlgorithms.*
ubuntu_2004_cis_section5_rule_5_3_15_params_state: present
ubuntu_2004_cis_section5_rule_5_3_15_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_15_params_group: root
ubuntu_2004_cis_section5_rule_5_3_15_params_mode: '0600'
# Variables for 5.3.16
ubuntu_2004_cis_section5_rule_5_3_16: true
ubuntu_2004_cis_section5_rule_5_3_16_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_16_params_clientaliveinterval_line: "ClientAliveInterval {{ ubuntu_2004_cis_require_ssh_clientaliveinterval }}"
ubuntu_2004_cis_section5_rule_5_3_16_params_clientaliveinterval_regexp: ^ClientAliveInterval.*
ubuntu_2004_cis_section5_rule_5_3_16_params_clientalivecountmax_line: "ClientAliveCountMax {{ ubuntu_2004_cis_require_ssh_clientalivecountmax }}"
ubuntu_2004_cis_section5_rule_5_3_16_params_clientalivecountmax_regexp: ^ClientAliveCountMax.*
ubuntu_2004_cis_section5_rule_5_3_16_params_state: present
ubuntu_2004_cis_section5_rule_5_3_16_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_16_params_group: root
ubuntu_2004_cis_section5_rule_5_3_16_params_mode: '0600'
# Variables for 5.3.17
ubuntu_2004_cis_section5_rule_5_3_17: true
ubuntu_2004_cis_section5_rule_5_3_17_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_17_params_line: "LoginGraceTime {{ ubuntu_2004_cis_require_ssh_logingracetime }}"
ubuntu_2004_cis_section5_rule_5_3_17_params_regexp: ^LoginGraceTime.*
ubuntu_2004_cis_section5_rule_5_3_17_params_state: present
ubuntu_2004_cis_section5_rule_5_3_17_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_17_params_group: root
ubuntu_2004_cis_section5_rule_5_3_17_params_mode: '0600'
# Variables for 5.3.18
ubuntu_2004_cis_section5_rule_5_3_18: true
ubuntu_2004_cis_section5_rule_5_3_18_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_18_params_line: "Banner /etc/issue.net"
ubuntu_2004_cis_section5_rule_5_3_18_params_regexp: ^Banner.*
ubuntu_2004_cis_section5_rule_5_3_18_params_state: present
ubuntu_2004_cis_section5_rule_5_3_18_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_18_params_group: root
ubuntu_2004_cis_section5_rule_5_3_18_params_mode: '0600'
# Variables for 5.3.19
ubuntu_2004_cis_section5_rule_5_3_19: true
ubuntu_2004_cis_section5_rule_5_3_19_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_19_params_line: "UsePAM yes"
ubuntu_2004_cis_section5_rule_5_3_19_params_regexp: ^UsePAM.*
ubuntu_2004_cis_section5_rule_5_3_19_params_state: present
ubuntu_2004_cis_section5_rule_5_3_19_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_19_params_group: root
ubuntu_2004_cis_section5_rule_5_3_19_params_mode: '0600'
# Variables for 5.3.20
ubuntu_2004_cis_section5_rule_5_3_20: true
ubuntu_2004_cis_section5_rule_5_3_20_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_20_params_line: "AllowTcpForwarding no"
ubuntu_2004_cis_section5_rule_5_3_20_params_regexp: ^AllowTcpForwarding.*
ubuntu_2004_cis_section5_rule_5_3_20_params_state: present
ubuntu_2004_cis_section5_rule_5_3_20_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_20_params_group: root
ubuntu_2004_cis_section5_rule_5_3_20_params_mode: '0600'
# Variables for 5.3.21
ubuntu_2004_cis_section5_rule_5_3_21: true
ubuntu_2004_cis_section5_rule_5_3_21_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_21_params_line: "MaxStartups 10:30:60"
ubuntu_2004_cis_section5_rule_5_3_21_params_regexp: ^MaxStartups.*
ubuntu_2004_cis_section5_rule_5_3_21_params_state: present
ubuntu_2004_cis_section5_rule_5_3_21_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_21_params_group: root
ubuntu_2004_cis_section5_rule_5_3_21_params_mode: '0600'
# Variables for 5.3.22
ubuntu_2004_cis_section5_rule_5_3_22: true
ubuntu_2004_cis_section5_rule_5_3_22_params_path: /etc/ssh/sshd_config
ubuntu_2004_cis_section5_rule_5_3_22_params_line: "MaxSessions 5"
ubuntu_2004_cis_section5_rule_5_3_22_params_regexp: ^MaxSessions.*
ubuntu_2004_cis_section5_rule_5_3_22_params_state: present
ubuntu_2004_cis_section5_rule_5_3_22_params_owner: root
ubuntu_2004_cis_section5_rule_5_3_22_params_group: root
ubuntu_2004_cis_section5_rule_5_3_22_params_mode: '0600'
# Variables for 5.4.1
ubuntu_2004_cis_section5_rule_5_4_1: true
ubuntu_2004_cis_section5_rule_5_4_1_params_package_name: libpam-pwquality
ubuntu_2004_cis_section5_rule_5_4_1_params_package_state: present
ubuntu_2004_cis_section5_rule_5_4_1_params_pwquality_path: /etc/security/pwquality.conf
ubuntu_2004_cis_section5_rule_5_4_1_params_pwquality_state: present
ubuntu_2004_cis_section5_rule_5_4_1_params_pwquality_owner: root
ubuntu_2004_cis_section5_rule_5_4_1_params_pwquality_group: root
ubuntu_2004_cis_section5_rule_5_4_1_params_pwquality_mode: '0644'
ubuntu_2004_cis_section5_rule_5_4_1_params_common_password_path: /etc/pam.d/common-password
ubuntu_2004_cis_section5_rule_5_4_1_params_common_password_line: "password requisite pam_pwquality.so retry=3"
ubuntu_2004_cis_section5_rule_5_4_1_params_common_password_regexp: ^password.*requisite.*pam_pwquality.so.*
ubuntu_2004_cis_section5_rule_5_4_1_params_common_password_state: present
ubuntu_2004_cis_section5_rule_5_4_1_params_common_password_owner: root
ubuntu_2004_cis_section5_rule_5_4_1_params_common_password_group: root
ubuntu_2004_cis_section5_rule_5_4_1_params_common_password_mode: '0644'
# Variables for 5.4.2
ubuntu_2004_cis_section5_rule_5_4_2: true
ubuntu_2004_cis_section5_rule_5_4_2_params_common_auth_path: /etc/pam.d/common-auth
ubuntu_2004_cis_section5_rule_5_4_2_params_common_auth_line: "auth required pam_tally2.so onerr=fail audit silent deny=5 unlock_time=900"
ubuntu_2004_cis_section5_rule_5_4_2_params_common_auth_regexp: ^auth.*required.*pam_tally2.so.*
ubuntu_2004_cis_section5_rule_5_4_2_params_common_auth_state: present
ubuntu_2004_cis_section5_rule_5_4_2_params_common_auth_owner: root
ubuntu_2004_cis_section5_rule_5_4_2_params_common_auth_group: root
ubuntu_2004_cis_section5_rule_5_4_2_params_common_auth_mode: '0644'
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_path: /etc/pam.d/common-account
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_deny_line: "account requisite pam_deny.so"
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_deny_regexp: ^account.*requisite.*pam_deny.so.*
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_deny_state: present
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_tally2_line: "account required pam_tally2.so"
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_tally2_regexp: ^account.*required.*pam_tally2.so.*
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_tally2_state: present
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_owner: root
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_group: root
ubuntu_2004_cis_section5_rule_5_4_2_params_common_account_mode: '0644'
# Variables for 5.4.3
ubuntu_2004_cis_section5_rule_5_4_3: true
ubuntu_2004_cis_section5_rule_5_4_3_params_common_password_path: /etc/pam.d/common-password
ubuntu_2004_cis_section5_rule_5_4_3_params_common_password_line: "password required pam_pwhistory.so remember=5"
ubuntu_2004_cis_section5_rule_5_4_3_params_common_password_regexp: ^password.*required.*pam_pwhistory.so.*
ubuntu_2004_cis_section5_rule_5_4_3_params_common_password_state: present
ubuntu_2004_cis_section5_rule_5_4_3_params_common_password_owner: root
ubuntu_2004_cis_section5_rule_5_4_3_params_common_password_group: root
ubuntu_2004_cis_section5_rule_5_4_3_params_common_password_mode: '0644'
# Variables for 5.4.4
ubuntu_2004_cis_section5_rule_5_4_4: true
ubuntu_2004_cis_section5_rule_5_4_4_params_common_password_path: /etc/pam.d/common-password
ubuntu_2004_cis_section5_rule_5_4_4_params_common_password_line: "password [success=1 default=ignore] pam_unix.so sha512"
ubuntu_2004_cis_section5_rule_5_4_4_params_common_password_regexp: ^password.*success.*pam_unix.so.*
ubuntu_2004_cis_section5_rule_5_4_4_params_common_password_state: present
ubuntu_2004_cis_section5_rule_5_4_4_params_common_password_owner: root
ubuntu_2004_cis_section5_rule_5_4_4_params_common_password_group: root
ubuntu_2004_cis_section5_rule_5_4_4_params_common_password_mode: '0644'
# Variables for 5.5.1.1
ubuntu_2004_cis_section5_rule_5_5_1_1: true
ubuntu_2004_cis_section5_rule_5_5_1_1_params_path: /etc/login.defs
ubuntu_2004_cis_section5_rule_5_5_1_1_params_line: "PASS_MIN_DAYS {{ ubuntu_2004_cis_require_passmindays }}"
ubuntu_2004_cis_section5_rule_5_5_1_1_params_regexp: ^PASS_MIN_DAYS.*
ubuntu_2004_cis_section5_rule_5_5_1_1_params_state: present
ubuntu_2004_cis_section5_rule_5_5_1_1_params_owner: root
ubuntu_2004_cis_section5_rule_5_5_1_1_params_group: root
ubuntu_2004_cis_section5_rule_5_5_1_1_params_mode: '0644'
# Variables for 5.5.1.2
ubuntu_2004_cis_section5_rule_5_5_1_2: true
ubuntu_2004_cis_section5_rule_5_5_1_2_params_path: /etc/login.defs
ubuntu_2004_cis_section5_rule_5_5_1_2_params_line: "PASS_MAX_DAYS {{ ubuntu_2004_cis_require_passmaxdays }}"
ubuntu_2004_cis_section5_rule_5_5_1_2_params_regexp: ^PASS_MAX_DAYS.*
ubuntu_2004_cis_section5_rule_5_5_1_2_params_state: present
ubuntu_2004_cis_section5_rule_5_5_1_2_params_owner: root
ubuntu_2004_cis_section5_rule_5_5_1_2_params_group: root
ubuntu_2004_cis_section5_rule_5_5_1_2_params_mode: '0644'
# Variables for 5.5.1.3
ubuntu_2004_cis_section5_rule_5_5_1_3: true
ubuntu_2004_cis_section5_rule_5_5_1_3_params_path: /etc/login.defs
ubuntu_2004_cis_section5_rule_5_5_1_3_params_line: "PASS_WARN_AGE {{ ubuntu_2004_cis_require_passwarnage }}"
ubuntu_2004_cis_section5_rule_5_5_1_3_params_regexp: ^PASS_WARN_AGE.*
ubuntu_2004_cis_section5_rule_5_5_1_3_params_state: present
ubuntu_2004_cis_section5_rule_5_5_1_3_params_owner: root
ubuntu_2004_cis_section5_rule_5_5_1_3_params_group: root
ubuntu_2004_cis_section5_rule_5_5_1_3_params_mode: '0644'
# Variables for 5.5.1.4
ubuntu_2004_cis_section5_rule_5_5_1_4: true
ubuntu_2004_cis_section5_rule_5_5_1_4_params_path: /etc/default/useradd
ubuntu_2004_cis_section5_rule_5_5_1_4_params_line: "INACTIVE={{ ubuntu_2004_cis_require_passinactive }}"
ubuntu_2004_cis_section5_rule_5_5_1_4_params_regexp: ^INACTIVE.*
ubuntu_2004_cis_section5_rule_5_5_1_4_params_state: present
ubuntu_2004_cis_section5_rule_5_5_1_4_params_owner: root
ubuntu_2004_cis_section5_rule_5_5_1_4_params_group: root
ubuntu_2004_cis_section5_rule_5_5_1_4_params_mode: '0644'
# Variables for 5.5.1.5
ubuntu_2004_cis_section5_rule_5_5_1_5: true
ubuntu_2004_cis_section5_rule_5_5_1_5_params_script: 5.5.1.5.users_last_password_change.sh
ubuntu_2004_cis_section5_rule_5_5_1_5_params_expires: '1625088928'
# Variables for 5.5.2
ubuntu_2004_cis_section5_rule_5_5_2: true
ubuntu_2004_cis_section5_rule_5_5_2_params_audit1_script: 5.5.2.secure_system_accounts_audit1.sh
ubuntu_2004_cis_section5_rule_5_5_2_params_audit2_script: 5.5.2.secure_system_accounts_audit2.sh
ubuntu_2004_cis_section5_rule_5_5_2_params_remediation_script: 5.5.2.secure_system_accounts_remediation.sh
# Variables for 5.5.3
ubuntu_2004_cis_section5_rule_5_5_3: true
ubuntu_2004_cis_section5_rule_5_5_3_params_name: root
ubuntu_2004_cis_section5_rule_5_5_3_params_gid: '0'
ubuntu_2004_cis_section5_rule_5_5_3_params_state: present
ubuntu_2004_cis_section5_rule_5_5_3_params_system: yes
# Variables for 5.5.4
ubuntu_2004_cis_section5_rule_5_5_4: true
ubuntu_2004_cis_section5_rule_5_5_4_params_login_path: /etc/login.defs
ubuntu_2004_cis_section5_rule_5_5_4_params_login_umask_line: "UMASK 027"
ubuntu_2004_cis_section5_rule_5_5_4_params_login_umask_regexp: ^UMASK.*
ubuntu_2004_cis_section5_rule_5_5_4_params_login_umask_state: present
ubuntu_2004_cis_section5_rule_5_5_4_params_login_usergroups_enab_line: "USERGROUPS_ENAB no"
ubuntu_2004_cis_section5_rule_5_5_4_params_login_usergroups_enab_regexp: ^USERGROUPS_ENAB.*
ubuntu_2004_cis_section5_rule_5_5_4_params_login_usergroups_enab_state: present
ubuntu_2004_cis_section5_rule_5_5_4_params_login_owner: root
ubuntu_2004_cis_section5_rule_5_5_4_params_login_group: root
ubuntu_2004_cis_section5_rule_5_5_4_params_login_mode: '0644'
ubuntu_2004_cis_section5_rule_5_5_4_params_common_session_path: /etc/pam.d/common-session
ubuntu_2004_cis_section5_rule_5_5_4_params_common_session_line: "session optional pam_umask.so"
ubuntu_2004_cis_section5_rule_5_5_4_params_common_session_regexp: ^session.*optional.*pam_umask.*
ubuntu_2004_cis_section5_rule_5_5_4_params_common_session_state: present
ubuntu_2004_cis_section5_rule_5_5_4_params_common_session_owner: root
ubuntu_2004_cis_section5_rule_5_5_4_params_common_session_group: root
ubuntu_2004_cis_section5_rule_5_5_4_params_common_session_mode: '0644'
# Variables for 5.5.5
ubuntu_2004_cis_section5_rule_5_5_5: true
ubuntu_2004_cis_section5_rule_5_5_5_params_source: section_05/5.5.5.tmout.sh.j2
ubuntu_2004_cis_section5_rule_5_5_5_params_dest: /etc/profile.d/cis_tmout.sh
ubuntu_2004_cis_section5_rule_5_5_5_params_owner: root
ubuntu_2004_cis_section5_rule_5_5_5_params_group: root
ubuntu_2004_cis_section5_rule_5_5_5_params_mode: '0755'
# Variables for 5.6
ubuntu_2004_cis_section5_rule_5_6: true
ubuntu_2004_cis_section5_rule_5_6_params_source: section_05/5.6.etc.securetty.j2
ubuntu_2004_cis_section5_rule_5_6_params_dest: /etc/securetty
ubuntu_2004_cis_section5_rule_5_6_params_owner: root
ubuntu_2004_cis_section5_rule_5_6_params_group: root
ubuntu_2004_cis_section5_rule_5_6_params_mode: '0644'
# Variables for 5.7
ubuntu_2004_cis_section5_rule_5_7: true
ubuntu_2004_cis_section5_rule_5_7_params_group_name: "{{ ubuntu_2004_cis_require_su_group }}"
ubuntu_2004_cis_section5_rule_5_7_params_group_state: present
ubuntu_2004_cis_section5_rule_5_7_params_su_path: /etc/pam.d/su
ubuntu_2004_cis_section5_rule_5_7_params_su_line: "auth required pam_wheel.so use_uid group={{ ubuntu_2004_cis_require_su_group }}"
ubuntu_2004_cis_section5_rule_5_7_params_su_regexp: ^auth.*required.*pam_wheel.*use_uid.*
ubuntu_2004_cis_section5_rule_5_7_params_su_state: present
ubuntu_2004_cis_section5_rule_5_7_params_su_owner: root
ubuntu_2004_cis_section5_rule_5_7_params_su_group: root
ubuntu_2004_cis_section5_rule_5_7_params_su_mode: '0644'