CCE-95702-7Platform: cpe:/o:ubuntu:ubuntu_linux:16.04, cpe:/o:ubuntu:ubuntu_linux:18.04, cpe:/o:ubuntu:ubuntu_linux:20.04, cpe:/o:ubuntu:ubuntu_linux:22.04, cpe:/o:ubuntu:ubuntu_linux:23.04 | Date: (C)2021-06-15 (M)2023-09-01 |
Monitor the sudo log file. If the system has been properly configured to disable the use of the su command and force all administrators to have to log in first and then use sudo to execute privileged commands, then all administrator commands will be logged /var/log/sudoers_log. Any time a command is executed, an audit event will be triggered as the /var/log/sudoers_log file will be opened for write and the executed administration command will be written to the log.
Rationale:
Changes in /var/log/sudoers_log indicate that an administrator has executed a command or the log file itself has been tampered with. Administrators will want to correlate the events written to the audit trail with the records written to /var/log/sudoers_log to verify if unauthorized commands have been executed.
Fix:
Add the following lines to the /etc/audit/rules.d/audit.rules file -w /var/log/sudoers_log -p wa -k actions
Parameter:
[yes/no]
Technical Mechanism:
Add the following lines to the /etc/audit/rules.d/audit.rules file -w /var/log/sudoers_log -p wa -k actions
CCSS Severity: | CCSS Metrics: |
CCSS Score : 5.3 | Attack Vector: LOCAL |
Exploit Score: 1.8 | Attack Complexity: LOW |
Impact Score: 3.4 | Privileges Required: LOW |
Severity: MEDIUM | User Interaction: NONE |
Vector: AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | Scope: UNCHANGED |
| Confidentiality: LOW |
| Integrity: LOW |
| Availability: LOW |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:70832 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:92250 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:70728 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:69551 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:85279 |