| name | cis-ubuntu1804-v220-5-2-4-4 |
| description | null |
| version | 2.2.0 |
| category | cis-logging |
| tags | ["cis","ubuntu","linux","ubuntu-18.04","auditing","auditd"] |
| author | CIS Benchmarks |
| target | {"platform":"linux","version":"18.04"} |
| severity_boost | {} |
5.2.4.4 Ensure the audit log directory is 0750 or more restrictive
Description
The audit log directory contains audit log files.
Rationale
Audit information includes all information including: audit records, audit settings and audit reports. This information is needed to successfully audit system activity. This information must be protected from unauthorized modification or deletion. If this information were to be compromised, forensic analysis and discovery of the true source of potentially malicious system activity is impossible to achieve.
Audit
Run the following command to verify that the audit log directory has a mode of 0750 or less permissive:
stat -Lc "%n %a" "$(dirname $(awk -F "=" '/^\s*log_file/ {print $2}' /etc/audit/auditd.conf))" | grep -Pv -- '^\h*\H+\h+([0,5,7][0,5]0)'
Expected result: Nothing should be returned
Remediation
Run the following command to configure the audit log directory to have a mode of "0750" or less permissive:
chmod g+rx,o-rwx "$(dirname $(awk -F"=" '/^\s*log_file/ {print $2}' /etc/audit/auditd.conf))"
Default Value: 750
References
- NIST SP 800-53 Rev. 5: AU-3
Metadata
- Profile Applicability: Level 2 - Server, Level 2 - Workstation
- Category: cis-logging
- Tags: cis, ubuntu, linux, ubuntu-18.04, auditing, auditd
- Version: 2.2.0
- Severity Boost: {}
- Automated: Yes
- CIS Controls:
- v8: 3.3 Configure Data Access Control Lists
- v7: 14.6 Protect Information through Access Control Lists
- MITRE ATT&CK:
- Tactics: TA0007 (Discovery)
- Techniques: T1070, T1070.002, T1083, T1083.000
- Mitigations: M1047 (Audit)