Build and Test AIDE Database
An XCCDF Rule
Description
Run the following command to generate a new database:
$ sudo /usr/bin/aide --initBy default, the database will be written to the file
/var/lib/aide/aide.db.new
.
Storing the database, the configuration file /etc/aide.conf
, and the binary
/usr/bin/aide
(or hashes of these files), in a secure location (such as on read-only media) provides additional assurance about their integrity.
The newly-generated database can be installed as follows:
$ sudo cp /var/lib/aide/aide.db.new /var/lib/aide/aide.dbTo initiate a manual check, run the following command:
$ sudo /usr/bin/aide --checkIf this check produces any unexpected output, investigate.
Rationale
For AIDE to be effective, an initial database of "known-good" information about files must be captured and it should be able to be verified against the installed files.
- ID
- xccdf_org.ssgproject.content_rule_aide_build_database
- Severity
- Medium
- References
- Updated
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel-default; then
zypper -q --no-remote ref
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-85787-0
- CJIS-5.10.1.3