Export library name mismatch

ID PE004 Level INFO Category Configuration

Description

A portable executable export directory contains a string, which indicates the library name. This library name does not match the file name of the executable.

This is allowed and will not cause any issues when using the library. However, it may disclose the original name of the library, which may not be desired in some cases.

Mitigation

  • Do not rename the executable after building it.
  • If using a DEF file for building a library, make sure to specify the matching name in the LIBRARY option.

Arguments

This rule has the following output arguments:

  • file_name - Executable file name
  • library_name - Library name in the export directory