sequence by host.id, process.parent.pid with maxspan=1m
[process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and
process.name == "openssl" and process.args == "passwd" and user.id != "0"]
[file where host.os.type == "linux" and file.path == "/etc/passwd" and process.parent.pid != 1 and
not auditd.data.a2 == "80000" and event.outcome == "success" and user.id != "0"]
Install detection rules in Elastic Security
Detect Suspicious Passwd File Event Action 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).