Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 05032b89cef7b6a1…

MALICIOUS

Office (OLE)

66.5 KB Created: 2016-08-03 05:15:41 Authoring application: Microsoft Excel First seen: 2019-10-01
MD5: 54b975776bb60ae372dfe4fa78b788b3 SHA-1: 745a3e296e279a440c7cac2e4959cd4c43604f81 SHA-256: 05032b89cef7b6a198886ed8776c48b71281de87a330b7e109c0e287edf948d0
64 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is an Excel document containing VBA macros, including AutoOpen, Auto_Open, and Workbook_Open, which are commonly used to trigger malicious execution. The presence of VirtualAlloc API calls suggests the VBA code is preparing to allocate memory for and execute shellcode. While no specific URLs or further payloads were extracted, the structure strongly indicates a macro-based downloader.

Heuristics 5

  • Reference to VirtualAlloc API medium SC_STR_VIRTUALALLOC
    Reference to VirtualAlloc API
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Sub
    Sub AutoOpen()
      Auto_Open
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    End Sub
    Sub Workbook_Open()
      Auto_Open
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
    End Sub

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1583 bytes
SHA-256: 24c96f33e8123a334f42d91498016bcedf48cda19965ceaf46067500ae57a1af
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
#If VBA7 Then
  Private Declare PtrSafe Function CreateThread Lib "kernel32" (ByVal Qhradjo As Long, ByVal Qahqm As Long, ByVal Gicihcwg As LongPtr, Ozh As Long, ByVal Bhjdzg As Long, Bvntaik As Long) As LongPtr
  Private Declare PtrSafe Function VirtualAlloc Lib "kernel32" (ByVal Foag As Long, ByVal Uhn As Long, ByVal Szvx As Long, ByVal Bdangrnyn As Long) As LongPtr
  Private Declare PtrSafe Function RtlMoveMemory Lib "kernel32" (ByVal Zye As LongPtr, ByRef Klcdch As Any, ByVal Zxmz As Long) As LongPtr
#End If
 
Sub Auto_Open()
End Sub
Sub AutoOpen()
  Auto_Open
End Sub
Sub Workbook_Open()
  Auto_Open
End Sub



Attribute VB_Name = "현재_통합_문서"
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

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 = "Sheet2"
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