/* Detect: - phpencode.org - http://www.pipsomania.com/best_php_obfuscator.do - http://atomiku.com/online-php-code-obfuscator/ - http://www.webtoolsvn.com/en-decode/ - http://obfuscator.uk/example/ - http://w3webtools.com/encode-php-online/ - http://www.joeswebtools.com/security/php-obfuscator/ - https://github.com/epinna/weevely3 - http://cipherdesign.co.uk/service/php-obfuscator - http://sysadmin.cyklodev.com/online-php-obfuscator/ - http://mohssen.org/SpinObf.php - https://code.google.com/p/carbylamine/ */ private rule IsPhp { strings: $php = " 250) } rule DodgyStrings { strings: $a = "/etc/passwd" $b = "/etc/shadow" $c = "/etc/resolv.conf" $d = "/etc/syslog.conf" $e = "/etc/proftpd.conf" $e = "WinExec" $f = "uname -a" fullword $g = "nc -l" fullword $h = "ls -la" fullword $i = "cmd.exe" fullword nocase $j = "ipconfig" fullword nocase $k = "find . -type f" fullword $l = "defaced" fullword nocase $m = "slowloris" fullword nocase $o = "id_rsa" fullword $p = "backdoor" fullword nocase $q = "webshell" fullword nocase $r = "exploit" fullword nocase $s = "hacking" fullword nocase $t = "/proc/cpuinfo" fullword $u = "/bin/sh" fullword $v = "/bin/bash" fullword $w = "ps -aux" fullword $x = "b374k" fullword $y = /(reverse|web)\s*shell/ nocase $vbs = /language\s*=\s*vbscript/ nocase $asp = "scripting.filesystemobject" nocase condition: IsPhp and (IRC or 2 of them) } rule Websites { strings: $milw0rm = "milw0rm.com" $exploitsdb = "exploit-db.com" $injector = "1337day.com" $rapid7 = "rapid7.com" $shodan = "shodan.io" $packetstorm = "packetstormsecurity" $crackfor = "crackfor" nocase $rednoize = "md5.rednoize" $hashcracking = "hashcracking" nocase $darkc0de = "darkc0de" nocase $securityfocus = "securityfocus" nocase $antichat = "antichat.ru" $kingdefacer = "KingDefacer" nocase $md5crack = "md5crack.com" $md5crack = "md5decrypter.com" $hashkiller = "hashkiller.com" $hashchecker = "hashchecker.com" $fopo = "http://www.fopo.com.ar/" $ccteam = "ccteam.ru" $locus = "locus7s.com" condition: IsPhp and any of them }