mirror of
https://github.com/valitydev/signature-base.git
synced 2024-11-06 18:15:20 +00:00
Merge pull request #26 from JohnLaTwC/patch-2
yara rule for encoded python payloads for adware
This commit is contained in:
commit
37ccc0a471
20
yara/gen_python_encoded_adware
Normal file
20
yara/gen_python_encoded_adware
Normal file
@ -0,0 +1,20 @@
|
||||
rule gen_python_encoded_adware
|
||||
{
|
||||
meta:
|
||||
description = "Encoded Python payload for adware"
|
||||
author = "John Lambert @JohnLaTwC"
|
||||
date = "2018-03-07"
|
||||
hash = "5d7239be779367e69d2e63ffd9dc6e2a1f79c4e5c6c725e8c5e59a44c0ab2fff"
|
||||
reference = "https://twitter.com/JohnLaTwC/status/949048002466914304"
|
||||
|
||||
strings:
|
||||
$r1 = "=__import__(\"base64\").b64decode"
|
||||
$r2 = ")))))"
|
||||
$s1 = "bytes(map(lambda"
|
||||
$s2 = "[1]^"
|
||||
condition:
|
||||
filesize < 100KB
|
||||
and @r1 < 100
|
||||
and @r2 > (filesize - 30)
|
||||
and all of them
|
||||
}
|
Loading…
Reference in New Issue
Block a user