shimrat
Description
Detects ShimRat and the ShimRat loader
Query · yara
strings:
$dll = ".dll"
$dat = ".dat"
$headersig = "QWERTYUIOPLKJHG"
$datasig = "MNBVCXZLKJHGFDS"
$datamarker1 = "Data$$00"
$datamarker2 = "Data$$01%c%sData"
$cmdlineformat = "ping localhost -n 9 /c %s > nul"
$demoproject_keyword1 = "Demo"
$demoproject_keyword2 = "Win32App"
$comspec = "COMSPEC"
$shim_func1 = "ShimMain"
$shim_func2 = "NotifyShims"
$shim_func3 = "GetHookAPIs"
condition:
($dll and $dat and $headersig and $datasig) or
($datamarker1 and $datamarker2) or
($cmdlineformat and $demoproject_keyword1 and $demoproject_keyword2 and $comspec) or
($dll and $dat and $shim_func1 and $shim_func2 and $shim_func3)