-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce some random Linux false positives (#501)
- Loading branch information
1 parent
1fe7d0f
commit 4b04854
Showing
5 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
rule js_char_code_at : high { | ||
rule js_char_code_at : medium { | ||
meta: | ||
description = "converts strings into integers" | ||
filetypes = "javascript" | ||
strings: | ||
$charCodeAt = "fromCharCode" fullword | ||
condition: | ||
any of them | ||
filesize < 16KB and any of them | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
rule reversed_function_names : critical { | ||
rule small_reversed_function_names : critical { | ||
meta: | ||
description = "Contains function names in reverse" | ||
credit = "Initially ported from https://github.com/jvoisin/php-malware-finder" | ||
filetypes = "php" | ||
strings: | ||
$php = "<?php" | ||
$create_function = "create_function" | ||
$r_system = "metsys" | ||
$r_passthru = "urhtssap" | ||
$r_include = "edulcni" | ||
$r_shell_execute = "etucexe_llehs" | ||
$r_base64_decode = "edoced_46esab" | ||
condition: | ||
$create_function and any of ($r*) | ||
filesize < 64KB and $php and $create_function and any of ($r*) | ||
} | ||
|
||
rule strrev_short : medium { | ||
meta: | ||
description = "calls strrev on a short string" | ||
filetypes = "php" | ||
strings: | ||
$strrev = /strrev\(['"][\w\=]{0,5}]'"]\)/ | ||
condition: | ||
$strrev | ||
filesize < 32KB and $strrev | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters