Invoke_WMIExec_Gen_1
Description
Detects Invoke-WmiExec or Invoke-SmbExec
Query · yara
strings:
$x1 = "Invoke-WMIExec " ascii
$x2 = "$target_count = [System.math]::Pow(2,(($target_address.GetAddressBytes().Length * 8) - $subnet_mask_split))" fullword ascii
$s1 = "Import-Module $PWD\\Invoke-TheHash.ps1" fullword ascii
$s2 = "Import-Module $PWD\\Invoke-SMBClient.ps1" fullword ascii
$s3 = "$target_address_list = [System.Net.Dns]::GetHostEntry($target_long).AddressList" fullword ascii
$x4 = "Invoke-SMBClient -Domain TESTDOMAIN -Username TEST -Hash F6F38B793DB6A94BA04A52F1D3EE92F0" ascii
condition:
1 of them