0038-sudoers-priv-sudoers File Permissions Change Detection¶
Rule ID¶
- 0038-sudoers-priv
Category¶
- System
Severity¶
- Critical
Compatible Versions¶
- Linux
Description¶
- Monitor whether the permissions of the host file
/etc/sudoers
have been modified.
Scan Frequency¶
- 0 */30 * * *
Theoretical Basis¶
- The host file
/etc/sudoers
allows specific users to execute a wide variety of commands with root privileges without needing the root password.
Risk Items¶
- Function Unavailability
Audit Method¶
- Run the following command and verify that Uid and Gid are both 0/root, and Access does not grant permissions to groups or others:
Remediation¶
- If it is detected that the permissions of the
/etc/sudoers
file have changed, log in to the server as the root user to restore the permissions and audit this change.
Impact¶
- Function Unavailability
Default Value¶
- None
References¶
-
Emergency Response and Investigation Process for Hacker Intrusions (Unofficial)
-
Real Case Analysis of Crypto Mining Intrusion Investigation (Unofficial)
CIS Controls¶
- None