Elastic Defend high stable eql

Background Process Execution via Shell

Detects when a binary located in a suspicious location gets executed by a shell interpreter and put in the background via the & operator. Malwares may execute their payloads in the background in an effort to remain hidden.

View Source

Detection Logic

process where event.type == "start" and event.action == "exec" and 
    process.name like~ ("bash", "sh", "zsh", "tclsh*") and
    process.args == "-c" and process.args like~ ("/* &", "/*&") and
    process.args_count == 3 and 
    process.parent.executable like~ 
                                ("/private/tmp/*", 
                                 "/var/tmp/*", 
                                 "/tmp/*", 
                                 "/var/folders/*", 
                                 "/Library/Containers/*", 
                                 "/Library/Graphics/*",
                                 "/Users/Shared/*", 
                                 "/Users/*/Library/Preferences/*", 
                                 "/var/root/*", 
                                 "/Library/WebServer/*", 
                                 "/Library/Preferences/*", 
                                 "/Library/Services/*", 
                                 "/Library/Fonts/*", 
                                 "/usr/local/bin/*")

Field Validations

Loading…

Comments (0)

Loading comments...