Amazon Linux 2023 must have the libreswan package installed.

STIG ID: AZLX-23-001105  |  SRG: SRG-OS-000120-GPOS-00061 |  Severity: medium (CAT II)  |  CCI: CCI-000803 |  Vulnerability Id: V-274032

Vulnerability Discussion

Unapproved mechanisms that are used for authentication to the cryptographic module are not verified and therefore, cannot be relied upon to provide confidentiality or integrity, and DOD data may be compromised.

Operating systems utilizing encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.

FIPS 140-2/140-3 is the current standard for validating that mechanisms used to access cryptographic modules utilize authentication that meets DOD requirements. This allows for Security Levels 1, 2, 3, or 4 for use on a general purpose computing system.

Check

Verify Amazon Linux 2023 has the libreswan package installed with the following command:

$ dnf list --installed libreswan
Installed Packages
libreswan.x86_64 4.12-3.amzn2023.0.2 @amazonlinux

If the "libreswan" package is not installed, this is a finding.

Fix

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

$ sudo dnf install -y libreswan