UCF STIG Viewer Logo

The Photon operating system must audit all account modifications.


Finding ID Version Rule ID IA Controls Severity
V-251878 PHTN-67-000044 SV-251878r816564_rule Medium
Once an attacker establishes access to a system, the attacker often attempts to create a persistent method of reestablishing access. One way to accomplish this is for the attacker to modify an existing account. Auditing account modification actions provides logging that can be used for forensic purposes.
VMware vSphere 6.7 Photon OS Security Technical Implementation Guide 2022-09-27


Check Text ( C-55336r816562_chk )
At the command line, execute the following command:

# auditctl -l | grep -E "(usermod|groupmod)"

Expected result:

-w /usr/sbin/usermod -p x -k usermod
-w /usr/sbin/groupmod -p x -k groupmod

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-55288r816563_fix)
Open /etc/audit/rules.d/audit.STIG.rules with a text editor and add the following lines:

-w /usr/sbin/usermod -p x -k usermod
-w /usr/sbin/groupmod -p x -k groupmod

At the command line, execute the following command:

# /sbin/augenrules --load