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 2162803 - Two CIS Level 2 Benchmarks are listed in scap-security-guide under CIS Level 1 Profile
Summary: Two CIS Level 2 Benchmarks are listed in scap-security-guide under CIS Level ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: Jiri Jaburek
Jan Fiala
URL:
Whiteboard:
Depends On:
Blocks: 2168072 2168073 2168074
TreeView+ depends on / blocked
 
Reported: 2023-01-21 00:20 UTC by ckrell
Modified: 2023-05-16 10:04 UTC (History)
8 users (show)

Fixed In Version: scap-security-guide-0.1.66-1.el8
Doc Type: Bug Fix
Doc Text:
.Rules for CIS profiles in `scap-security-guide` are better aligned Previously, some rules were incorrectly assigned to certain Center for Internet Security (CIS) profiles (`cis`, `cis_server_l1`, `cis_workstation_1`, and `cis_workstation_l2`). As a consequence, scanning according to some CIS profiles could skip rules from the CIS benchmark or check for unnecessary rules. The following rules were assigned to incorrect profiles: * Rules `kernel_module_udf_disabled`, `sudo_require_authentication` and `kernel_module_squashfs_disabled` were incorrectly placed in CIS Server Level 1 and CIS Workstation Level 1. * Rules `package_libselinux_installed`, `grub2_enable_selinux`, `selinux_policytype`, `selinux_confinement_of_daemons`, `rsyslog_nolisten`, `service_systemd-journald_enabled` were missing from CIS Server Level 1 and CIS Workstation Level 1 profiles. * Rules `package_setroubleshoot_removed` and `package_mcstrans_removed` were missing from the CIS Server Level 1 profile. This update assigns the misaligned rules to the correct CIS profiles, but does not introduce new rules or entirely removes any rules. As a result, SCAP CIS profiles are better aligned with the original CIS benchmark.
Clone Of:
: 2168072 2168073 2168074 (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
Red Hat Issue Tracker RHELPLAN-145946 0 None None None 2023-01-21 00:24:40 UTC
Red Hat Product Errata RHBA-2023:2869 0 None None None 2023-05-16 08:40:08 UTC

Description ckrell 2023-01-21 00:20:46 UTC
Description of problem:
The following two benchmarks show under the CIS Red Hat Enterprise Linux 8 Benchmark for Level 1 - Server; however CIS Red Hat Enterprise Linux 8 Benchmark
v2.0.0 - 02-23-2022 lists these as Level 2 benchmarks:

~~~
Title   Ensure Users Re-Authenticate for Privilege Escalation - sudo
Rule    xccdf_org.ssgproject.content_rule_sudo_require_authentication
Ident   CCE-82279-1
--
Title   Disable Mounting of squashfs
Rule    xccdf_org.ssgproject.content_rule_kernel_module_squashfs_disabled
Ident   CCE-83498-6
~~~

From "CIS Red Hat Enterprise Linux 8 Benchmarkv2.0.0 - 02-23-2022" at cisecurity.org

~~~
1.1.1.2 Ensure mounting of squashfs filesystems is disabled (Automated)
Profile Applicability:
• Level 2 - Server
• Level 2 - Workstation

5.3.4 Ensure users must provide password for escalation (Automated)
Profile Applicability:
• Level 2 - Server
• Level 2 - Workstation
~~~

Version-Release number of selected component (if applicable):
scap-security-guide-0.1.63-4.el8.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Install scap-security-guide-0.1.63-4.el8.noarch
2. View the benchmarks under CIS server Level 1 with: 
# sed -n -e '/xccdf-1.2:Profile id=\"xccdf_org.ssgproject.content_profile_cis_server_l1\"/,/<\/xccdf-1.2:Profile>/ p' /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml &> /tmp/CIS_Level_1_benchmarks.out
3. Grep for the specific rules:
# grep xccdf_org.ssgproject.content_rule_kernel_module_squashfs_disabled /tmp/CIS_Level_1_benchmarks.out
# grep xccdf_org.ssgproject.content_rule_sudo_require_authentication /tmp/CIS_Level_1_benchmarks.out

Actual results:

Rules appear with selected="true" under CIS Level 1 profiles for workstation and server

Expected results:
Rules only with selected="true" under CIS Level 2 profiles

Additional Info:

I searched the ComplianceAsCode github repository and didn't see any open issues for these two rules:
kernel_module_squashfs_disabled
sudo_require_authentication

Comment 2 Vojtech Polasek 2023-01-23 11:23:57 UTC
Fixed upstrea: https://github.com/ComplianceAsCode/content/pull/10109

Comment 9 Vojtech Polasek 2023-02-02 08:16:09 UTC
Additional fixes relevant to this BZ are in upstream: https://github.com/ComplianceAsCode/content/pull/10155

Comment 32 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


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