Check: PHTN-67-000045
VMware vSphere 6.7 Photon OS STIG:
PHTN-67-000045
(in versions v1 r6 through v1 r2)
Title
The Photon operating system must audit all account modifications. (Cat II impact)
Discussion
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. Satisfies: SRG-OS-000239-GPOS-00089, SRG-OS-000303-GPOS-00120, SRG-OS-000304-GPOS-00121
Check Content
At the command line, execute the following command: # auditctl -l | grep -E "(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow)" Expected result: -w /etc/passwd -p wa -k passwd -w /etc/shadow -p wa -k shadow -w /etc/group -p wa -k group -w /etc/gshadow -p wa -k gshadow 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
Open /etc/audit/rules.d/audit.STIG.rules with a text editor and add the following lines: -w /etc/passwd -p wa -k passwd -w /etc/shadow -p wa -k shadow -w /etc/group -p wa -k group -w /etc/gshadow -p wa -k gshadow At the command line, execute the following command: # /sbin/augenrules --load
Additional Identifiers
Rule ID: SV-239116r856042_rule
Vulnerability ID: V-239116
Group Title: SRG-OS-000239-GPOS-00089
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001403 |
The information system automatically audits account modification actions. |
CCI-002130 |
The information system automatically audits account enabling actions. |
CCI-002132 |
The information system notifies organization-defined personnel or roles for account enabling actions. |
Controls
Number | Title |
---|---|
AC-2 (4) |
Automated Audit Actions |