CCE-55027-7Platform: cpe:/o:redhat:enterprise_linux:8,cpe:/o:oracle:linux:7,cpe:/o:oracle:linux:8,cpe:/o:amazon:linux:2,cpe:/o:redhat:enterprise_linux:9,cpe:/o:redhat:enterprise_linux:7,cpe:/o:centos:centos:7 | Date: (C)2024-01-08 (M)2024-04-23 |
Title:
Ensure noexec option set on /var/log/audit partition
Description:
The noexec mount option specifies that the filesystem cannot contain executable binaries.
Rationale:
Since the /var/log/audit filesystem is only intended for audit logs, set this option to
ensure that users cannot run executable binaries from /var/log/audit .
Audit:
Verify that the noexec option is set for the /var/log/audit mount.
Run the following command to verify that the noexec mount option is set.
Example:
# findmnt --kernel /var/log/audit | grep noexec
/var/log/audit /dev/sdb ext4 rw,nosuid,nodev,noexec,relatime,seclabel
Remediation:
Edit the /etc/fstab file and add noexec to the fourth field (mounting options) for the /var
partition.
Example:
<device> /var/log/audit <fstype>
defaults,rw,nosuid,nodev,noexec,relatime 0 0
Run the following command to remount /var/log/audit with the configured options:
# mount -o remount /var/log/audit
Parameter:
[Yes/No]
Technical Mechanism:
Remediation:
Edit the /etc/fstab file and add noexec to the fourth field (mounting options) for the /var
partition.
Example:
<device> /var/log/audit <fstype>
defaults,rw,nosuid,nodev,noexec,relatime 0 0
Run the following command to remount /var/log/audit with the configured options:
# mount -o remount /var/log/audit
CCSS Severity: | CCSS Metrics: |
CCSS Score : 7.8 | Attack Vector: LOCAL |
Exploit Score: 1.1 | Attack Complexity: HIGH |
Impact Score: 6.0 | Privileges Required: LOW |
Severity: HIGH | User Interaction: NONE |
Vector: AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | Scope: CHANGED |
| Confidentiality: HIGH |
| Integrity: HIGH |
| Availability: HIGH |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:97258 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:97519 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:96271 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:97492 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:97459 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:97227 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:97196 |