Check: TOSS-04-030850
Tri-Lab Operating System Stack (TOSS) 4 STIG:
TOSS-04-030850
(in versions v2 r1 through v1 r1)
Title
TOSS must generate audit records for all account creations, modifications, disabling, and termination events that affect "/etc/sudoers.d/". (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 enable a new or disabled account. Auditing account modification actions provides logging that can be used for forensic purposes.
Check Content
Verify TOSS generates audit records for all account creations, modifications, disabling, and termination events that affect "/etc/sudoers.d/". Check the auditing rules in "/etc/audit/audit.rules" with the following command: $ sudo grep /etc/sudoers.d/ /etc/audit/audit.rules -w /etc/sudoers.d/ -p wa -k identity If the command does not return a line, or the line is commented out, this is a finding.
Fix Text
Configure TOSS to generate audit records for all account creations, modifications, disabling, and termination events that affect "/etc/sudoers.d/". Add or update the following file system rule to "/etc/audit/rules.d/audit.rules": -w /etc/sudoers.d/ -p wa -k identity The audit daemon must be restarted for the changes to take effect.
Additional Identifiers
Rule ID: SV-253029r958684_rule
Vulnerability ID: V-253029
Group Title: SRG-OS-000303-GPOS-00120
Expert Comments
Controls
Number | Title |
---|---|
AC-2(4) |
Automated Audit Actions |