diff --git a/analyzer/windows/analyzer.py b/analyzer/windows/analyzer.py index 80752c81e8e..8444dd9aaeb 100644 --- a/analyzer/windows/analyzer.py +++ b/analyzer/windows/analyzer.py @@ -496,14 +496,15 @@ def run(self): # Initialize Auxiliary modules Auxiliary() prefix = f"{auxiliary.__name__}." + windows_modules = ("human", "screenshots", "sysmon") for _, name, _ in pkgutil.iter_modules(auxiliary.__path__, prefix): try: mod_name = name.split(".")[-1] - if hasattr(self.config, mod_name) and getattr(self.config, mod_name, False): - log.debug('Importing auxiliary module "%s"...', name) - __import__(name, globals(), locals(), ["dummy"]) - # log.debug('Imported auxiliary module "%s"', name) + if mod_name in windows_modules: + mod_name += "_windows" + # if hasattr(self.config, mod_name) and getattr(self.config, mod_name, False): + # log.debug('Imported auxiliary module "%s"', name) except ImportError as e: log.warning('Unable to import the auxiliary module "%s": %s', name, e) diff --git a/tests/data b/tests/data index b394a00ba36..7c38432d1cc 160000 --- a/tests/data +++ b/tests/data @@ -1 +1 @@ -Subproject commit b394a00ba3649afc69e7f22ad845a3a8a659200e +Subproject commit 7c38432d1cceb6231766227ef45b1321315d3aaf