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 1691877 - Remediation for xccdf_org.ssgproject.content_rule_audit_rules_privileged_commands rule doesn't fix the system.
Summary: Remediation for xccdf_org.ssgproject.content_rule_audit_rules_privileged_comm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.6
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: Matus Marhefka
Jan Fiala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-22 17:40 UTC by Ryan Mullett
Modified: 2023-12-15 16:24 UTC (History)
12 users (show)

Fixed In Version: scap-security-guide-0.1.49-6.el7
Doc Type: Bug Fix
Doc Text:
.`audit_rules_privileged_commands` now works correctly for privileged commands Remediation of the `audit_rules_privileged_commands` rule in the `scap-security-guide` packages did not account for a special case in parsing command names. Additionally, the ordering of certain rules prevented successful remediation. As a consequence, remediation of certain combinations of rules reported they were fixed although successive scans reported the rule as failing again. This update improves regular expressions in the rule and the ordering of the rules. As a result, all privileged commands are correctly audited after remediation.
Clone Of:
Environment:
Last Closed: 2020-09-29 19:52:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3909 0 None None None 2020-09-29 19:52:34 UTC

Description Ryan Mullett 2019-03-22 17:40:27 UTC
Description of problem:
When remediating with C2S or DISA STIG the xccdf_org.ssgproject.content_rule_audit_rules_privileged_commands rule will not properly recognize the remediation. During a scan it will still show as vulnerable even after the remediation script is run.

Version-Release number of selected component (if applicable):
openscap-1.2.17-2.el7.x86_64
openscap-scanner-1.2.17-2.el7.x86_64
scap-security-guide-0.1.40-12.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Remediate/scan a system using openscap with C2S or DISA STIG

Actual results:
System shows fail for xccdf_org.ssgproject.content_rule_audit_rules_privileged_commands even after running the remediation script

Expected results:
System will properly recognize that the audit rules were implemented by the STIG xccdf_org.ssgproject.content_rule_audit_rules_privileged_commands

Additional info:

Comment 7 Watson Yuuma Sato 2019-08-15 17:59:53 UTC
This could actually be caused by the rule order in the benchmark.

If any package with privileged command is installed after xccdf_org.ssgproject.content_rule_audit_rules_privileged_commands will fail.

Comment 9 Vojtech Polasek 2020-04-15 08:36:02 UTC
The fix affecting mentioned profiles is upstream at https://github.com/ComplianceAsCode/content/pull/5569

Comment 28 errata-xmlrpc 2020-09-29 19:52:12 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-2020:3909


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