Open robert-scheck opened 3 years ago
The regression was introduced by commit ca75f0085104d01bddb283a53bd9c6af6affbf92, because:
$ wget -q https://raw.githubusercontent.com/decalage2/oletools/f56062def0e72718201c50392d866c2cdbeb3b7e/oletools/mraptor.py -O mraptor-f56062d.py
$ python3 mraptor-f56062d.py virusexcel.xlsm
MacroRaptor 0.54dev14 - http://decalage.info/python/oletools
This is work in progress, please report issues at https://github.com/decalage2/oletools/issues
----------+-----+----+--------------------------------------------------------
Result |Flags|Type|File
----------+-----+----+--------------------------------------------------------
SUSPICIOUS|AWX |OpX:|virusexcel.xlsm
Flags: A=AutoExec, W=Write, X=Execute
Exit code: 20 - SUSPICIOUS
$
$ wget -q https://raw.githubusercontent.com/decalage2/oletools/ca75f0085104d01bddb283a53bd9c6af6affbf92/oletools/mraptor.py -O mraptor-ca75f00.py
$ python3 mraptor-ca75f00.py virusexcel.xlsm
MacroRaptor 0.54dev14 - http://decalage.info/python/oletools
This is work in progress, please report issues at https://github.com/decalage2/oletools/issues
----------+-----+----+--------------------------------------------------------
Result |Flags|Type|File
----------+-----+----+--------------------------------------------------------
Macro OK |-WX |OpX:|virusexcel.xlsm
Flags: A=AutoExec, W=Write, X=Execute
Exit code: 2 - Macro OK
$
From my point of view the regular expression in line 120 was adapted wrongly.
Are there any updates on that topic?
The
mraptor-2
command uses Python 2.7, themraptor-3
uses Python 3.6, both on CentOS 7 (x86_64). The file is indeed the same, and the file still should be treated as malicious, thus this issue seems to be a regression inmraptor
introduced somewhen after oletools 0.51.Interestingly,
olevba
seems to treat the file still right, so the issue might be limited tomraptor
?