We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 798ad25 commit be9ffacCopy full SHA for be9ffac
Embedded_PE.rule
@@ -9,6 +9,6 @@ rule Embedded_PE
9
condition:
10
for any i in (1..#mz):
11
(
12
- uint32(@mz[i] + uint32(@mz[i] + 0x3C)) == 0x00004550
+ @mz[i] != 0 and uint32(@mz[i] + uint32(@mz[i] + 0x3C)) == 0x00004550
13
)
14
}
PE.rule
@@ -0,0 +1,14 @@
1
+rule Embedded_PE
2
+{
3
+ meta:
4
+ Author = "InQuest Labs"
5
+ URL = "https://github.com/InQuest/yara-rules"
6
+ Description = "Discover embedded PE files, without relying on easily stripped/modified header strings."
7
+ strings:
8
+ $mz = { 4D 5A }
+ condition:
+ for any i in (1..#mz):
+ (
+ uint32(@mz[i] + uint32(@mz[i] + 0x3C)) == 0x00004550
+ )
+}
0 commit comments