Merge pull request #345 from tstromberg/fix-yara-err

recently downloaded go-crypt: Fix YARA error
This commit is contained in:
Thomas Strömberg 2024-01-09 17:23:04 -05:00 committed by GitHub
commit de2bdd3fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -37,10 +37,11 @@ WHERE
$s_aes = "crypto/aes.newCipher"
$s_run = "os/exec.(*Cmd).Run" ascii
$s_exec = "os/exec.Command" ascii
$not_analysis = "Dynamic Section"
$dynamic = "Dynamic Section"
condition:
3 of ($s*) and none of ($not*)
}'
3 of ($s*) and not $dynamic
}
'
AND yara.count > 0
AND file.path NOT LIKE '/Users/%/Downloads/chainctl%'
AND file.filename NOT IN ('grype', 'chainctl', 'elastic-agent')