Edit: /opt/imh-scan/sigs/heuri/heuristic.yara (1842B)
rule heuristic_php_suspicious_log
{
strings:
$a = "@error_reporting(0)"
$b = "@set_time_limit(0)"
$c = "gzinflate(substr"
$d = "ini_set('error_log', NULL"
$e = "ini_set('log_errors', 0)"
condition:
$a and ($b or $c or $d or $e)
}
rule heuristic_php_uploader
{
strings:
$a = /@file_put_contents.{,80},base64_decode\(file_get_contents\($_POST\["."\]\)\)\);/
condition:
any of them
}
rule heuristic_php_suspicious
{
strings:
$a = /[^ ]=str_ireplace\(".","","/
condition:
PHP_MAGIC and $a in (0..30)
}
rule heuristic_php_dictionary
{
strings:
// Matches:
//