UBUNTU24-CIS-Audit/section_6/cis_6.2.3/cis_6.2.3.15.yml

48 lines
1.2 KiB
YAML

---
{{ if .Vars.ubtu24cis_level_2 }}
{{ if .Vars.ubtu24cis_rule_6_2_3_15 }}
command:
chcon_module_cnf:
title: 6.2.3.15 | Ensure successful and unsuccessful attempts to use the chcon command are recorded | Config
exec: grep chcon /etc/audit/rules.d/*.rules
exit-status: 0
stdout:
- '/-a always,exit -F path=/usr/bin/chcon -F perm=x -F auid>=1000 -F auid!=(unset|4294967295|-1) -k perm_chng/'
meta:
server: 2
workstation: 2
CIS_ID:
- 6.2.3.15
CISv8:
- 8.2
CISv8_IG1: true
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- AU-2
- AU-12
- SI-5
chcon_module_live:
title: 6.2.3.15 | Ensure successful and unsuccessful attempts to use the chcon command are recorded | Live
exec: auditctl -l | grep chcon
exit-status: 0
stdout:
- '/-a always,exit -S all -F path=/usr/bin/chcon -F perm=x -F auid>=1000 -F auid!=(unset|4294967295|-1) -F key=perm_chng/'
meta:
server: 2
workstation: 2
CIS_ID:
- 6.2.3.15
CISv8:
- 8.5
CISv8_IG1: true
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5:
- AU-2
- AU-12
- SI-5
{{ end }}
{{ end }}