summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2015-07-29 11:58:22 +0200
committerjvoisin2015-07-29 11:58:22 +0200
commitd44eb84ad1492f70555c20c49a7f39d8e5b9409f (patch)
tree73b95564a97a2c93fae3664c8b5fbf558cfc3e0f
parent4b5c3a018259afa8f1700e29a08119367385e15b (diff)
Add some more dodgy functions
-rw-r--r--malwares.yara8
1 files changed, 7 insertions, 1 deletions
diff --git a/malwares.yara b/malwares.yara
index b376307..d2b8362 100644
--- a/malwares.yara
+++ b/malwares.yara
@@ -107,7 +107,7 @@ rule DodgyPhp
107 $shellshock = /putenv\(["']PHP_[^=]=\(\) { [^}] };/ 107 $shellshock = /putenv\(["']PHP_[^=]=\(\) { [^}] };/
108 $restore_bypass = /ini_restore\(['"](safe_mode|open_basedir)['"]\)/ 108 $restore_bypass = /ini_restore\(['"](safe_mode|open_basedir)['"]\)/
109 $various = "<!--#exec cmd=" //http://www.w3.org/Jigsaw/Doc/User/SSI.html#exec 109 $various = "<!--#exec cmd=" //http://www.w3.org/Jigsaw/Doc/User/SSI.html#exec
110 $pr = /preg_replace\s*\(['"]\/[^\/]*\/e['"]/ // http://php.net/manual/en/function.preg-replace.php 110 $pr = /(preg_replace(_callback)?|mb_ereg_replace|preg_filter)\s*\(['"]\/[^\/]*\/e['"]/ // http://php.net/manual/en/function.preg-replace.php
111 $include = /include\([^\.]+\.(png|jpg|gif|bmp)/ // Clever includes 111 $include = /include\([^\.]+\.(png|jpg|gif|bmp)/ // Clever includes
112 $htaccess = "SetHandler application/x-httpd-php" 112 $htaccess = "SetHandler application/x-httpd-php"
113 $udp_dos = /sockopen\s*\(['"]udp:\/\// 113 $udp_dos = /sockopen\s*\(['"]udp:\/\//
@@ -147,6 +147,12 @@ rule DangerousPhp
147 $ = "show_source" fullword 147 $ = "show_source" fullword
148 $ = "pcntl_exec" fullword 148 $ = "pcntl_exec" fullword
149 $ = "array_filter" fullword 149 $ = "array_filter" fullword
150 $ = "call_user_func" fullword
151 $ = "register_shutdown_function" fullword
152 $ = "register_tick_function" fullword
153 $ = /ob_start\s*\(\s*['"]/ //ob_start('assert'); echo $_REQUEST['pass']; ob_end_flush();
154 $ = "mb_ereg_replace_callback" fullword
155 $ = "preg_replace_callback" fullword
150 156
151 $whitelist = /escapeshellcmd|escapeshellarg/ 157 $whitelist = /escapeshellcmd|escapeshellarg/
152 158