diff --git a/yara/thor-hacktools.yar b/yara/thor-hacktools.yar index 1e9d4e2..0ae2315 100644 --- a/yara/thor-hacktools.yar +++ b/yara/thor-hacktools.yar @@ -3922,3 +3922,19 @@ rule Invoke_Metasploit { condition: ( filesize < 20KB and 1 of them ) } + +rule PowerShell_Mal_HackTool_Gen { + meta: + description = "Detects PowerShell hack tool samples - generic PE loader" + author = "Florian Roth" + reference = "Internal Research" + date = "2017-11-02" + hash1 = "d442304ca839d75b34e30e49a8b9437b5ab60b74d85ba9005642632ce7038b32" + strings: + $x1 = "$PEBytes32 = 'TVqQAAMAAAAEAAAA" wide + $x2 = "Write-BytesToMemory -Bytes $Shellcode1 -MemoryAddress $GetCommandLineWAddrTemp" fullword wide + $x3 = "@($PEBytes64, $PEBytes32, \"Void\", 0, \"\", $ExeArgs)" fullword wide + $x4 = "(Shellcode: LoadLibraryA.asm)" fullword wide + condition: + filesize < 8000KB and 1 of them +}