UBUNTU24-CIS-Audit/section_5/cis_5.4.3/cis_5.4.3.3.yml

27 lines
601 B
YAML

---
{{ if .Vars.ubtu24cis_level_1 }}
{{ if .Vars.ubtu24cis_rule_5_4_3_3 }}
command:
umask_profile_scripts:
title: 5.4.3.3 | Ensure default user umask is configured
exec: 'grep -i "^\s*umask" /etc/profile /etc/profile.d/*.sh /etc/login.defs | cut -d ":" -f 2'
exit-status: 0
stdout:
- '/(?i)umask\s+0[2-7][7]/'
- '!/(?i)umask\s+[7][0-1][0-6]/'
meta:
server: 1
workstation: 1
CIS_ID:
- 5.4.3.3
CISv8: 3.3
CISv8_IG1: true
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- AC-3
- MP-2
{{ end }}
{{ end }}