diff --git a/capa/features/extractors/dnfile/extractor.py b/capa/features/extractors/dnfile/extractor.py index 7f7faa49..5d34b7cf 100644 --- a/capa/features/extractors/dnfile/extractor.py +++ b/capa/features/extractors/dnfile/extractor.py @@ -93,6 +93,9 @@ class DnfileFeatureExtractor(StaticFeatureExtractor): def get_base_address(self): return NO_ADDRESS + def get_sample_hashes(self) -> SampleHashes: + return self.sample_hashes + def extract_global_features(self): yield from self.global_features diff --git a/capa/features/extractors/dnfile_.py b/capa/features/extractors/dnfile_.py index 38e95b87..d18c325d 100644 --- a/capa/features/extractors/dnfile_.py +++ b/capa/features/extractors/dnfile_.py @@ -91,6 +91,9 @@ class DnfileFeatureExtractor(StaticFeatureExtractor): def get_base_address(self) -> AbsoluteVirtualAddress: return AbsoluteVirtualAddress(0x0) + def get_sample_hashes(self) -> SampleHashes: + return self.sample_hashes + def get_entry_point(self) -> int: # self.pe.net.Flags.CLT_NATIVE_ENTRYPOINT # True: native EP: Token diff --git a/capa/features/extractors/dotnetfile.py b/capa/features/extractors/dotnetfile.py index 987fad5b..70789598 100644 --- a/capa/features/extractors/dotnetfile.py +++ b/capa/features/extractors/dotnetfile.py @@ -175,6 +175,9 @@ class DotnetFileFeatureExtractor(StaticFeatureExtractor): def get_base_address(self): return NO_ADDRESS + def get_sample_hashes(self) -> SampleHashes: + return self.sample_hashes + def get_entry_point(self) -> int: # self.pe.net.Flags.CLT_NATIVE_ENTRYPOINT # True: native EP: Token