File tree 3 files changed +27
-2
lines changed
3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,18 @@ rule RuleReferenceExample
42
42
condition :
43
43
SyntaxExample and $ hex_string
44
44
}
45
+
46
+ rule Yara4Example
47
+ {
48
+ meta :
49
+ description = " Example rule to test features added in version 4.0 "
50
+ strings :
51
+ $ b64name = " string " base64
52
+ $ b64wname = " string " base64wide
53
+ condition :
54
+ any of them
55
+ and pe .pdb_path == " C: \ fake_pdb_path "
56
+ and pe .dll_name == " library.dll "
57
+ and pe .export_timestamp == 000000000
58
+ and pe .exports_index (40 )
59
+ }
Original file line number Diff line number Diff line change 15
15
"DEBUG_STRIPPED" : " enum" ,
16
16
"DLL" : " enum" ,
17
17
"dll_characteristics" : " property" ,
18
+ "dll_name" : " property" ,
18
19
"DYNAMIC_BASE" : " enum" ,
19
20
"entry_point" : " property" ,
20
21
"EXECUTABLE_IMAGE" : " enum" ,
22
+ "export_timestamp" : " property" ,
23
+ "exports" : " method" ,
24
+ "export_details" : {
25
+ "offset" : " property" ,
26
+ "name" : " property" ,
27
+ "forward_name" : " property" ,
28
+ "ordinal" : " property"
29
+ },
30
+ "exports_index" : " method" ,
21
31
"file_alignment" : " property" ,
22
32
"FORCE_INTEGRITY" : " enum" ,
23
- "exports" : " method" ,
24
33
"id" : " property" ,
25
34
"image_base" : " property" ,
26
35
"IMAGE_DIRECTORY_ENTRY_BASERELOC" : " enum" ,
103
112
"offset" : " property" ,
104
113
"size" : " property"
105
114
},
115
+ "pdb_path" : " property" ,
106
116
"pointer_to_symbol_table" : " property" ,
107
117
"RELOCS_STRIPPED" : " enum" ,
108
118
"REMOVABLE_RUN_FROM_SWAP" : " enum" ,
Original file line number Diff line number Diff line change 269
269
<key >name </key >
270
270
<string >storage.modifier.yara </string >
271
271
<key >match </key >
272
- <string >(\bfullword\b|\bglobal\b|\bnocase\b|\bprivate\b|\bwide\b|\bxor\b) </string >
272
+ <string >(\bbase64\b|\bbase64wide\b|\ bfullword\b|\bglobal\b|\bnocase\b|\bprivate\b|\bwide\b|\bxor\b) </string >
273
273
</dict >
274
274
<!-- Data Types - Integer -->
275
275
<dict >
You can’t perform that action at this time.
0 commit comments