-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from the-siegfried/14-implement-yara-keyword-s…
…earch 14 implement yara keyword search
- Loading branch information
Showing
6 changed files
with
189 additions
and
28 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
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,3 +1,5 @@ | ||
pysocks | ||
beautifulsoup4>=4.7.1 | ||
requests>=2.21.0 | ||
yara | ||
lxml |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
Yara. | ||
*/ | ||
|
||
/* | ||
rule email_filter | ||
{ | ||
meta: | ||
author = "@the-siegfried" | ||
score = 20 | ||
strings: | ||
$email_add = /\b[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)*\.[a-zA-Z-]+[\w-]\b/ | ||
condition: | ||
any of them | ||
} | ||
*/ | ||
|
||
rule keyword_search | ||
{ | ||
meta: | ||
author = "@the-siegfried" | ||
score = 90 | ||
|
||
strings: | ||
$a = "Keyword1" fullword wide ascii nocase | ||
$b = "Keyword Two" wide ascii nocase | ||
$c = "kw 3" ascii | ||
$d = "KEYWORD four" nocase | ||
$e = "google-" nocase | ||
condition: | ||
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