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 1876483 - OpenSCAP SSG remediation slows performance with individual rules in auditd
Summary: OpenSCAP SSG remediation slows performance with individual rules in auditd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.2
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Watson Yuuma Sato
QA Contact: Matus Marhefka
Jan Fiala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-07 10:11 UTC by Anthony Hogbin
Modified: 2024-12-20 19:14 UTC (History)
6 users (show)

Fixed In Version: scap-security-guide-0.1.57-2.el8
Doc Type: Enhancement
Doc Text:
.Performance of remediations for Audit improved by grouping similar system calls Previously, Audit remediations generated an individual rule for each system call audited by the profile. This led to large numbers of audit rules, which degraded performance. With this enhancement, remediations for Audit can group rules for similar system calls with identical fields together into a single rule, which improves performance. Examples of system calls grouped together: ---- -a always, exit -F arch=b32 -S chown, fchown, fchownat, lchown -F auid>=1000 -F auid!=unset -F key=perm_mod ---- ---- -a always, exit -F arch=b32 -S unlink, unlinkat, rename, renameat, rmdir -F auid>=1000 -F auid!=unset -F key=delete ---- ---- -a always, exit -F arch=b32 -S chown, fchown, fchownat, lchown -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change ---- ---- -a always, exit -F arch=b32 -S unlink, unlinkat, rename, renameat -F auid>=1000 -F auid!=unset -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete ----
Clone Of:
Environment:
Last Closed: 2021-11-09 18:43:58 UTC
Type: ---
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 Anthony Hogbin 2020-09-07 10:11:45 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Build Identifier: 

Remediating a host creates many individual rules resulting in a loss of performance;
Manually combining rules is resulting in better performance;
Doing this removes the point of remediation by SSG



Reproducible: Always

Steps to Reproduce:
1. Example of 10,000 chmod's on the same file
2. Test with no rules;
3. Test with the SSG remediation of 166 individual rules;
4. Test with audit rules combined down to 44 rules.
Actual Results:  
No rules: 6.2 seconds
SSG remediated 166 audit rules: 10.5 seconds
Manually combined 44 audit rules: 8 seconds

Expected Results:  
Ideally the OpenSCAP SSG would have taken steps to optimize these rules and reduce them to as few as possible to prevent the necessity for human involvement.

Comment 11 Anthony Hogbin 2021-04-26 09:56:55 UTC
@Vojtech Polasek  - I am waiting on an update from the customer - but they have been asked / nudged again - I will be chasing up again in the TAM call this week.

Comment 13 Watson Yuuma Sato 2021-08-19 13:47:46 UTC
This patch (https://github.com/ComplianceAsCode/content/pull/7329) improves the Ansible and Bash remediations to group similar syscalls together.

Comment 27 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.