AlmaLinux OS 9 must not have any telnet packages installed.

STIG ID: ALMA-09-037860  |  SRG: SRG-OS-000074-GPOS-00042 |  Severity: high |  CCI: CCI-000197 |  Vulnerability Id: V-269404

Vulnerability Discussion

Passwords must be protected at all times, and encryption is the standard method for protecting passwords. If passwords are not encrypted, they can be plainly read (i.e., clear text) and easily compromised.

A telnet server provides an unencrypted remote access mechanism that does not protect the confidentiality of user credentials or the remote session.

If a privileged user were to log on using this service, the privileged user password could be compromised. SSH or other encrypted session methods must be used instead.

Removing the server and client packages prevents inbound and outbound communications from being compromised.

Check

Verify that AlmaLinux OS 9 does not have a telnet client or server package installed with the following command:

$ rpm -qa | grep telnet

If the "telnet-server" server or "telnet" client packages are installed, this is a finding.

Note that there may be third-party or alternative packages that provide the same functionality, which should also be removed.

Fix

Remove the default telnet client and server packages using the following command:

$ dnf remove telnet-server telnet