APT_UNC2447_PS1_WARPRISM_May21_1
Description
Detects WARPRISM PowerShell samples from UNC2447 campaign
Query · yara
strings:
$x1 = "if ($MyInvocation.MyCommand.Path -match '\\S') {" ascii fullword
$s1 = "[DllImport(\"kernel32.dll\")]public static extern IntPtr VirtualAlloc(IntPtr " ascii wide
$s2 = "[Runtime.InteropServices.Marshal]::Copy($" ascii wide
$s3 = "[System.Diagnostics.Process]::Start((-join(" ascii wide
condition:
filesize < 5000KB and 1 of ($x*) or 2 of them