endpoint(opens in a new tab or window)
process where host.os.type == "linux" and event.type == "start" and
event.action in ("exec", "exec_event", "start", "ProcessRollup2") and
(
(process.name == "stty" and process.args == "raw" and process.args == "-echo" and process.args_count >= 3) or
(process.name == "script" and process.args in ("-qc", "-c") and process.args == "/dev/null" and
process.args_count == 4)
)
Install detection rules in Elastic Security
Detect Potential Upgrade of Non-interactive Shell 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).