Elastic medium stable eql
Potential Upgrade of Non-interactive Shell
Identifies when a non-interactive terminal (tty) is being upgraded to a fully interactive shell. Attackers may upgrade a simple reverse shell to a fully interactive tty after obtaining initial access to a host, in order to obtain a more stable connection.
Detection Logic
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
)
) and
not process.parent.command_line like ("linode-longview", "*bootstrap*", "*homebrew*") Field Validations
Loading…
Comments (0)
Loading comments...