SV-279561r1192421_rule
V-279561
SRG-OS-000471-GPOS-00216
NXAC-OS-000070
CAT II
10
1. For AOS, configure the audit rules.
$ sudo salt-call state.sls security/CVM/auditCVM
2. For Prism Central, configure the audit rules.
$ sudo salt-call state.sls security/PCVM/auditPCVM
3. For Files, configure the audit rules.
$ sudo salt-call state.sls security/AFS/auditAFS
4. For AHV, configure the audit rules.
$ sudo salt-call state.sls security/KVM/auditKVM
Verify Nutanix OS generates audit records for all kernel module load, unload, restart actions, and initiations using the following commands.
$ sudo grep -iw create_module /etc/audit/audit.rules
-a always,exit -F arch=b32 -S create_module -k module-change
-a always,exit -F arch=b64 -S create_module -k module-change
$ sudo grep -iw init_module /etc/audit/audit.rules
-a always,exit -F arch=b64 -S init_module -S delete_module -k modules
-a always,exit -F arch=b32 -S init_module -S delete_module -k modules
$ sudo grep -iw finit_module /etc/audit/audit.rules
-a always,exit -F arch=b32 -S finit_module -k module-change
-a always,exit -F arch=b64 -S finit_module -k module-change
$ sudo grep -iw delete_module /etc/audit/audit.rules
-a always,exit -F arch=b64 -S init_module -S delete_module -k modules
-a always,exit -F arch=b32 -S init_module -S delete_module -k modules
$ sudo grep -iw kmod /etc/audit/audit.rules
-w /usr/bin/kmod -p x -F auid!=unset -k module-change
If both the "b32" and "b64" audit rules are not defined for the module(s) listed syscall or does not produce an output, this is a finding.
V-279561
False
NXAC-OS-000070
Verify Nutanix OS generates audit records for all kernel module load, unload, restart actions, and initiations using the following commands.
$ sudo grep -iw create_module /etc/audit/audit.rules
-a always,exit -F arch=b32 -S create_module -k module-change
-a always,exit -F arch=b64 -S create_module -k module-change
$ sudo grep -iw init_module /etc/audit/audit.rules
-a always,exit -F arch=b64 -S init_module -S delete_module -k modules
-a always,exit -F arch=b32 -S init_module -S delete_module -k modules
$ sudo grep -iw finit_module /etc/audit/audit.rules
-a always,exit -F arch=b32 -S finit_module -k module-change
-a always,exit -F arch=b64 -S finit_module -k module-change
$ sudo grep -iw delete_module /etc/audit/audit.rules
-a always,exit -F arch=b64 -S init_module -S delete_module -k modules
-a always,exit -F arch=b32 -S init_module -S delete_module -k modules
$ sudo grep -iw kmod /etc/audit/audit.rules
-w /usr/bin/kmod -p x -F auid!=unset -k module-change
If both the "b32" and "b64" audit rules are not defined for the module(s) listed syscall or does not produce an output, this is a finding.
M
5730