UCF STIG Viewer Logo

The Photon operating system must generate audit records when the sudo command is used.


Finding ID Version Rule ID IA Controls Severity
V-239142 PHTN-67-000071 SV-239142r821356_rule Medium
Without generating audit records that are specific to the security and mission needs of the organization, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one. Audit records can be generated from various components within the information system (e.g., module or policy filter). Satisfies: SRG-OS-000458-GPOS-00203, SRG-OS-000463-GPOS-00207, SRG-OS-000466-GPOS-00210, SRG-OS-000468-GPOS-00212
VMware vSphere 6.7 Photon OS Security Technical Implementation Guide 2022-06-17


Check Text ( C-42353r821355_chk )
At the command line, execute the following command:

# auditctl -l | grep sudo

Expected result:

-a always,exit -F path=/usr/bin/sudo -F perm=x -F auid>=1000 -F auid!=1 -k privileged


-a always,exit -S all -F path=/usr/bin/sudo -F perm=x -F auid>=1000 -F auid!=-1 -F key=privileged

If the output does not match the expected result, this is a finding.

Note: This check depends on the auditd service to be in a running state for accurate results. Enabling the auditd service is done as part of a separate control.
Fix Text (F-42312r816642_fix)
Open /etc/audit/rules.d/audit.STIG.rules with a text editor and add the following lines:

-a always,exit -F path=/usr/bin/sudo -F perm=x -F auid>=1000 -F auid!=4294967295 -k privileged

At the command line, execute the following command:

# /sbin/augenrules --load