Hexadecimal IP Command-Line Argument
Description
This rule detects the execution of processes with command-line arguments that contain hexadecimal representations of an IP addresses/domain. This behavior may indicate an attempt to obfuscate the command-line arguments, potentially for malicious purposes.
Query · eql
process where event.type == "start" and event.action == "exec" and process.parent.executable != null and (
process.executable like ("./*", "/boot/*", "/dev/shm/*", "/run/*", "/var/run/*", "/tmp/*", "/var/tmp/*") or
process.name like ("curl", "wget", ".*", "python*", "perl*", "ruby*", "php*", "lua*", "node*")
) and
process.command_line like~ ("*http://0x*", "*https://0x*") and
not (
(
process.executable like "/usr/bin/php*" and
process.parent.executable == "/usr/bin/timeout" and
process.args == "/var/tools/koalaping/bin/ping.php"
) or
(
process.executable == "/usr/local/bin/php" and
process.parent.executable == "/usr/bin/bash" and
process.args == "/usr/local/bin/wp"
)
)