Using PE header information for static analysis
Now that we’ve covered the PE header, dynamic link libraries, and APIs, the question that arises is, How can we use this information in our static analysis? This depends on the questions that you want to answer, so that is what we will cover here.
How to use the PE header for incident handling
If an incident occurs, static analysis of the PE header can help you answer multiple questions in your report. Here are the questions and how the PE header can help you answer them:
- Is this malware packed?
The PE header can help you figure out if this malware is packed. Packers tend to change section names from their familiar names (.text
, .data
, and .rsrc
) to something else, such as UPX0
or .aspack
.
In addition, packers commonly hide most of the APIs otherwise expected to be present in the import table. So, if you see that the import table contains very few APIs, that could be another sign of packing being involved...