Check: UBTU-24-100050
Canonical Ubuntu 24.04 LTS STIG:
UBTU-24-100050
(in version v1 r4)
Title
Ubuntu 24.04 LTS must not have the nfs-kernel-server package installed. (Cat I impact)
Discussion
It is detrimental for operating systems to provide, or install by default, functionality exceeding requirements or mission objectives. These unnecessary capabilities or services are often overlooked and therefore may remain unsecured. They increase the risk to the platform by providing additional attack vectors. Operating systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions). Examples of non-essential capabilities include, but are not limited to, games, software packages, tools, and demonstration software, not related to requirements or providing a wide array of functionality not required for every mission, but which cannot be disabled.
Check Content
Verify Ubuntu 24.04 LTS does not have nfs packages installed. Check if packages are installed: $sudo dpkg -l | grep -E 'nfs-common | nfs-kernel-server' If the nfs-common or nfs-kernel-server packages are installed, this is a finding
Fix Text
Configure Ubuntu 24.04 LTS to disable non-essential capabilities by removing the nfs-common and nfs-kernel-server packages from the system with the following commands: Remove packages if present: $ sudo apt purge --yes nfs-common nfs-kernel-server Remove any unneeded dependencies $ sudo apt autoremove --yes Verify NFS services are gone: $ sudo systemctl list-units --type=service | grep nfs
Additional Identifiers
Rule ID: SV-279938r1156367_rule
Vulnerability ID: V-279938
Group Title: SRG-OS-000095-GPOS-00049
Expert Comments
CCIs
| Number | Definition |
|---|---|
| CCI-000381 |
Configure the system to provide only organization-defined mission essential capabilities. |
Controls
| Number | Title |
|---|---|
| CM-7 |
Least Functionality |