Skip to content

RHEL 9 STIG audit rules changes - #15000

Open
jan-cerny wants to merge 2 commits into
ComplianceAsCode:masterfrom
jan-cerny:rhel9_audit
Open

RHEL 9 STIG audit rules changes#15000
jan-cerny wants to merge 2 commits into
ComplianceAsCode:masterfrom
jan-cerny:rhel9_audit

Conversation

@jan-cerny

@jan-cerny jan-cerny commented Aug 14, 2026

Copy link
Copy Markdown
Member

Description:

Create new rule audit_rules_cron_execution

Create new rule audit_rules_cron_execution that aligns with RHEL 9 STIG requirement RHEL-09-654097 The requirement was updated in RHEL 9 STIG V2R9. The previous versions of STIG watched for modifications of /etc/cron.d /var/spool/cron. The V2R9 requires to watch any system call made by cron and requires to use different audit rules than the previous versions.

Change audit watches to "modern" style in RHEL 9

RHEL 9 rules that use the audit_rules_watch template will start using the "modern" style of audit watches.

The reason for this change is that RHEL 9 STIG V2R9 started to use the "modern" style in their requirements. Also, RHEL 9 CIS Benchmark will switch to the "modern" style in the next release of the RHEL 9 CIS Benchmark.

Rationale:

Align RHEL 9 STIG profile with RHEL 9 DISA STIG V2R9 in these requirements:

RHEL-09-654097
RHEL-09-654215
RHEL-09-654220
RHEL-09-654225
RHEL-09-654230
RHEL-09-654235
RHEL-09-654240
RHEL-09-654245
RHEL-09-654250
RHEL-09-654255

Review Hints:

  • Run automatus tests for the new rule audit_rules_cron_execution
  • Check test results of Contest tests for STIG profile on RHEL9, check if audit_rules_cron_execution passed and if other audit rules passed as well.

Create new rule `audit_rules_cron_execution` that aligns with RHEL 9
STIG requirement RHEL-09-654097 The requirement was updated in RHEL 9
STIG V2R9. The previous versions of STIG watched for modifications of
`/etc/cron.d` `/var/spool/cron`. The V2R9 requires to watch any system
call made by cron and requires to use different audit rules than the
previous versions.
RHEL 9 rules that use the `audit_rules_watch` template will
start using the "modern" style of audit watches.

The reason for this change is that RHEL 9 STIG V2R9 started to use the
"modern" style in their requirements. Also, RHEL 9 CIS Benchmark will
switch to the "modern" style in the next release of the RHEL 9 CIS
Benchmark.
@jan-cerny jan-cerny added this to the 0.1.82 milestone Aug 14, 2026
@jan-cerny jan-cerny added RHEL9 Red Hat Enterprise Linux 9 product related. STIG STIG Benchmark related. labels Aug 14, 2026
@openshift-ci

openshift-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Aug 14, 2026
@jan-cerny
jan-cerny marked this pull request as ready for review August 14, 2026 14:51
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Aug 14, 2026
@openshift-ci

openshift-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown

@jan-cerny: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-platform-compliance 7b0ff04 link true /test e2e-aws-openshift-platform-compliance
ci/prow/e2e-aws-openshift-node-compliance 7b0ff04 link false /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RHEL9 Red Hat Enterprise Linux 9 product related. STIG STIG Benchmark related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant