fix: add missing capa.features.extractors.elf import to ghidra and ida helpers

Without this import, any ELF analysis via the Ghidra or IDA plugin raises
AttributeError: module 'capa.features.extractors' has no attribute 'elf'.
This commit is contained in:
Willi Ballenthin
2026-04-22 20:25:13 +03:00
committed by Willi Ballenthin
parent 7406e75f96
commit f5383da728
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -48,6 +48,9 @@
- fix: remove unreachable backports.functools_lru_cache fallback and dead dependency @williballenthin
- fix: Scopes.from_dict uses cls instead of self so subclasses return the correct type @williballenthin
- fix: correct wrong dict key in VMRay _compute_monitor_threads assertion (used thread_id instead of process_id) @williballenthin
fix: replace assert with isinstance guard in get_callee for invalid MethodSpec tokens @williballenthin
- fix: replace assert with isinstance guard in get_callee for invalid MethodSpec tokens @williballenthin
- fix: add missing capa.features.extractors.elf import to ghidra/helpers.py and ida/helpers.py @williballenthin (SURF-71)
- fix: remove dead view_tab_rulegen assignment from CapaExplorerForm that was never read @williballenthin (SURF-70)
- fix: remove dead reset_query method from CapaExplorerSearchProxyModel that was never called @williballenthin (SURF-69)
- fix: remove unused imports of capa.rules and capa.engine from view.py @williballenthin (SURF-68)
+1
View File
@@ -22,6 +22,7 @@ import capa.version
import capa.features.common
import capa.features.freeze
import capa.render.result_document as rdoc
import capa.features.extractors.elf
import capa.features.extractors.ghidra.context as ghidra_context
import capa.features.extractors.ghidra.helpers
from capa.features.address import AbsoluteVirtualAddress
+1
View File
@@ -31,6 +31,7 @@ import capa.version
import capa.render.utils as rutils
import capa.features.freeze
import capa.render.result_document as rdoc
import capa.features.extractors.elf
from capa.features.address import AbsoluteVirtualAddress
logger = logging.getLogger("capa")