Information
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised information system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider threats and the advanced persistent threat.
Satisfies: SRG-OS-000327-GPOS-00127, SRG-OS-000471-GPOS-00215
Solution
At the command line, execute the following command to obtain a list of setuid files:
# find / -xdev -perm -4000 -type f -o -perm -2000 -type f
Open /etc/audit/rules.d/audit.STIG.rules with a text editor and add the following line:
Replace <setuid_path> with each path found in the first command.
-a always,exit -F path=<setuid_path> -F perm=x -F auid>=1000 -F auid!=4294967295 -k privileged
At the command line, execute the following command:
# /sbin/augenrules --load