6.3.3.43 Ensure the audit system prevents unauthorized changes to logon UIDs

Information

The audit system must protect logon UIDs from unauthorized change.

Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality.

Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit system activity.

In immutable mode, unauthorized users cannot execute changes to the audit system to potentially hide malicious activity and then put the audit rules back. A system reboot would be noticeable and a system administrator could then investigate the unauthorized changes.

Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000058-GPOS-00028, SRG-OS-000059-GPOS-00029

Solution

Configure the audit system to set the logon UIDs to be immutable by adding the following line to a .rules file in the /etc/audit/rules.d/ directory

--loginuid-immutable

Example:

# printf '\n%s\n' "--loginuid-immutable" >> /etc/audit/rules.d/98-oginuid-immutable.rules

Run the following command to merge and load the rule into active configuration:

# augenrules --load

Run the following command to check if reboot is required.

# if [[ $(auditctl -s | grep "enabled") =~ "2" ]]; then printf "Reboot required to load rules\n"; fi

See Also

https://workbench.cisecurity.org/benchmarks/19886