Closed kirk-sayre-work closed 2 years ago
here a bit more context
File "/usr/local/lib/python3.9/site-packages/XLMMacroDeobfuscator/xlsm_wrapper.py", line 268, in load_macro_cells
if not hasattr(macrosheet_obj.xm_macrosheet.sheetData, 'row'):
File "/usr/local/lib/python3.9/site-packages/untangle.py", line 82, in __getattr__
raise AttributeError(
AttributeError: 'None' has no attribute 'xm_macrosheet'
>>> dir(macrosheet_obj)
['worksheet']
>>> macrosheet_obj.xm_macrosheet
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/untangle.py", line 82, in __getattr__
raise AttributeError(
AttributeError: 'None' has no attribute 'xm_macrosheet'
RCA:
Normal XLM macrosheet looks like this:
The emotet macrosheet looks like this (instead of having xm:macroosheet as the root element it has worksheet element):
despite saying worksheet, this is a macrosheet
The extraction issue is resolved. But still another issue prevents xlmdeobfuscator to emulate this instance. As such I will keep this issue open.
xlmdeobfuscator -x
fails with aError [deobfuscator.py:3189 process_file(**vars(args))]: 'None' has no attribute 'xm_macrosheet'
error on recent (2/4/2022) Emotet Excel samples. Some example Emotet file hashes are9ddac5c4281f20c330439fae9bcbd8d6693b80083fa10894bb9ce002c2015399
and77ee213b8790da89694d63a2288e223450c67fa75c82aceb968625c509154937
.