gen_unicorn_obfuscated_powershell
Description
PowerShell payload obfuscated by Unicorn toolkit
Query · yara
strings:
$h1 = "powershell"
$sa1 = ".value.toString() 'JAB"
$sa2 = ".value.toString() ('JAB"
$sb1 = "-w 1 -C \"s"
$sb2 = "/w 1 /C \"s"
condition:
filesize < 20KB
and uint32be(0) == 0x706f7765
and $h1 at 0
and (
uint16be(filesize-2) == 0x2722 or /* Footer 1 */
( uint16be(filesize-2) == 0x220a and uint8(filesize-3) == 0x27 ) or /* Footer 2 */
( uint16be(filesize-2) == 0x2922 and uint8(filesize-3) == 0x27 ) /* Footer 3 */
)
and ( 1 of ($sa*) and 1 of ($sb*) )