ALMA-09-007280 - AlmaLinux OS 9 must audit uses of the "execve" system call.

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-000326-GPOS-00126

Solution

Configure AlmaLinux OS 9 to generate audit records upon successful/unsuccessful attempts to use the "sudo" command.

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

-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

Merge the rules into /etc/audit/audit.rules:

$ augenrules --load

See Also

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

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-269146r1050028_rule, STIG-ID|ALMA-09-007280, Vuln-ID|V-269146

Plugin: Unix

Control ID: 5de4f5af0bf50f4b415ecc12334b3eaa25941003ee940b8e00d48826a85a7830