No_PowerShell
Description
Detects an C# executable used to circumvent PowerShell detection - file nps.exe
Query · yara
strings:
$s1 = "nps.exe -encodedcommand {base64_encoded_command}" fullword wide
$s2 = "c:\\Development\\ghps\\nps\\nps\\obj\\x86\\Release\\nps.pdb" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 40KB and ( 1 of ($s*) ) ) or ( all of them )