RHEL-08-010359 - The RHEL 8 operating system must use a file integrity tool to verify correct operation of all security functions.

Information

Without verification of the security functions, security functions may not operate correctly, and the failure may go unnoticed. Security function is defined as the hardware, software, and/or firmware of the information system responsible for enforcing the system security policy and supporting the isolation of code and data on which the protection is based. Security functionality includes, but is not limited to, establishing system accounts, configuring access authorizations (i.e., permissions, privileges), setting events to be audited, and setting intrusion detection parameters.

This requirement applies to the RHEL 8 operating system performing security function verification/testing and/or systems and environments that require this functionality.

Solution

Install AIDE, initialize it, and perform a manual check.

Install AIDE:
$ sudo yum install aide

Initialize it:
$ sudo /usr/sbin/aide --init

Example output:
Number of entries: 48623

---------------------------------------------------
The attributes of the (uncompressed) database(s):
---------------------------------------------------

/var/lib/aide/aide.db.new.gz
SHA1 : LTAVQ8tFJthsrf4m9gfRpnf1vyc=
SHA256 : NJ9+uzRQKSwmLQ8A6IpKNvYjVKGbhSjt
BeJBVcmOVrI=
SHA512 : 7d8I/F6A1b07E4ZuGeilZjefRgJJ/F20
eC2xoag1OsOVpctt3Mi7Jjjf3vFW4xoY
5mdS6/ImQpm0xtlTLOPeQQ==

End timestamp: 2022-10-20 10:50:52 -0700 (run time: 0m 46s)

The new database will need to be renamed to be read by AIDE:
$ sudo mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz

Perform a manual check:
$ sudo /usr/sbin/aide --check

Example output:
Start timestamp: 2022-10-20 11:03:16 -0700 (AIDE 0.16)
AIDE found differences between database and filesystem!!
...

Done.

See Also

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

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-6a., CAT|II, CCI|CCI-002696, Rule-ID|SV-251710r958944_rule, STIG-ID|RHEL-08-010359, Vuln-ID|V-251710

Plugin: Unix

Control ID: 6c37718856cf2ae6ea36796e4f12ffebd81782ffb54274b76d90993a0a63db25