Connection to a Suspicious URL
Description
Identifies when a Windows scripting utility or a program running from a world writable directory attempts to connect to a suspicious URL. This behavior may indicate the presence of a malware command and control activity.
Query · eql
api where process.Ext.api.name in ("InternetOpenURL", "WinHttpOpenRequest") and
(
process.name : ("wscript.exe", "mshta.exe", "powershell.exe") or
(process.executable : ("?:\\ProgramData\\*", "?:\\Users\\*\\AppData\\*", "?:\\Users\\Public\\*", "?:\\Users\\Downloads\\*") and
process.code_signature.trusted != true)
) and
url.full : ("http*.php", "http*.php/*", "http*.php\\*", "http*/wp-content/*", "http*\\wp-content\\*") and
not url.full : ("https://zeek.org/wp-content/*", "https://*.wp.com/*", "http://stat.eliang.com/cstat.php", "http*.foxitservice.com/*")