SV-279427r1191067_rule
V-279427
SRG-APP-000118-AS-000078
NXAC-AS-000020
CAT II
10
Configure the Nutanix VM application server Prism Element log file permissions.
1. Run the following command:
$ sudo salt-call state.sls security/CVM/interactivenutanixCVM
2. For Prism Central, run the following command:
$ sudo salt-call state.sls security/PCVM/interactivenutanixPCVM
3. For Files, run the following command:
$ sudo salt-call state.sls security/AFS/interactivenutanixAFS
Confirm the Nutanix VM application server log files are protected from unauthorized read access.
The Nutanix AOS log files are owned by the Nutanix user and have a file permission of "640".
1. Identify the actual file name by looking at alert_manager.INFO, which is a symlink for the actual rotating file name.
$ sudo ls -al /home/nutanix/data/logs/alert_manager.INFO
lrwxrwxrwx. 1 nutanix nutanix 75 Nov 1 17:50 /home/nutanix/data/logs/alert_manager.INFO -> alert_manager.ntnx-<CVM_NAME>.nutanix.log.INFO.<LOG_NUMBER>
2. Execute a stat command on the actual application server log file name.
$ sudo stat -c "%a %n" /home/nutanix/data/logs/alert_manager.ntnx-<CVM_NAME>.nutanix.log.INFO.<LOG_NUMBER>
640 /home/nutanix/data/logs/alert_manager.ntnx<CVM_NAME>.nutanix.log.INFO.<LOG_NUMBER>
If the output of the actual log file name is not 640, this is a finding.
V-279427
False
NXAC-AS-000020
Confirm the Nutanix VM application server log files are protected from unauthorized read access.
The Nutanix AOS log files are owned by the Nutanix user and have a file permission of "640".
1. Identify the actual file name by looking at alert_manager.INFO, which is a symlink for the actual rotating file name.
$ sudo ls -al /home/nutanix/data/logs/alert_manager.INFO
lrwxrwxrwx. 1 nutanix nutanix 75 Nov 1 17:50 /home/nutanix/data/logs/alert_manager.INFO -> alert_manager.ntnx-<CVM_NAME>.nutanix.log.INFO.<LOG_NUMBER>
2. Execute a stat command on the actual application server log file name.
$ sudo stat -c "%a %n" /home/nutanix/data/logs/alert_manager.ntnx-<CVM_NAME>.nutanix.log.INFO.<LOG_NUMBER>
640 /home/nutanix/data/logs/alert_manager.ntnx<CVM_NAME>.nutanix.log.INFO.<LOG_NUMBER>
If the output of the actual log file name is not 640, this is a finding.
M
5729