Missing Audit Rules in RHEL7 STIG Profile
Description of problem:
Audit rules for kmod and create_module are missing from the RHEL7 STIG Content. I understand that other audit rules from the STIG profile have intentionally been left out for varying reasons, however I could not find a justification for the following missing rules.
kmod rule: -w /usr/bin/kmod -p x -F auid!=unset -k module-change
create_module rules: -a always,exit -F arch=b32 -S create_module -k module-change -a always,exit -F arch=b64 -S create_module -k module-change
SCAP Security Guide Version:
scap-security-guide-0.1.52-2.el7_9.noarch
Operating System Version:
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Steps to Reproduce:
- Run scap-workbench with RHEL7 content
- Load STIG Profile
- Scan
Actual Results:
No scan results for kmod or create_module audit rules
Expected Results:
scan should identify missing audit rules and generate remediation role.
Additional Information/Debugging Steps:
kmod rule was introduced fairly recent to the project: audit_rules_privileged_commands_kmod and it focuses mainly in SLE products, so there is some work to be done before adding it to the RHEL7 profile.
create_module rule doesn't exist at this moment but it should be easy to implement using one of the available templates: https://complianceascode.readthedocs.io/en/latest/manual/developer/06_contributing_with_content.html#available-templates
This issue is addressed by merged PRs #9338 and #9320