diff options
| author | jvoisin | 2015-07-29 11:58:22 +0200 |
|---|---|---|
| committer | Mathieu Deous | 2015-10-29 14:54:45 +0100 |
| commit | 07532c1fb1b36baaee81985e3e6d22ad2bb718c3 (patch) | |
| tree | ddfe2dab89c850f07f109ca34044eec0d6bae9ac | |
| parent | 159caaf4c8d84adc103a51ba1be320811b68d550 (diff) | |
Add some more dodgy functions
| -rw-r--r-- | malwares.yara | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/malwares.yara b/malwares.yara index 0f4a95f..02d7127 100644 --- a/malwares.yara +++ b/malwares.yara | |||
| @@ -108,7 +108,7 @@ rule DodgyPhp | |||
| 108 | $shellshock = /putenv\(["']PHP_[^=]=\(\) { [^}] };/ | 108 | $shellshock = /putenv\(["']PHP_[^=]=\(\) { [^}] };/ |
| 109 | $restore_bypass = /ini_restore\(['"](safe_mode|open_basedir)['"]\)/ | 109 | $restore_bypass = /ini_restore\(['"](safe_mode|open_basedir)['"]\)/ |
| 110 | $various = "<!--#exec cmd=" //http://www.w3.org/Jigsaw/Doc/User/SSI.html#exec | 110 | $various = "<!--#exec cmd=" //http://www.w3.org/Jigsaw/Doc/User/SSI.html#exec |
| 111 | $pr = /preg_replace\s*\(['"]\/[^\/]*\/e['"]/ // http://php.net/manual/en/function.preg-replace.php | 111 | $pr = /(preg_replace(_callback)?|mb_ereg_replace|preg_filter)\s*\(['"]\/[^\/]*\/e['"]/ // http://php.net/manual/en/function.preg-replace.php |
| 112 | $include = /include\([^\.]+\.(png|jpg|gif|bmp)/ // Clever includes | 112 | $include = /include\([^\.]+\.(png|jpg|gif|bmp)/ // Clever includes |
| 113 | $htaccess = "SetHandler application/x-httpd-php" | 113 | $htaccess = "SetHandler application/x-httpd-php" |
| 114 | $udp_dos = /sockopen\s*\(['"]udp:\/\// | 114 | $udp_dos = /sockopen\s*\(['"]udp:\/\// |
| @@ -148,6 +148,12 @@ rule DangerousPhp | |||
| 148 | $ = "show_source" fullword | 148 | $ = "show_source" fullword |
| 149 | $ = "pcntl_exec" fullword | 149 | $ = "pcntl_exec" fullword |
| 150 | $ = "array_filter" fullword | 150 | $ = "array_filter" fullword |
| 151 | $ = "call_user_func" fullword | ||
| 152 | $ = "register_shutdown_function" fullword | ||
| 153 | $ = "register_tick_function" fullword | ||
| 154 | $ = /ob_start\s*\(\s*['"]/ //ob_start('assert'); echo $_REQUEST['pass']; ob_end_flush(); | ||
| 155 | $ = "mb_ereg_replace_callback" fullword | ||
| 156 | $ = "preg_replace_callback" fullword | ||
| 151 | 157 | ||
| 152 | $whitelist = /escapeshellcmd|escapeshellarg/ | 158 | $whitelist = /escapeshellcmd|escapeshellarg/ |
| 153 | 159 | ||
