Amazon Linux 2023 must not have the vsftpd package installed.

STIG ID: AZLX-23-000300  |  SRG: SRG-OS-000074-GPOS-00042 |  Severity: high (CAT I)  |  CCI: CCI-000197,CCI-000381 |  Vulnerability Id: V-274007

Vulnerability 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 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 nonessential 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.

Satisfies: SRG-OS-000074-GPOS-00042, SRG-OS-000095-GPOS-00049

Check

Verify Amazon Linux 2023 does not have the vsftpd package installed with the following command:

$ dnf list --installed vsftpd
Error: No matching Packages to list

If the "vsftpd" package is installed, this is a finding.

Fix

Configure Amazon Linux 2023 to not have the vsftpd package installed with the following command:

$ sudo dnf -y remove vsftpd