-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
rhel-9.0.0
-
None
-
None
-
rhel-sst-security-compliance
-
ssg_security
-
None
-
False
-
-
No
-
None
-
None
-
None
-
Release Note Not Required
-
-
Unspecified
-
None
Description of problem:
The OSPP SCAP profile defines
- var_system_crypto_policy=fips_ospp
which leads to FIPS:OSPP being configured in /etc/crypto-policies/config, and
- fips-mode-setup --check
FIPS mode is enabled.
is happy about that.
The STIG SCAP profile defines
- var_system_crypto_policy=fips
so on an OSPP-configured system, running checking with STIG profile shows rules xccdf_org.ssgproject.content_rule_enable_fips_mode and xccdf_org.ssgproject.content_rule_configure_crypto_policy.
When remediating with the STIG profile, the crypto policy gets reset to FIPS, which in turns makes the same two SCAP rules fail when checking with the OSPP profile.
I wonder if the rules / the STIG SCAP profile could be taught that FIPS:OSPP crypto policy is a more strict (subset) of the FIPS policy that it wants to see on the system, and therefore that the rules should pass.
Version-Release number of selected component (if applicable):
scap-security-guide-0.1.62-2.el9.noarch
How reproducible:
Deterministic.
Steps to Reproduce:
1. Provision RHEL with
%addon com_redhat_oscap
content-type = scap-security-guide
profile = ospp
%end
or remediate RHEL installation with OSPP profile using
- oscap xccdf eval --remediate --profile xccdf_org.ssgproject.content_profile_ospp /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml
2. Check that FIPS:OSPP got set in /etc/crypto-policies/config.
3. Check with the STIG profile:
- oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml | grep -B3 'Result.*fail'
Actual results:
There are multiple failing rules, including
Title Enable FIPS Mode
Rule xccdf_org.ssgproject.content_rule_enable_fips_mode
Ident CCE-88742-2
Result fail
–
Title Configure System Cryptography Policy
Rule xccdf_org.ssgproject.content_rule_configure_crypto_policy
Ident CCE-83450-7
Result fail
Expected results:
There might be multiple failing rules but xccdf_org.ssgproject.content_rule_enable_fips_mode and xccdf_org.ssgproject.content_rule_configure_crypto_policy should not be among them.
Additional info:
- external trackers