ALFA_SHELL
Description
Detects web shell often used by Iranian APT groups
Query · yara
strings:
$x1 = "$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64')" ascii
$x2 = "#solevisible@gmail.com" fullword ascii
$x3 = "'login_page' => '500',//gui or 500 or 403 or 404" fullword ascii
$x4 = "$GLOBALS['__ALFA__']" fullword ascii
$x5 = "if(!function_exists('b'.'as'.'e6'.'4_'.'en'.'co'.'de')" ascii
$f1 = { 76 2F 38 76 2F 36 76 2F 2B 76 2F 2F 66 38 46 27 29 3B 3F 3E 0D 0A }
condition:
( filesize < 900KB and 2 of ($x*) or $f1 at (filesize-22) )