SV-269456r1050339_rule
V-269456
SRG-OS-000445-GPOS-00199
ALMA-09-045340
CAT II
10
Install AIDE, initialize it, and perform a manual check.
Install AIDE:
$ dnf install aide
Initialize AIDE:
$ /usr/sbin/aide --init
Example output:
Start timestamp: 2024-01-26 09:59:41 +0000 (AIDE 0.16)
AIDE initialized database at /var/lib/aide/aide.db.new.gz
Number of entries: 27922
---------------------------------------------------
The attributes of the (uncompressed) database(s):
---------------------------------------------------
/var/lib/aide/aide.db.new.gz
MD5 : p2o2MgLyXqLfsHGmHWR9nQ==
SHA1 : C5R2JcZCSv3KRz0dMrcQ0JZdZV4=
SHA256 : tUAG19G4gskBEfN+Z9pyVJi13rHA9f7P
d9R5OivGk40=
SHA512 : u26Um0w9hzsMmwZHNssCsmuxVqr9kBx+
Qx+9UBNQCBXlmWFCbq2Yx88BPCU5s/qy
njPIODmPRg4I09jxs5KYjw==
End timestamp: 2024-01-26 09:59:49 +0000 (run time: 0m 8s)
The new database will need to be renamed to be read by AIDE:
$ mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
Perform a manual check:
$ /usr/sbin/aide --check
Example output:
Start timestamp: 2024-01-26 10:00:50 +0000 (AIDE 0.16)
AIDE found NO differences between database and filesystem. Looks okay!!
Verify that AlmaLinux OS 9 has the AIDE package installed with the following command:
$ dnf list --installed aide
aide.x86_64 0.16-100.el9 @AppStream
If AIDE is not installed, ask the system administrator (SA) how file integrity checks are performed on the system.
If there is no application installed to perform integrity checks, this is a finding.
If AIDE is installed, check if it has been initialized with the following command:
$ /usr/sbin/aide --check
If the output is "Couldn't open file /var/lib/aide/aide.db.gz for reading", this is a finding.
V-269456
False
ALMA-09-045340
Verify that AlmaLinux OS 9 has the AIDE package installed with the following command:
$ dnf list --installed aide
aide.x86_64 0.16-100.el9 @AppStream
If AIDE is not installed, ask the system administrator (SA) how file integrity checks are performed on the system.
If there is no application installed to perform integrity checks, this is a finding.
If AIDE is installed, check if it has been initialized with the following command:
$ /usr/sbin/aide --check
If the output is "Couldn't open file /var/lib/aide/aide.db.gz for reading", this is a finding.
M
5664