mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
Added encoded versions of '_' character.
Added encoded versions of '_' character.
This commit is contained in:
@@ -20,6 +20,12 @@ echo\s+file_get_contents\s*\(\s*base64_url_decode\s*\(\s*@*\$_(GET|POST|SERVER|C
|
|||||||
chr\s*\(\s*101\s*\)\s*\.\s*chr\s*\(\s*118\s*\)\s*\.\s*chr\s*\(\s*97\s*\)\s*\.\s*chr\s*\(\s*108\s*\)
|
chr\s*\(\s*101\s*\)\s*\.\s*chr\s*\(\s*118\s*\)\s*\.\s*chr\s*\(\s*97\s*\)\s*\.\s*chr\s*\(\s*108\s*\)
|
||||||
(\$OOO_O_000_\{\d+\}.){3,}
|
(\$OOO_O_000_\{\d+\}.){3,}
|
||||||
|
|
||||||
|
#Detects the '_' character encoded in a string like "\x5F". '_' is present in many functions that malware would want to hide.
|
||||||
|
\\[Xx](5[Ff])
|
||||||
|
|
||||||
|
#Detects the '_' character placed inside a call to the 'chr()' function
|
||||||
|
chr\s*\(\s*['"]?\s*((95)|(0[Xx]5[Ff]))\s*['"]?\s*\)
|
||||||
|
|
||||||
#Detects generic base64 strings longer than 260 characters enclosed in quotes ending with 0-3 '=' chars.
|
#Detects generic base64 strings longer than 260 characters enclosed in quotes ending with 0-3 '=' chars.
|
||||||
#260 was a threshold chosen because strings of 256 characters are common enough. Might increase later to reduce false positives.
|
#260 was a threshold chosen because strings of 256 characters are common enough. Might increase later to reduce false positives.
|
||||||
['"][A-Za-z0-9+\/]{260,}={0,3}['"]
|
['"][A-Za-z0-9+\/]{260,}={0,3}['"]
|
||||||
|
|||||||
Reference in New Issue
Block a user