UBTU-20-010450 - The Ubuntu 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 Ubuntu 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 apt install aide

Initialize it (this may take a few minutes):
$ sudo aideinit
Running aide --init...

Example output:

Start timestamp: 2022-11-20 11:53:17 -0700 (AIDE 0.16)
AIDE initialized database at /var/lib/aide/aide.db.new
Verbose level: 6

Number of entries: 119543

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

/var/lib/aide/aide.db.new
RMD160 : PiEP1DX91JMcHnRSPnpFqNfIFr4=
TIGER : /zM5yQBnOIoEH0jplJE5v6S0rUErbTXL
SHA256 : BE2iHtBN9lEX53l4R/p7t1al0dIlsgPc
Lg4YI08+/Jk=
SHA512 : JIdGeNVRgtBPPSwun9St+9cwUrgIIKUW
KVTksZXJ29Tt+luC/XNDcjIub7fbPVw/
EcTDsvYtt9MBmBxw1wCYng==
CRC32 : jB2FVw==
HAVAL : Jhe+fqaDpkswpWSnOTN28TO05QFHsjdq
RcFZwCVUGTQ=
GOST : WFrarVyxpXbKdW9SAaOy1Te8rSodV3/q
nLsXuP7YujA=


End timestamp: 2022-11-20 11:58:19 -0700 (run time: 5m 2s)

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

Perform a manual check:
$ sudo aide.wrapper --check

Example output:
Start timestamp: 2022-11-20 11:59: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_CAN_Ubuntu_20-04_LTS_V2R1_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-6a., CAT|II, CCI|CCI-002696, Rule-ID|SV-238371r958944_rule, STIG-ID|UBTU-20-010450, Vuln-ID|V-238371

Plugin: Unix

Control ID: 151c41a93985ac6616fb2ff260035699b38e07a57d795d5eb76eec8fbb4a9b0b