Rule ID
SV-240489r671208_rule
Version
V2R2
CCIs
Protecting audit information also includes identifying and protecting the tools used to view and manipulate log data. Therefore, protecting audit tools is necessary to prevent unauthorized operation on audit information. Operating systems providing tools to interface with audit information will leverage user permissions and roles identifying the user accessing the tools and the corresponding rights the user enjoys in order to make access decisions regarding the access to audit tools. Audit tools include, but are not limited to, vendor-provided and open source audit tools needed to successfully view and manipulate audit information system activity and records. Audit tools include custom queries and report generators.
The following command will list which audit files on the system have permissions different from what is expected by the RPM database:
# rpm -V audit | grep '^.M'
If there is any output, for each file or directory found, compare the RPM-expected permissions with the permissions on the file or directory:
# rpm -q --queryformat "[%{FILENAMES} %{FILEMODES:perms}\n]" audit | grep [filename]
# ls -lL [filename]
If the existing permissions are more permissive than those expected by RPM, this is a finding.Run the following command to reset audit permissions to the correct values: sudo rpm --setperms audit-1.8-0.34.26