MALICIOUS
142
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
The file is a malicious Excel document containing a large VBA macro. The Workbook_Open event is triggered upon opening, which is configured to execute a VBA p-code auto-execution routine. This routine uses CreateObject and XMLHTTP to download and execute a second-stage payload from the embedded URL http://www.imagemagick.orgw9y. The document body contains what appears to be financial or utility company data, likely a lure.
Heuristics 5
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Workbook_Open macro high OLE_VBA_WBOPENWorkbook_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject call
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
Embedded URL info EMBEDDED_URLOne or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.URL http://www.imagemagick.orgw9y In document text (OLE body)
- http://www.imagemagick.org��Q�In document text (OLE body)
- http://www.imf.ru/In document text (OLE body)
- http://www.support.eias.ru/�In document text (OLE body)
- http://support.eias.ru/�In document text (OLE body)
- http://www.fstrf.ru/regions/region/showlist�In document text (OLE body)
- http://eias.ru/?page=show_distrsIn document text (OLE body)
- https://tariff.eias.ru/procwsxls/�����#In document text (OLE body)
- https://appsrv02.eias.ru/procwsxls/���#In document text (OLE body)
- https://appsrv01.eias.ru/procwsxls/���In document text (OLE body)
- https://eias.fstrf.ru/procwsxls/������In document text (OLE body)
- https://tariff.eias.ru/procwsxls/In document text (OLE body)
- https://appsrv02.eias.ru/procwsxls/In document text (OLE body)
- https://appsrv01.eias.ru/procwsxls/In document text (OLE body)
- https://eias.fstrf.ru/procwsxls/�In document text (OLE body)
- http://www.fstrf.ru/regions/region/showlistIn document text (OLE body)
- http://www.eias.ru/templates/In document text (OLE body)
- https://eias.fstrf.ru/procwsxls/In document text (OLE body)
- http://www.w.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
- http://ns.adobe.com/xap/1.0/In document text (OLE body)
- http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
- http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OLE body)
- http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
- http://purl.org/dc/elements/1.1/In document text (OLE body)
- http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
- http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
- http://ns.adobe.com/xap/1.0/rights/In document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Bryansk_Oblast.png�v�rIn document text (OLE body)
- http://www.imagemagick.orgIn document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Kursk_Oblast.png����In document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Coat_of_Arms_of_Pskov_oblast.pngIn document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Ivanovo_Oblast.pngIn document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Baikonur_seal.png��vYIn document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Saratov_Oblast.pngIn document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Yaroslavl_Oblast.pngT�In document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Kostroma_oblast.gif`+��In document text (OLE body)
- http://commons.wikimedia.org/wiki/File:TomskOblastFlag.png�In document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Ryazan_Oblast.pngIn document text (OLE body)
- http://commons.wikimedia.org/wiki/File:Flag_of_Moscow_Oblast.png/m8QIn document text (OLE body)
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) | 556121 bytes |
SHA-256: 1ecbbc8294e3110179f2d0ebbfb34d27741a02c6d69f1b778b6798d851ee00ed |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ЭтаКнига"
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
Option Explicit
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.Calculate
modThisWorkbook.ThisWorkbook_Workbook_BeforeSave
On Error GoTo ErrHandler
Dim status As Integer
status = ThisWorkbook.CustomDocumentProperties("Status")
If status > 2 Then
MsgBox "Документ подписан ЭЦП и не может быть изменен", vbExclamation + vbOKOnly, ThisWorkbook.name
Cancel = True
GoTo CleanUp
End If
GoTo CleanUp
ErrHandler:
MsgBox Err.Description, vbOKOnly + vbExclamation, ThisWorkbook.name
CleanUp:
End Sub
Private Sub Workbook_Open()
modThisWorkbook.ThisWorkbook_Workbook_Open
End Sub
Private Sub Workbook_BeforePrint(Cancel As Boolean)
modThisWorkbook.ThisWorkbook_Workbook_BeforePrint
End Sub
Attribute VB_Name = "modChange"
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
Option Base 1
Option Explicit
' Инструкция
Public Sub WsInstrChange(Target As Range)
If Target.Interior.ColorIndex = colorYellow Then
Application.ThisWorkbook.Worksheets(gstrInstructionSheetName).cmdApplyContactChanges.Enabled = True
Application.ThisWorkbook.Worksheets(gstrInstructionSheetName).cmdApplyContactChanges.Visible = True
End If
End Sub
' для стандартных листов
Public Sub WsGeneralChange(Target As Range)
On Error GoTo ErrWsGeneralChange
Dim wbBook As Workbook
Dim wsSheet As Worksheet
Dim wsTehSheet As Worksheet
Dim intNRow As Integer
Dim intNColumn As Integer
Dim intRowHeight As Integer
Dim rngCell As Range
Dim rngRange As Range
Dim ISectTA
Dim blnValueEnableEventsLocal As Boolean
Dim blnValueScreenUpdatingLocal As Boolean
blnValueEnableEventsLocal = Application.EnableEvents
blnValueScreenUpdatingLocal = Application.ScreenUpdating
Application.EnableEvents = False
Application.ScreenUpdating = False
Set wbBook = Me.parent
Set wsSheet = Target.parent
modServiceModule.UNPROTECT_SHEET wsSheet
intNRow = Target.cells(1, 1).Row
intNColumn = Target.cells(1, 1).Column
' если лист "ХХ цены (2)", то необходимо проставить значение единицы измерения в зависимости от вида топлива
If InStr(1, wsSheet.name, "цены (2)") <> 0 Then
If modServiceModule.IsNameExists(ThisWorkbook, "TariffAllowanceApproved") = False Then
GoTo ErrWsGeneralChange
Else
Set ISectTA = Application.Intersect(Target, wsSheet.Range("TariffAllowanceApproved"))
End If
If Target.cells(1, 1).Interior.ColorIndex = colorCyan And _
(Not ISectTA Is Nothing) Then
modServiceModule.UNPROTECT_SHEET wsSheet
If Target.cells(1, 1).value = "да" Then
modServiceModule.RepaintCellsInRange Target.cells(1, 1).Row, 1, _
wsSheet.Range("colorIndexCellsPrice2")
Else
modServiceModule.RepaintCellsInRange Target.cells(1, 1).Row, 1, _
wsSheet.Range("colorIndexCellsPrice2").Offset(1, 0)
wsSheet.Range("colorIndexCellsPrice2").Offset(Target.cells(1, 1).Row - 1, 0).value = vbNullString
End If
modServiceModule.PROTECT_SHEET wsSheet, True
End If
End If
If Target.cells(1, 1).Row > 6 Then
If Target.MergeCells Then
modServiceModule.AutoFitMergedCellRowHeight Target
Else
Target.cells(1, 1).EntireRow.AutoFit
intRowHeight = Target.cells(1, 1).RowHeight
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.