From 3aea5b3b3e4da79420037e12e3884d0c30bd92f0 Mon Sep 17 00:00:00 2001 From: Julien "shaddai" Reveret Date: Thu, 3 Dec 2015 17:51:09 +0100 Subject: added double base64 encoding detection --- php-malware-finder/malwares.yara | 1 + 1 file changed, 1 insertion(+) 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 { strings: $vars = /\$__+/ // $__ is rarely used in legitimate scripts + $double_encoding = /(base64_decode\s*\(\s*){2}/ $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))/ $basedir_bypass = /(curl_init\([\"']file:[\"']|file:file:\/\/)/ $safemode_bypass = /\x00\/\.\.\/|LD_PRELOAD/ -- cgit v1.3