| name | cis-ubuntu1204-v110-8-1-15 |
| description | Collect Changes to System Administration Scope (sudoers) |
| category | cis-os-hardening |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu",12.04,"linux","logging","auditd","sudoers","scope","privilege-escalation"] |
| cis_id | 8.1.15 |
| cis_benchmark | CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
8.1.15 Collect Changes to System Administration Scope (sudoers) (Scored)
Profile Applicability
Description
Monitor scope changes for system administrations. If the system has been properly configured to force system administrators to log in as themselves first and then use the sudo command to execute privileged commands, it is possible to monitor changes in scope. The file /etc/sudoers will be written to when the file or its attributes have changed. The audit records will be tagged with the identifier "scope."
Rationale
Changes in the /etc/sudoers file can indicate that an unauthorized change has been made to scope of system administrator activity.
Audit Procedure
Using Command Line
Perform the following to determine if changes to /etc/sudoers are recorded.
grep scope /etc/audit/audit.rules
Expected Result
-w /etc/sudoers -p wa -k scope
Remediation
Using Command Line
Add the following lines to the /etc/audit/audit.rules file:
-w /etc/sudoers -p wa -k scope
Default Value
By default, changes to system administration scope are not audited.
References
- CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0
Profile
Level 2 - Scored