OL08-00-040137 - The OL 8 fapolicy module must be configured to employ a deny-all, permit-by-exception policy to allow the execution of authorized software programs.

Information

The organization must identify authorized software programs and permit execution of authorized software. The process used to identify software programs that are authorized to execute on organizational information systems is commonly referred to as whitelisting.

Using a whitelist provides a configuration management method for allowing the execution of only authorized software. Using only authorized software decreases risk by limiting the number of potential vulnerabilities. Verification of whitelisted software occurs prior to execution or at system startup.

Users' home directories/folders may contain information of a sensitive nature. Non-privileged users should coordinate any sharing of information with a System Administrator through shared resources.

OL 8 ships with many optional packages. One such package is a file access policy daemon called 'fapolicyd'. This is a userspace daemon that determines access rights to files based on attributes of the process and file. It can be used to either blacklist or whitelist processes or file access.

Proceed with caution with enforcing the use of this daemon. Improper configuration may render the system non-functional. The 'fapolicyd' API is not namespace aware and can cause issues when launching or running containers.

Satisfies: SRG-OS-000368-GPOS-00154, SRG-OS-000370-GPOS-00155

Solution

Configure OL 8 to employ a deny-all, permit-by-exception application whitelisting policy with 'fapolicyd'.

With the 'fapolicyd' installed and enabled, configure the daemon to function in permissive mode until the whitelist is built correctly to avoid system lockout. Do this by editing the '/etc/fapolicyd/fapolicyd.conf' file with the following line:

permissive = 1

For OL 8.4 systems and older:
Build the whitelist in the '/etc/fapolicyd/fapolicyd.rules' file ensuring the last rule is 'deny perm=any all : all'.

For OL 8.5 systems and newer:
Build the whitelist in a file within the '/etc/fapolicyd/rules.d' directory ensuring the last rule is 'deny perm=any all : all'.

Once it is determined the whitelist is built correctly, set the fapolicyd to enforcing mode by editing the 'permissive' line in the /etc/fapolicyd/fapolicyd.conf file.

permissive = 0

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7(2), 800-53|CM-7(5)(b), CAT|II, CCI|CCI-001764, CCI|CCI-001774, Rule-ID|SV-248861r958804_rule, STIG-ID|OL08-00-040137, Vuln-ID|V-248861

Plugin: Unix

Control ID: 7ec3cc76c954ae5eee130b2c2e632d54bd5e9c8a12231f50001d870f9f4ad761