GhostDragon_Gh0stRAT
Description
Detects Gh0st RAT mentioned in Cylance' Ghost Dragon Report
Query · yara
strings: $x1 = "REG ADD HKEY_LOCAL_MACHINE\\%s /v ServiceDll /t REG_EXPAND_SZ /d \"%s\"" fullword ascii $x2 = "Global\\REALCHEL_GLOBAL_SUBMIT_20031020_" ascii $x3 = "\\xclolg2.tmp" ascii $x4 = "Http/1.1 403 Forbidden" fullword ascii $x5 = "%sxsd%d.pif" fullword ascii $x6 = "%s\\%s32.dl_" ascii $x7 = "%-23s %-16s 0x%x(%02d)" fullword ascii $x8 = "RegSetValueEx(start)" fullword ascii $x9 = "%s\\%s64.dl_" ascii $s1 = "viewsc.dll" fullword ascii $s2 = "Proxy-Connection: Keep-Alive" fullword ascii $s3 = "\\sfc_os.dll" ascii $s4 = "Mozilla/4.0 (compatible)" fullword ascii $s5 = "Http/1.1 403 Forbidden" fullword ascii $s6 = "CONNECT %s:%d HTTP/1.1" fullword ascii $s7 = "WindowsUpperVersion" fullword ascii $s8 = "[%d-%d-%d %d:%d:%d] (%s)" fullword ascii $s9 = "SOFTWARE\\Microsoft\\DataAccess\\%s" fullword ascii $s10 = "%s sp%d(%d)" fullword ascii $s11 = "OpenSC ERROR " fullword ascii $s12 = "get rgspath error " fullword ascii $s13 = "Global\\GLOBAL_SUBMIT_0234_" ascii $s14 = "Global\\_vc_ck_ %d" fullword ascii condition: ( uint16(0) == 0x5a4d and filesize < 500KB and ( 1 of ($x*) or 4 of ($s*) ) ) or ( 6 of them )