sequence by process.entity_id, host.id with maxspan=10s
[process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and (
(process.name == "git" and process.args == "clone") or
(process.name in ("wget", "curl") and process.command_line like~ "*github*")
)]
[file where host.os.type == "linux" and event.type == "creation" and file.path like ("/tmp/*", "/var/tmp/*", "/dev/shm/*")]
Install detection rules in Elastic Security
Detect Git Repository or File Download to Suspicious Directory 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).