PE Files: Feature Engineering – Solution

Steps to solving this project are:

  • Extract all files
  • Install the pefile Python library
  • Import and read in the files into pefile
pe = pefile.PE(desired_file)
  • Iterate through the features you need
  • For example,
for section in pe.sections:
    print (section.Name)

and

for entry in pe.DIRECTORY_ENTRY_IMPORT:
    print(entry.dll)
  • Save and organize all of this data

Leave a Reply