summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--php-malware-finder/common.yar15
1 files changed, 14 insertions, 1 deletions
diff --git a/php-malware-finder/common.yar b/php-malware-finder/common.yar
index ae2b784..2b0cd7d 100644
--- a/php-malware-finder/common.yar
+++ b/php-malware-finder/common.yar
@@ -56,10 +56,23 @@ private rule hex
56 any of them 56 any of them
57} 57}
58 58
59private rule strrev
60{
61 strings:
62 $globals = "slabolg" nocase fullword
63 $preg_replace = "ecalper_gerp" nocase fullword
64 $base64_decode = "edoced_46esab" nocase fullword
65 $gzinflate = "etalfnizg" nocase fullword
66
67 condition:
68 any of them
69}
70
71
59rule SuspiciousEncoding 72rule SuspiciousEncoding
60{ 73{
61 condition: 74 condition:
62 base64 or hex 75 base64 or hex or strrev
63} 76}
64 77
65rule DodgyStrings 78rule DodgyStrings