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 1843913 - Rule rpm_verify_permissions in CIS profile always fails
Summary: Rule rpm_verify_permissions in CIS profile always fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Vojtech Polasek
QA Contact: Milan Lysonek
Jan Fiala
URL:
Whiteboard:
Depends On: 1838622
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-04 11:59 UTC by Matus Marhefka
Modified: 2021-11-10 00:55 UTC (History)
12 users (show)

Fixed In Version: scap-security-guide-0.1.57-2.el8
Doc Type: Bug Fix
Doc Text:
.`rpm_verify_permissions` removed from the CIS profile The `rpm_verify_permissions` rule, which compares file permissions to package default permissions, has been removed from the Center for Internet Security (CIS) Red Hat Enterprise Linux 8 Benchmark. With this update, the CIS profile is aligned with the CIS RHEL 8 benchmark, and as a result, this rule no longer affects users who harden their systems according to CIS.
Clone Of: 1838622
Environment:
Last Closed: 2021-11-09 18:43:58 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4265 0 None None None 2021-11-09 18:44:09 UTC

Description Matus Marhefka 2020-06-04 11:59:44 UTC
+++ This bug was initially created as a clone of Bug #1838622 +++

Description of problem:
When remediating a RHEL8 box with CIS Profile, rule rpm_verify_permissions always results in fail.

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

How reproducible:
Always

Steps to Reproduce:
1. oscap xccdf eval --remediate --profile cis --report cis_report.html /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml
2. Open the report and check details of rule with id xccdf_org.ssgproject.content_rule_rpm_verify_permissions

Actual results:
Scan of rule rpm_verify_permissions results in fail, with following findings:
/etc/cron.hourly
/etc/crontab
/etc/cron.monthly
/etc/cron.weekly
/etc/cron.daily
/etc/cron.d

Expected results:
Scan of rule rpm_verify_permissions results in pass.

Additional info:
CIS Profile contains rules that require that permissions of the files mentioned above be set to more restrictive permissions, but rule rpm_verify_permissions compares the file permissions against package default permissions.

Comment 9 Matěj Týč 2021-08-18 15:16:03 UTC
Both customer cases refer to the rpm_verify_permissions rule in the context of the CIS profile. As Vojta has indicated in the private https://bugzilla.redhat.com/show_bug.cgi?id=1843913#c8, the rule has been removed from the profile in
https://github.com/ComplianceAsCode/content/pull/6976

Although the rule will still interact with the system in a way that triggered this BZ, it won't affect users that want to harden their systems according to the CIS policy.

Comment 28 errata-xmlrpc 2021-11-09 18:43:58 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-2021:4265


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