summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien "shaddai" Reveret2015-12-03 17:51:09 +0100
committerJulien "shaddai" Reveret2015-12-03 17:51:09 +0100
commit3aea5b3b3e4da79420037e12e3884d0c30bd92f0 (patch)
tree19276a7278831437d5e3ef12e837011c4b412005
parentaa1f56a912194957918c37eef8c30e490267ee59 (diff)
added double base64 encoding detection
-rw-r--r--php-malware-finder/malwares.yara1
1 files changed, 1 insertions, 0 deletions
diff --git a/php-malware-finder/malwares.yara b/php-malware-finder/malwares.yara
index 8fd5eb5..73195da 100644
--- a/php-malware-finder/malwares.yara
+++ b/php-malware-finder/malwares.yara
@@ -105,6 +105,7 @@ rule DodgyPhp
105{ 105{
106 strings: 106 strings:
107 $vars = /\$__+/ // $__ is rarely used in legitimate scripts 107 $vars = /\$__+/ // $__ is rarely used in legitimate scripts
108 $double_encoding = /(base64_decode\s*\(\s*){2}/
108 $execution = /(eval|assert|passthru|exec|system|win_shell_execute|base64_decode)\s*\(\s*(base64_decode|php:\/\/input|str_rot13|gz(inflate|uncompress)|getenv|pack|\\?\$_(GET|REQUEST|POST))/ 109 $execution = /(eval|assert|passthru|exec|system|win_shell_execute|base64_decode)\s*\(\s*(base64_decode|php:\/\/input|str_rot13|gz(inflate|uncompress)|getenv|pack|\\?\$_(GET|REQUEST|POST))/
109 $basedir_bypass = /(curl_init\([\"']file:[\"']|file:file:\/\/)/ 110 $basedir_bypass = /(curl_init\([\"']file:[\"']|file:file:\/\/)/
110 $safemode_bypass = /\x00\/\.\.\/|LD_PRELOAD/ 111 $safemode_bypass = /\x00\/\.\.\/|LD_PRELOAD/