UCF STIG Viewer Logo

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


Overview

Finding ID Version Rule ID IA Controls Severity
V-239142 PHTN-67-000071 SV-239142r675234_rule Medium
Description
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
STIG Date
VMware vSphere 6.7 Photon OS Security Technical Implementation Guide 2021-04-15

Details

Check Text ( C-42353r675232_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!=4294967295 -k privileged

If the output does not match the expected result, this is a finding.
Fix Text (F-42312r675233_fix)
At the command line, execute the following commands:

# echo '-a always,exit -F path=/usr/bin/sudo -F perm=x -F auid>=1000 -F auid!=4294967295 -k privileged' >> /etc/audit/rules.d/audit.STIG.rules
# /sbin/augenrules --load