SV-230223r1155356_rule
V-230223
SRG-OS-000033-GPOS-00014
RHEL-08-010020
CAT I
10
Configure RHEL 8 to use a FIPS 140-3-compliant systemwide cryptographic policy.
Create a subpolicy for enhancements to the base systemwide crypto-policy by creating the file /etc/crypto-policies/policies/modules/STIG.pmod with the following content:
# Define ciphers and MACs for OpenSSH and libssh
cipher@SSH=AES-256-GCM AES-256-CTR AES-128-GCM AES-128-CTR
mac@SSH=HMAC-SHA2-512 HMAC-SHA2-256
Apply the policy enhancements to the FIPS systemwide cryptographic policy level with the following command:
$ sudo update-crypto-policies --set FIPS:STIG
Note: If additional subpolicies are being employed, they must be added to the update-crypto-policies command.
To make the cryptographic settings effective for already running services and applications, restart the system:
$ sudo reboot
Verify RHEL 8 is set to use a FIPS 140-3-compliant systemwide cryptographic policy with the following command:
$ sudo update-crypto-policies --show
FIPS:STIG
If the systemwide crypto policy is not set to "FIPS", this is a finding.
Note: If subpolicies have been configured, they could be listed in a colon-separated list starting with "FIPS" as follows FIPS:<SUBPOLICY-NAME>. This is not a finding.
Note: Subpolicies like AD-SUPPORT must be configured according to the latest guidance from the operating system vendor.
Verify the current minimum crypto-policy configuration with the following commands:
$ sudo grep -E 'rsa_size|hash' /etc/crypto-policies/state/CURRENT.pol
hash = SHA2-256 SHA2-384 SHA2-512 SHA2-224 SHA3-256 SHA3-384 SHA3-512
min_rsa_size = 2048
If the "hash" values do not include at least the following FIPS 140-3-compliant algorithms "SHA2-256 SHA2-384 SHA2-512 SHA2-224 SHA3-256 SHA3-384 SHA3-512", this is a finding.
If there are algorithms that include "SHA1" or a hash value less than "224" this is a finding.
If the "min_rsa_size" is not set to a value of at least "2048", this is a finding.
If these commands do not return any output, this is a finding.
V-230223
False
RHEL-08-010020
Verify RHEL 8 is set to use a FIPS 140-3-compliant systemwide cryptographic policy with the following command:
$ sudo update-crypto-policies --show
FIPS:STIG
If the systemwide crypto policy is not set to "FIPS", this is a finding.
Note: If subpolicies have been configured, they could be listed in a colon-separated list starting with "FIPS" as follows FIPS:<SUBPOLICY-NAME>. This is not a finding.
Note: Subpolicies like AD-SUPPORT must be configured according to the latest guidance from the operating system vendor.
Verify the current minimum crypto-policy configuration with the following commands:
$ sudo grep -E 'rsa_size|hash' /etc/crypto-policies/state/CURRENT.pol
hash = SHA2-256 SHA2-384 SHA2-512 SHA2-224 SHA3-256 SHA3-384 SHA3-512
min_rsa_size = 2048
If the "hash" values do not include at least the following FIPS 140-3-compliant algorithms "SHA2-256 SHA2-384 SHA2-512 SHA2-224 SHA3-256 SHA3-384 SHA3-512", this is a finding.
If there are algorithms that include "SHA1" or a hash value less than "224" this is a finding.
If the "min_rsa_size" is not set to a value of at least "2048", this is a finding.
If these commands do not return any output, this is a finding.
M
2921