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 1838622 - Rule rpm_verify_permissions in CIS profile always fails
Summary: Rule rpm_verify_permissions in CIS profile always fails
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: BaseOS QE Security Team
Jan Fiala
URL:
Whiteboard:
Depends On:
Blocks: 1843913
TreeView+ depends on / blocked
 
Reported: 2020-05-21 13:03 UTC by Watson Yuuma Sato
Modified: 2020-07-14 09:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.`rpm_verify_permissions` fails in the CIS profile The `rpm_verify_permissions` rule compares file permissions to package default permissions. However, the Center for Internet Security (CIS) profile, which is provided by the `scap-security-guide` packages, changes some file permissions to be more strict than default. As a consequence, verification of certain files using `rpm_verify_permissions` fails. To work around this problem, manually verify that these files have the following permissions: * `/etc/cron.d` (0700) * `/etc/cron.hourly` (0700) * `/etc/cron.monthly` (0700) * `/etc/crontab` (0600) * `/etc/cron.weekly` (0700) * `/etc/cron.daily` (0700) For more information about the related feature, see xref:BZ-1821633[].
Clone Of:
: 1843913 (view as bug list)
Environment:
Last Closed: 2020-06-18 15:56:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Watson Yuuma Sato 2020-05-21 13:03:03 UTC
Description of problem:
When remediating a RHEL7 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.49-11.el7

How reproducible:
Always

Steps to Reproduce:
1. oscap xccdf eval --remediate --profile cis --report cis_report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-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 6 Vojtech Polasek 2020-06-18 15:56:55 UTC
Closing this BZ. This expectation in CIS profile is not compatible with how RPM verification works, and implementation would be prohibitively expansive. For further details please read the Doc text.


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