Windows_Hacktool_SharpWMI_a67d6fe5
Description
Windows.Hacktool.SharpWMI
Query · yara
strings:
$guid = "6DD22880-DAC5-4B4D-9C91-8C35CC7B8180" ascii wide nocase
$str0 = "powershell -w hidden -nop -c \"$e=([WmiClass]'{0}:{1}').Properties['{2}'].Value;[IO.File]::WriteAllBytes('{3}',[Byte[]][Int[]]($e-split','))\"" ascii wide
$str1 = "powershell -w hidden -nop -c \"iex($env:{0})\"" ascii wide
$str2 = "SELECT * FROM Win32_Process" ascii wide
$str3 = "DOWNLOAD_URL" ascii wide
$str4 = "TARGET_FILE" ascii wide
$str5 = "SELECT Enabled,DisplayName,Action,Direction,InstanceID from MSFT_NetFirewallRule WHERE Enabled=1" ascii wide
$print_str0 = "This may indicate called SharpWMI did not invoked WMI using elevated/impersonated token." ascii wide
$print_str1 = "[+] Attempted to terminate remote process ({0}). Returned: {1}" ascii wide
condition:
$guid or (all of ($str*) and 1 of ($print_str*))