RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2156192 - Some rules have proper STIG references but they are not part of STIG profile
Summary: Some rules have proper STIG references but they are not part of STIG profile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.7
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Marcus Burghardt
QA Contact: Jiri Jaburek
Jan Fiala
URL:
Whiteboard:
Depends On:
Blocks: 2168069 2168070 2168071
TreeView+ depends on / blocked
 
Reported: 2022-12-25 07:30 UTC by Rajesh Dulhani
Modified: 2023-09-19 04:31 UTC (History)
9 users (show)

Fixed In Version: scap-security-guide-0.1.66-1.el8
Doc Type: Enhancement
Doc Text:
.RHEL 8 STIG profiles are better aligned with the benchmark Four existing rules that satisfy RHEL 8 STIG requirements were part of the data stream but were previously not included in the STIG profiles (`stig` and `stig_gui`). With this update, the following rules are now included in the profiles: * `accounts_passwords_pam_faillock_dir` * `accounts_passwords_pam_faillock_silent` * `account_password_selinux_faillock_dir` * `fapolicy_default_deny` As a result, the RHEL 8 STIG profiles have a higher coverage.
Clone Of:
: 2168069 2168070 2168071 (view as bug list)
Environment:
Last Closed: 2023-05-16 08:39:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ComplianceAsCode content issues 10010 0 None open Unexpected rule for STIG item RHEL-08-010130 2022-12-30 12:12:26 UTC
Red Hat Issue Tracker RHELPLAN-143165 0 None None None 2022-12-25 07:31:33 UTC
Red Hat Product Errata RHBA-2023:2869 0 None None None 2023-05-16 08:40:08 UTC

Description Rajesh Dulhani 2022-12-25 07:30:50 UTC
Description of problem:


From StigViewer, RHEL-08-010130 is supposed to apply on the content of /etc/login.defs.
The implementation is indeed matching, as shown below:

~~~
./linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_min_rounds_logindefs/rule.yml

stigid@rhel8: RHEL-08-010130
./products/rhel8/profiles/stig.profile
~~~

# RHEL-08-010130
- set_password_hashing_min_rounds_logindefs

However other STIG files we have reference another rule applying to pam_unix instead (accounts_password_pam_unix_rounds_password_auth):

~~~
./controls/stig_rhel8.yml

-   id: RHEL-08-010130
    levels:
        - medium
    title: The RHEL 8 password-auth file must be configured to use a sufficient number
        of hashing rounds.
    rules:
        - accounts_password_pam_unix_rounds_password_auth
    status: automated
./linux_os/guide/system/accounts/accounts-restrictions/password_storage/accounts_password_pam_unix_rounds_password_auth/rule.yml:
~~~


references:

~~~
    anssi: BP28(R32)
    disa: CCI-000196
    srg: SRG-OS-000073-GPOS-00041
    stigid@ol8: OL08-00-010130
~~~


Version-Release number of selected component (if applicable):


scap-security-guide-0.1.63-4.el8.noarch.rpm

Comment 2 Vojtech Polasek 2023-01-02 12:24:58 UTC
Hello Rajesh,
it is true that the rule accounts_password_pam_unix_rounds_password_auth is placed into the stig_rhel8.yml control file. However, this control file exists in upstream, but it is not used by any product.
The STIG profile for RHEL8 can be found in products/rhel8/profiles/stig.profile.
The rule is part of ANSSI profiles.
So yes, the rule is in the datastream, but it is not part of the STIG profile for RHEL8.
Does this explanation solve the problem?

Comment 3 Vojtech Polasek 2023-01-06 09:46:08 UTC
The file controls/stig_rhel8.yml has been dropped from the content to prevent confusion:
https://github.com/ComplianceAsCode/content/pull/10023
Does it solve the issue for you?

Comment 7 Marcus Burghardt 2023-01-23 13:28:17 UTC
Patch already merged in Upstream: https://github.com/ComplianceAsCode/content/pull/10077

Comment 26 errata-xmlrpc 2023-05-16 08:39:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (scap-security-guide bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2869

Comment 27 Red Hat Bugzilla 2023-09-19 04:31:58 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.