glassRAT
Description
Detects GlassRAT by RSA (modified by Florian Roth - speed improvements)
Query · yara
strings:
$bin1 = {85 C0 B3 01} /* test eax, eax
mov bl, 1 */
// $bin2 = {34 02} // xor al, 2 ---> XOR key for rundll32.exe
$bin3 = {68 4C 50 00 10} // push offset KeyName ; "2"
$bin4 = {68 48 50 00 10} // push offset a3 ; "3"
$bin5 = {68 44 50 00 10} // push offset a4 ; "4"
$hs = {CB FF 5D C9 AD 3F 5B A1 54 13 FE FB 05 C6 22} // Initial Handshake ---> can be added or removed for hunting for different variants
//$re1 = {50 00 00 00}
//$re2 = {BB 01 00 00}
// Dwords of C2 Ports (80 | 443 | 53) 2 -3 times
$s1 = "pwlfnn10,gzg" // rundll32.exe XOR 02
$s2 = "AddNum"
$s3 = "ServiceMain"
$s4 = "The Window"
$s5 = "off.dat"
condition:
all of ($bin*) and $hs and 3 of ($s*) //The conditions can be adjusted for hunting for different variants