Verify that Advanced Intrusion Detection Environment (AIDE) is properly configured.
Run the following script to verify:
- AIDE is configured to use cryptographic mechanisms to protect the integrity of audit tools:
- The following audit tool files include the options "p, i, n, u, g, s, b, acl, xattrs and sha512"
- auditctl
- auditd
- ausearch
- aureport
- autrace
- augenrules
Note: The script is written to read the "winning" configuration setting, to include any configuration settings in files included as part of the @@x_include setting.
Run the following command to determine the absolute path to the non-symlinked version on the audit tools:
# readlink -f /sbin
The output will be either /usr/sbin - OR - /sbin. Ensure the correct path is used.
Edit /etc/aide/aide.conf and add or update the following selection lines replacing with the correct path returned in the command above:
Note: - IF - /etc/aide/aide.conf includes a @@x_include statement:
- and each executable config file must be owned by the current user or root
- They must not be group or world-writable