diff options
| -rw-r--r-- | malwares.yara | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/malwares.yara b/malwares.yara index dd656ef..3f7ee83 100644 --- a/malwares.yara +++ b/malwares.yara | |||
| @@ -110,7 +110,9 @@ rule DodgyPhp | |||
| 110 | $basedir_bypass = /(curl_init\([\"']file:[\"']|file:file:\/\/)/ | 110 | $basedir_bypass = /(curl_init\([\"']file:[\"']|file:file:\/\/)/ |
| 111 | $safemode_bypass = /\x00\/\.\.\/|LD_PRELOAD/ | 111 | $safemode_bypass = /\x00\/\.\.\/|LD_PRELOAD/ |
| 112 | $shellshock = /putenv\(["']PHP_[^=]=\(\) { [^}] };/ | 112 | $shellshock = /putenv\(["']PHP_[^=]=\(\) { [^}] };/ |
| 113 | $restore_bypass = /ini_restore\(['"](safe_mode|open_basedir|disable_function|safe_mode_exec_dir|safe_mode_include_dir)['"]\)/ | 113 | $restore_bypass = /ini_restore\(['"](safe_mode|open_basedir|disable_function|safe_mode_exec_dir|safe_mode_include_dir|register_globals)['"]\)/ |
| 114 | $ini_get = /ini_get\(['"](safe_mode|open_basedir|disable_function|safe_mode_exec_dir|safe_mode_include_dir|register_globals)['"]\)/ | ||
| 115 | |||
| 114 | $various = "<!--#exec cmd=" //http://www.w3.org/Jigsaw/Doc/User/SSI.html#exec | 116 | $various = "<!--#exec cmd=" //http://www.w3.org/Jigsaw/Doc/User/SSI.html#exec |
| 115 | $pr = /(preg_replace(_callback)?|mb_ereg_replace|preg_filter)\s*\(['"]\/[^\/]*\/e['"]/ // http://php.net/manual/en/function.preg-replace.php | 117 | $pr = /(preg_replace(_callback)?|mb_ereg_replace|preg_filter)\s*\(['"]\/[^\/]*\/e['"]/ // http://php.net/manual/en/function.preg-replace.php |
| 116 | $include = /include\([^\.]+\.(png|jpg|gif|bmp)/ // Clever includes | 118 | $include = /include\([^\.]+\.(png|jpg|gif|bmp)/ // Clever includes |
| @@ -119,6 +121,8 @@ rule DodgyPhp | |||
| 119 | $iniset_urlinclude = /ini_set\('allow_url_include,\ * 1'\)/ | 121 | $iniset_urlinclude = /ini_set\('allow_url_include,\ * 1'\)/ |
| 120 | $iis_com = /IIS:\/\/localhost\/w3svc/ | 122 | $iis_com = /IIS:\/\/localhost\/w3svc/ |
| 121 | $user_function = /(call_user_func|create_function)/ | 123 | $user_function = /(call_user_func|create_function)/ |
| 124 | $disable_magic_quotes = /set_magic_quotes_runtime\(0\)/ | ||
| 125 | |||
| 122 | 126 | ||
| 123 | condition: | 127 | condition: |
| 124 | (any of them or CloudFlareBypass) and not IsWhitelisted | 128 | (any of them or CloudFlareBypass) and not IsWhitelisted |
