1.392 RHEL-09-654010

Information

RHEL 9 must audit uses of the "execve" system call.

GROUP ID: V-258176
RULE ID: SV-258176r1045313

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-000326-GPOS-00126, SRG-OS-000327-GPOS-00127

Solution

Configure RHEL 9 to audit the execution of the "execve" system call.

Add or update the following file system rules to "/etc/audit/rules.d/audit.rules":

-a always,exit -F arch=b32 -S execve -C uid!=euid -F euid=0 -k execpriv
-a always,exit -F arch=b64 -S execve -C uid!=euid -F euid=0 -k execpriv
-a always,exit -F arch=b32 -S execve -C gid!=egid -F egid=0 -k execpriv
-a always,exit -F arch=b64 -S execve -C gid!=egid -F egid=0 -k execpriv

To load the rules to the kernel immediately, use the following command:

$ sudo augenrules --load

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(8), 800-53|AC-6(9), CAT|II, CCI|CCI-002233, CCI|CCI-002234, Rule-ID|SV-258176r1045313_rule, STIG-ID|RHEL-09-654010, Vuln-ID|V-258176

Plugin: Unix

Control ID: 0eaa3734ac9a36d0b9f00d174d00168c460b720e34e92203b6342123c57c27f6