UBTU-18-010515 - 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_18-04_LTS_V2R13_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-6a., CAT|II, CCI|CCI-002696, Rule-ID|SV-219343r880897_rule, STIG-ID|UBTU-18-010515, STIG-Legacy|SV-110011, STIG-Legacy|V-100907, Vuln-ID|V-219343

Plugin: Unix

Control ID: 7c95402fcb1db22c507b15a719a72297c5f1cc98396f5086109a96271c14fd1b