2.2.31 Ensure noexec option is configured for NFS.

Information

The operating system must prevent binary files from being executed on file systems that are being imported via Network File System (NFS).

Rationale:

The 'noexec' mount option causes the system to not execute binary files. This option must be used for mounting any file system not containing approved binary files as they may be incompatible. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Configure the /etc/fstab to use the noexec option on file systems that are being imported via NFS.
Example: vim /etc/fstab
Add, or update any NFS file systems found in the Audit to include the noexec option:

UUID=e06097bb-cfcd-437b-9e4d-a691f5662a7d /store nfs rw,nosuid,noexec 0 0

Notes:

This Benchmark recommendation maps to:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide:

Version 2, Release: 3 Benchmark Date: 26 Apr 2019



Vul ID: V-73161

Rule ID: SV-87813r2_rule

STIG ID: RHEL-07-021021

Severity: CAT II

See Also

https://workbench.cisecurity.org/files/2688

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: Unix

Control ID: 3ee766139b60d6bb52354edc9a2b7772fbed6a64dfc12f4b4c306e4124c987fc