Class ImportHash
- Namespace
- AsmResolver.PE.Imports
- Assembly
- AsmResolver.PE.dll
Provides an implementation of the import hash (ImpHash) introduced by Mandiant.
Reference: https://www.fireeye.com/blog/threat-research/2014/01/tracking-malware-import-hashing.html
public static class ImportHash
- Inheritance
-
ImportHash
- Inherited Members
Methods
GetImportHash(PEImage)
Computes the hash of all imported symbols.
public static byte[] GetImportHash(this PEImage image)
Parameters
image
PEImageThe image to get the import hash from.
Returns
- byte[]
The hash.
Remarks
This is the ImpHash as introduced by Mandiant. Reference: https://www.fireeye.com/blog/threat-research/2014/01/tracking-malware-import-hashing.html
GetImportHash(PEImage, ISymbolResolver)
Computes the hash of all imported symbols.
public static byte[] GetImportHash(this PEImage image, ISymbolResolver symbolResolver)
Parameters
image
PEImageThe image to get the import hash from.
symbolResolver
ISymbolResolverThe object responsible for resolving symbols imported by ordinal.
Returns
- byte[]
The hash.
Remarks
This is the ImpHash as introduced by Mandiant. Reference: https://www.fireeye.com/blog/threat-research/2014/01/tracking-malware-import-hashing.html