sequence by host.id, process.parent.entity_id with maxspan=1s
[process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and
process.name == "id" and process.args_count == 2 and
not (
process.parent.name in ("rpm", "snarftmp", "quota_copy", "java") or
process.parent.args : "/var/tmp/rpm-tmp*"
)] with runs=20
Install detection rules in Elastic Security
Detect Unusual User Privilege Enumeration via id in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).