SV-279564r1192080_rule
V-279564
SRG-OS-000477-GPOS-00222
NXAC-OS-000076
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
1. 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
If both the "b32" and "b64" audit rules are not defined for the module(s) listed syscall, this is a finding.
2. Run the command:
$ sudo grep -iw kmod /etc/audit/audit.rules
-w /usr/bin/kmod -p x -F auid!=unset -k module-change
If the command does not return any output, this is a finding.
V-279564
False
NXAC-OS-000076
1. 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
If both the "b32" and "b64" audit rules are not defined for the module(s) listed syscall, this is a finding.
2. Run the command:
$ sudo grep -iw kmod /etc/audit/audit.rules
-w /usr/bin/kmod -p x -F auid!=unset -k module-change
If the command does not return any output, this is a finding.
M
5730