forked from Yara-Rules/rules
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Yara-Rules#410 from manfred-kaiser/master
Added Rule for tweetable-polyglot-png
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
rule TweetablePolyglotPng { | ||
meta: | ||
description = "tweetable-polyglot-png: https://github.com/DavidBuchanan314/tweetable-polyglot-png" | ||
author = "Manfred Kaiser" | ||
strings: | ||
$magic1 = { 50 4b 01 02 } | ||
$magic2 = { 50 4b 03 04 } | ||
$magic3 = { 50 4b 05 06 } | ||
condition: | ||
( | ||
uint32be(0) == 0x89504E47 or | ||
uint32be(0) == 0xFFD8FFE0 | ||
) and | ||
$magic1 and | ||
$magic2 and | ||
$magic3 | ||
} |
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