Skip to content

Commit 46a3dd9

Browse files
authored
Allow echo_decode_bash* to execute on larger files (#924)
1 parent 8c381b3 commit 46a3dd9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rules/anti-static/base64/exec.yara

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ rule echo_decode_bash: critical {
6767
$redir = /base64 {0,2}(-d|--decode) {0,2}\>.{0,16}[\;\&]\s{0,2}(bash|zsh|sh)/ fullword
6868
6969
condition:
70-
filesize < 256KB and any of them
70+
filesize < 10MB and any of them
7171
}
7272

7373
import "math"
@@ -81,7 +81,7 @@ rule echo_decode_bash_probable: high {
8181
$shell = /(bash|zsh|sh)/ fullword
8282
8383
condition:
84-
filesize < 256KB and any of them and (@shell[#shell] - @decode[#decode]) < 32 and (@shell[#shell] - @decode[#decode]) > 0
84+
filesize < 3MB and any of them and (@shell[#shell] - @decode[#decode]) < 32 and (@shell[#shell] - @decode[#decode]) > 0
8585
}
8686

8787
rule ruby_system_near_enough: critical {

0 commit comments

Comments
 (0)