GEN002825-5 - The audit system must be configured to audit the loading and unloading of dynamic kernel modules - /sbin/rmmod - '/sbin/rmmod'

Information

Actions concerning dynamic kernel modules must be recorded as they are substantial events. Dynamic kernel modules can increase the attack surface of a system. A malicious kernel module can be used to substantially alter the functioning of a system, often with the purpose of hiding a compromise from the SA.

Solution

The use of audit keys consistent with the provided example is encouraged to provide for uniform audit logs, however omitting the audit key or using an alternate audit key is not a finding.

Procedure:
Configure auditing of the /sbin/rmmod file.
Add the following to the 'etc/audit/audit.rules' or 'etc/audit.rules' file:

-w /sbin/rmmod -p x

Restart the auditd service.
# service auditd restart

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_5_V2R1_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY, CONFIGURATION MANAGEMENT

References: 800-53|AU-2d., 800-53|CM-6b., CAT|II, CCI|CCI-000126, CCI|CCI-000366, Rule-ID|SV-218425r603259_rule, STIG-ID|GEN002825-5, STIG-Legacy|SV-64425, STIG-Legacy|V-29288, Vuln-ID|V-218425

Plugin: Unix

Control ID: 5f2b41a40f161c19253e0988de56e71fd71e39e85aaca6abc880916c249b7224