diff options
| -rw-r--r-- | malwares.yara | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/malwares.yara b/malwares.yara index cd8a789..352d084 100644 --- a/malwares.yara +++ b/malwares.yara | |||
| @@ -60,8 +60,9 @@ rule ObfuscatedPhp | |||
| 60 | $oneliner = /<\?php\s*\n*\r*\s*(eval|preg_replace|system|exec)\(/ | 60 | $oneliner = /<\?php\s*\n*\r*\s*(eval|preg_replace|system|exec)\(/ |
| 61 | $weevely3 = /\$\w=\$[a-zA-Z]\('',\$\w\);\$\w\(\);/ // weevely3 launcher | 61 | $weevely3 = /\$\w=\$[a-zA-Z]\('',\$\w\);\$\w\(\);/ // weevely3 launcher |
| 62 | $launcher = /;\$\w+\(\$\w+(,\s?\$\w+)+\);/ // http://bartblaze.blogspot.fr/2015/03/c99shell-not-dead.html | 62 | $launcher = /;\$\w+\(\$\w+(,\s?\$\w+)+\);/ // http://bartblaze.blogspot.fr/2015/03/c99shell-not-dead.html |
| 63 | $danone = /\$s20=strtoupper\((\$[0-9A-Za-z]{1,4}\[\d+\]\.){2,9}[^\)]*\);if/ | ||
| 63 | condition: | 64 | condition: |
| 64 | IsPhp and ($align or $oneliner or $eval or $launcher or #vars > 5 or $weevely3) | 65 | IsPhp and ($align or $oneliner or $eval or $launcher or #vars > 5 or $weevely3 or $danone) |
| 65 | } | 66 | } |
| 66 | 67 | ||
| 67 | private rule base64 | 68 | private rule base64 |
