I wrote condition in YARA rule like this pe.entry_point == {12 A5 26}
but I am getting unexpected _HEX_STRING_ error
. What is the problem? How can I get address of entry_point
? What is the type of output of pe.entry_point
?
How can I use pe.entry_point to write YARA rules?
982 views Asked by Pasazade At
2
pe.entry_point
is aDWORD
found inIMAGE_OPTIONAL_HEADER
.The implementation of this function (that is, how Yara retrieves the
pe.entry_point
value from portable executable files) is available on the Yara Github page.Regarding the error you encountered, try changing the rule to
pe.entry_point == 0x12A526
. I'm basing this suggestion off the sample test rule here.