Elastic high stable eql
Curl Execution via Shell Profile
Detects when curl is executed via a shell profile upon login. This indicates a curl command was added to the user's shell profile (like .zshrc or .bashrc) and is executed automatically at login, which could be used for persistence and payload delivery.
Detection Logic
sequence with maxspan=10s
[process where host.os.type == "macos" and event.type == "start" and event.action == "exec" and
process.name in ("bash", "zsh", "sh") and
process.args in ("-zsh", "-sh", "-bash") and process.args_count == 1 and
process.parent.name == "login"] by process.entity_id
[process where host.os.type == "macos" and event.type == "start" and event.action == "exec" and
process.name in ("curl", "nscurl") and
process.args in ("-o", "--output", "--download", "-dl", "-dir", "--directory", "-F", "--form") and
not process.args like ("https://upload.elastic.co*", "https://artifacts.elastic.co*")] by process.parent.entity_id Field Validations
Loading…
Comments (0)
Loading comments...