Sudo Access Denied

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects failed sudo attempts where a user was denied elevated privileges, which may indicate unauthorized privilege escalation attempts or misconfigured access controls.

Severity

Critical

Rule Requirement

Criteria

Action1: actionname = "Failed sudo command execution" AND (RESULT contains "user NOT in sudoers") select Action1.HOSTNAME,Action1.USERNAME,Action1.TARGETUSER,Action1.COMMANDEXECUTED,Action1.MESSAGE,Action1.RESULT

Detection

Execution Mode

realtime

Log Sources

Miscellaneous